Extended Example

Extended example demonstrating customizations of available options.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>org.normalizedsystems</groupId>
  <artifactId>my-project-expansion</artifactId>
  <version>1.0-SNAPSHOT</version>

  <properties>
    <!-- no properties are necessary by default - see comments in their usage -->
    <nsx-prime.version>2019.8.8</nsx-prime.version>
    <nsx-runtime.version>2019.7.1</nsx-runtime.version>
    <expansion.settings>${pom.basedir}/conf/alternativeExpansionSettings.xml</expansion.settings>
    <baseComponents.version>2019.7.2</baseComponents.version>
    <prime-data.version>2019.8.3</prime-data.version>
    <webStyles.version>2019.7.2-alt</webStyles.version>
  </properties>

  <build>
    <plugins>
      <plugin>
        <groupId>net.democritus.maven.plugins</groupId>
        <artifactId>expanders-maven-plugin</artifactId>
        <version>2024.7.0</version>
        <configuration>
          <!-- [optional] default is conf/expansionSettings.xml -->
          <expansionSettings>${expansion.settings}</expansionSettings>
          <!-- [optional] for Expanders <4.4 and expanders-maven-plugin 2020.18.0 or older -->
          <nsfInstallation>
            <!-- [optional] for <4.4 expanders only individual versions can be omitted, so one can specify e.g. only webStylesVersion -->
            <baseComponentsVersion>${baseComponents.version}</baseComponentsVersion>
            <primeDataVersion>${primeData.version}</primeDataVersion>
            <webStylesVersion>${webStyles.version}</webStylesVersion>
          </nsfInstallation>
          <!-- [optional] additional args passed to nsx-prime -->
          <nsfArgs>
            <arg>--expander</arg>
            <arg>DataExpander</arg>
          </nsfArgs>
          <!-- [optional] use empty settings for nsx-prime (in repositories/nsx/maven/settings.xml) -->
          <!--<mavenSettings>empty</mavenSettings>-->
          <!-- [optional] or use an alternative file -->
          <mavenSettings>${env.WORKSPACE}/settings.xml</mavenSettings>
        </configuration>
        <dependencies>
          <!-- nsx-prime and/or nsx-shared-common
          are only necessary when you want to use version other than the default of the expanders-maven-plugin
          the default version is normally the same as the one in the release
          -->
          <dependency>
            <groupId>net.democritus</groupId>
            <artifactId>nsx-prime</artifactId>
            <version>${nsx-prime.version}</version>
            <classifier>jar-with-dependencies</classifier>
          </dependency>
          <dependency>
            <groupId>net.democritus</groupId>
            <artifactId>nsx-shared-common</artifactId>
            <version>${nsx-runtime.version}</version>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>

</project>