Fixes Maven integration tests.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
- <version>2.20.1</version>
+ <version>2.21.0</version>
+ <configuration>
+ <classesDirectory>${project.build.directory}/classes</classesDirectory>
+ </configuration>
<executions>
<execution>
<id>integration-tests</id>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.0.0</version>
+ <executions>
+ <execution>
+ <id>add-jib-core-integration-test-sources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-source</goal>
+ </goals>
+ <configuration>
+ <sources>
+ <source>${basedir}/../jib-core/src/integration-test/java</source>
+ </sources>
+ </configuration>
+ </execution>
+ <execution>
+ <id>add-jib-core-integration-test-resources</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>add-test-resource</goal>
+ </goals>
+ <configuration>
+ <resources>
+ <resource>
+ <directory>${basedir}/../jib-core/src/integration-test/resources</directory>
+ </resource>
+ </resources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
</profile>
</resources>
</configuration>
</execution>
- <execution>
- <id>add-jib-core-integration-test-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-test-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${basedir}/../jib-core/src/integration-test/java</source>
- </sources>
- </configuration>
- </execution>
</executions>
</plugin>
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
+ <exclude>**/*IT.java</exclude>
</excludes>
</configuration>
</plugin>
