Skip to content

Commit

Permalink
Fixes Maven integration tests. (#272)
Browse files Browse the repository at this point in the history
  • Loading branch information
coollog authored and TadCordle committed May 15, 2018
1 parent 50ad775 commit 8374134
Showing 1 changed file with 38 additions and 13 deletions.
51 changes: 38 additions & 13 deletions jib-maven-plugin/pom.xml
Expand Up @@ -127,7 +127,10 @@
<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>
Expand All @@ -138,6 +141,39 @@
</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>
Expand Down Expand Up @@ -238,18 +274,6 @@
</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>

Expand Down Expand Up @@ -311,6 +335,7 @@
<configuration>
<excludes>
<exclude>**/*IntegrationTest.java</exclude>
<exclude>**/*IT.java</exclude>
</excludes>
</configuration>
</plugin>
Expand Down

0 comments on commit 8374134

Please sign in to comment.