Skip to content

Instantly share code, notes, and snippets.

@gbzarelli
Last active November 14, 2021 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbzarelli/69b59f880f319b22d88d287f5ad8bed0 to your computer and use it in GitHub Desktop.
Save gbzarelli/69b59f880f319b22d88d287f5ad8bed0 to your computer and use it in GitHub Desktop.
Build plugins in acceptance-test module
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker-maven-plugin.version}</version>
<executions>
<execution>
<phase>pre-integration-test</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
<configuration>
<images>
<image>
<name>app-test:integration</name>
<alias>dockerfile</alias>
<build>
<!-- Using the project.parent, dont forget include the exclusion target/docker in .maven-dockerignore -->
<contextDir>${project.parent.basedir}</contextDir>
<dockerFile>${project.parent.basedir}/Dockerfile</dockerFile>
</build>
</image>
</images>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment