|
491 | 491 | <!-- Disable XML reports by default. Enabled manually by passing -DdisableXmlReport=false in CI environment -->
|
492 | 492 | <disableXmlReport>true</disableXmlReport>
|
493 | 493 |
|
| 494 | + <dockerfile.plugin.version>1.4.6</dockerfile.plugin.version> |
494 | 495 | <enforcer.plugin.version>1.4.1</enforcer.plugin.version>
|
495 | 496 | <failsafe.plugin.version>2.22.0</failsafe.plugin.version>
|
496 | 497 | <fest.assert.version>2.0M8</fest.assert.version>
|
|
719 | 720 | </executions>
|
720 | 721 | </plugin>
|
721 | 722 |
|
| 723 | + <plugin> |
| 724 | + <groupId>com.spotify</groupId> |
| 725 | + <artifactId>dockerfile-maven-plugin</artifactId> |
| 726 | + <version>${dockerfile.plugin.version}</version> |
| 727 | + <configuration> |
| 728 | + <repository>phpcoder/mystamps</repository> |
| 729 | + <!-- TODO: set it to docker/ after https://github.com/spotify/dockerfile-maven/pull/89 will be merged --> |
| 730 | + <contextDirectory>target</contextDirectory> |
| 731 | + </configuration> |
| 732 | + </plugin> |
| 733 | + |
722 | 734 | <plugin>
|
723 | 735 | <groupId>org.apache.maven.plugins</groupId>
|
724 | 736 | <artifactId>maven-checkstyle-plugin</artifactId>
|
|
846 | 858 | <groupId>org.apache.maven.plugins</groupId>
|
847 | 859 | <artifactId>maven-resources-plugin</artifactId>
|
848 | 860 | <version>${resources.plugin.version}</version>
|
| 861 | + <executions> |
| 862 | + <!-- TODO: remove this workaround after merging https://github.com/spotify/dockerfile-maven/pull/89 --> |
| 863 | + <execution> |
| 864 | + <id>copy-docker-resources</id> |
| 865 | + <goals> |
| 866 | + <goal>copy-resources</goal> |
| 867 | + </goals> |
| 868 | + <phase>prepare-package</phase> |
| 869 | + <configuration> |
| 870 | + <!-- copy docker/Dockerfile to target/ --> |
| 871 | + <outputDirectory>target</outputDirectory> |
| 872 | + <resources> |
| 873 | + <resource> |
| 874 | + <directory>${basedir}/docker</directory> |
| 875 | + <includes> |
| 876 | + <include>Dockerfile</include> |
| 877 | + </includes> |
| 878 | + </resource> |
| 879 | + </resources> |
| 880 | + </configuration> |
| 881 | + </execution> |
| 882 | + </executions> |
849 | 883 | </plugin>
|
850 | 884 |
|
851 | 885 | <plugin>
|
|
0 commit comments