IntegrationTestsCommonPomExpander

Expands:

$applicationRoot.directory$/integration/$application.shortName$-test-common/pom.xml

if:

application.components.exists(:[ #this.getOption('enableJaxrs').defined ])
property value
element type ApplicationInstance
qualified name net.democritus.expander.integration.IntegrationTestsCommonPomExpander
layer ROOT
technology MAVEN
sourceType BUILD_FILE
phase expansion
features  

Example

Some example of the content generated by the expander:

<?xml version="1.0" encoding="UTF-8"?>
<!-- expanded with nsx-expanders:4.16.3, expansionResource net.democritus:rest-expanders:2.4.2 -->
<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>

  <parent>
    <artifactId>restexample-tests</artifactId>
    <groupId>org.normalizedsystems</groupId>
    <version>1.0</version>
    <relativePath>../pom.xml</relativePath>
  </parent>

  <artifactId>restexample-test-common</artifactId>
  <packaging>jar</packaging>

  <name>restexample-test-common</name>

  <dependencies>
    <dependency>
      <groupId>com.github.javafaker</groupId>
      <artifactId>javafaker</artifactId>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>

    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest</artifactId>
    </dependency>

    <dependency>
      <groupId>io.rest-assured</groupId>
      <artifactId>rest-assured</artifactId>
    </dependency>
    <dependency>
      <groupId>io.rest-assured</groupId>
      <artifactId>json-schema-validator</artifactId>
    </dependency>

    <!-- @anchor:dependencies:start -->
    <!-- @anchor:dependencies:end -->
    <!-- anchor:dependencies:start -->
    <!-- anchor:dependencies:end -->
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>build-helper-maven-plugin</artifactId>
        <version>1.8</version>
        <executions>
          <execution>
            <id>add-source</id>
            <phase>generate-sources</phase>
            <goals>
              <goal>add-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>gen/main/java</source>
                <source>ext/main/java</source>

                <!-- @anchor:source-include:start -->
                <!-- @anchor:source-include:end -->
                <!-- anchor:custom-source-include:start -->
                <!-- anchor:custom-source-include:end -->
              </sources>
            </configuration>
          </execution>

          <execution>
            <id>add-test-source</id>
            <phase>generate-test-sources</phase>
            <goals>
              <goal>add-test-source</goal>
            </goals>
            <configuration>
              <sources>
                <source>gen/test/java</source>
                <source>ext/test/java</source>

                <!-- @anchor:test-source-include:start -->
                <!-- @anchor:test-source-include:end -->
                <!-- anchor:custom-test-source-include:start -->
                <!-- anchor:custom-test-source-include:end -->
              </sources>
            </configuration>
          </execution>

          <execution>
            <id>add-resource</id>
            <phase>generate-resources</phase>
            <goals>
              <goal>add-resource</goal>
            </goals>
            <configuration>
              <resources>
                <resource>
                  <directory>gen/main/resources</directory>
                </resource>
                <resource>
                  <directory>ext/main/resources</directory>
                </resource>

                <!-- @anchor:resource-include:start -->
                <!-- @anchor:resource-include:end -->
                <!-- anchor:custom-resource-include:start -->
                <!-- anchor:custom-resource-include:end -->
              </resources>
            </configuration>
          </execution>

          <execution>
            <id>add-test-resource</id>
            <phase>generate-test-resources</phase>
            <goals>
              <goal>add-test-resource</goal>
            </goals>
            <configuration>
              <resources>
                <resource>
                  <directory>gen/test/resources</directory>
                </resource>
                <resource>
                  <directory>ext/test/resources</directory>
                </resource>

                <!-- @anchor:test-resource-include:start -->
                <!-- @anchor:test-resource-include:end -->
                <!-- anchor:custom-test-resource-include:start -->
                <!-- anchor:custom-test-resource-include:end -->
              </resources>
            </configuration>
          </execution>

          <!-- @anchor:build-executions:start -->
          <!-- @anchor:build-executions:end -->
          <!-- anchor:custom-build-executions:start -->
          <!-- anchor:custom-build-executions:end -->
        </executions>
      </plugin>

      <!-- @anchor:build-plugins:start -->
      <!-- @anchor:build-plugins:end -->
      <!-- anchor:custom-build-plugins:start -->
      <!-- anchor:custom-build-plugins:end -->
    </plugins>

    <!-- @anchor:build:start -->
    <!-- @anchor:build:end -->
    <!-- anchor:custom-build:start -->
    <!-- anchor:custom-build:end -->
  </build>

  <!-- @anchor:project:start -->
  <!-- @anchor:project:end -->
  <!-- anchor:project:start -->
  <!-- anchor:project:end -->
</project>

These expanders have the same isApplicable as IntegrationTestsCommonPomExpander.

These features have the same condition as IntegrationTestsCommonPomExpander.