|
@ -84,38 +84,38 @@ |
|
|
<skipTests>true</skipTests> |
|
|
<skipTests>true</skipTests> |
|
|
</configuration> |
|
|
</configuration> |
|
|
</plugin> |
|
|
</plugin> |
|
|
<plugin> |
|
|
<!-- <plugin>--> |
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>--> |
|
|
<artifactId>maven-deploy-plugin</artifactId> |
|
|
<!-- <artifactId>maven-deploy-plugin</artifactId>--> |
|
|
<configuration> |
|
|
<!-- <configuration>--> |
|
|
<skip>true</skip> |
|
|
<!-- <skip>true</skip>--> |
|
|
</configuration> |
|
|
<!-- </configuration>--> |
|
|
</plugin> |
|
|
<!-- </plugin>--> |
|
|
<plugin> |
|
|
<!-- <plugin>--> |
|
|
<groupId>com.spotify</groupId> |
|
|
<!-- <groupId>com.spotify</groupId>--> |
|
|
<artifactId>dockerfile-maven-plugin</artifactId> |
|
|
<!-- <artifactId>dockerfile-maven-plugin</artifactId>--> |
|
|
<version>${dockerfile-maven-plugin.version}</version> |
|
|
<!-- <version>${dockerfile-maven-plugin.version}</version>--> |
|
|
<executions> |
|
|
<!-- <executions>--> |
|
|
<execution> |
|
|
<!-- <execution>--> |
|
|
<id>default</id> |
|
|
<!-- <id>default</id>--> |
|
|
<goals> |
|
|
<!-- <goals>--> |
|
|
<!--如果package时不想用docker打包,就注释掉这个goal--> |
|
|
<!-- <!–如果package时不想用docker打包,就注释掉这个goal–>--> |
|
|
<goal>build</goal> |
|
|
<!-- <goal>build</goal>--> |
|
|
<goal>push</goal> |
|
|
<!-- <goal>push</goal>--> |
|
|
</goals> |
|
|
<!-- </goals>--> |
|
|
</execution> |
|
|
<!-- </execution>--> |
|
|
</executions> |
|
|
<!-- </executions>--> |
|
|
<configuration> |
|
|
<!-- <configuration>--> |
|
|
<username>admin</username> |
|
|
<!-- <username>admin</username>--> |
|
|
<password>elink888</password> |
|
|
<!-- <password>elink888</password>--> |
|
|
<repository>47.104.85.99:9002/repository/docker-private/</repository> |
|
|
<!-- <repository>47.104.85.99:9002/repository/docker-private/</repository>--> |
|
|
<tag>latest</tag> |
|
|
<!-- <tag>latest</tag>--> |
|
|
<buildArgs> |
|
|
<!-- <buildArgs>--> |
|
|
<!--提供参数向Dockerfile传递--> |
|
|
<!-- <!–提供参数向Dockerfile传递–>--> |
|
|
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE> |
|
|
<!-- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>--> |
|
|
</buildArgs> |
|
|
<!-- </buildArgs>--> |
|
|
</configuration> |
|
|
<!-- </configuration>--> |
|
|
</plugin> |
|
|
<!-- </plugin>--> |
|
|
</plugins> |
|
|
</plugins> |
|
|
</build> |
|
|
</build> |
|
|
|
|
|
|
|
|