Skip to content

Commit e9ab783

Browse files
committed
去掉mvn package绑定docker打包,如需要使用docker,使用mvn docker build单独打包
1 parent c5760f1 commit e9ab783

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
<groupId>com.spotify</groupId>
3838
<artifactId>docker-maven-plugin</artifactId>
3939
<version>1.0.0</version>
40-
<executions>
41-
<execution>
42-
<phase>package</phase>
43-
<goals>
44-
<goal>build</goal>
45-
</goals>
46-
</execution>
47-
</executions>
4840
<configuration>
4941
<!-- 注意imageName一定要是符合正则[a-z0-9-_.]的,否则构建不会成功 -->
5042
<imageName>cike/${project.artifactId}</imageName>

readme.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@
1717

1818
启动命令:`mvn spring-boot:run`
1919

20+
docker镜像打包:`mvn docker:build`
21+
22+
2023

0 commit comments

Comments
 (0)