Browse Source

移除关于docker部署的配置

master
luyan 2 years ago
parent
commit
418503b89e
  1. 70
      pom.xml

70
pom.xml

@ -112,39 +112,39 @@
</dependency>
</dependencies>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>dockerfile-maven-plugin</artifactId>
<version>${dockerfile-maven-plugin.version}</version>
<executions>
<execution>
<id>default</id>
<goals>
<!--如果package时不想用docker打包,就注释掉这个goal-->
<goal>build</goal>
<goal>push</goal>
</goals>
</execution>
</executions>
<configuration>
<finalName>${project.artifactId}</finalName>
<username>elink201801</username>
<password>elink833066</password>
<repository>${docker.repository.prefix}${project.artifactId}</repository>
<tag>${docker.tag}</tag>
<buildArgs>
<!--提供参数向Dockerfile传递-->
<JAR_CONFIG>-Xmx256m -Xms256m -Xmn160m -Xss256k</JAR_CONFIG>
<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
<JAR_NAME>${project.artifactId}</JAR_NAME>
<SERVER_PORT>${server.port}</SERVER_PORT>
</buildArgs>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<!-- <build>-->
<!-- <pluginManagement>-->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>com.spotify</groupId>-->
<!-- <artifactId>dockerfile-maven-plugin</artifactId>-->
<!-- <version>${dockerfile-maven-plugin.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <id>default</id>-->
<!-- <goals>-->
<!-- &lt;!&ndash;如果package时不想用docker打包,就注释掉这个goal&ndash;&gt;-->
<!-- <goal>build</goal>-->
<!-- <goal>push</goal>-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- <configuration>-->
<!-- <finalName>${project.artifactId}</finalName>-->
<!-- <username>elink201801</username>-->
<!-- <password>elink833066</password>-->
<!-- <repository>${docker.repository.prefix}${project.artifactId}</repository>-->
<!-- <tag>${docker.tag}</tag>-->
<!-- <buildArgs>-->
<!-- &lt;!&ndash;提供参数向Dockerfile传递&ndash;&gt;-->
<!-- <JAR_CONFIG>-Xmx256m -Xms256m -Xmn160m -Xss256k</JAR_CONFIG>-->
<!-- <JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>-->
<!-- <JAR_NAME>${project.artifactId}</JAR_NAME>-->
<!-- <SERVER_PORT>${server.port}</SERVER_PORT>-->
<!-- </buildArgs>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </pluginManagement>-->
<!-- </build>-->
</project>

Loading…
Cancel
Save