<skip>true</skip>一定要去掉
每个插件都有一个< skip ></skip>属性,maven在调用插件的时候判断这个属性的值是否是true,是true的话就跳过。
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>${spring-boot.version}</version> <configuration> <mainClass>com.zxy.DockerDeployApplication</mainClass> <!-- <skip>true</skip> !!!去掉--> </configuration> <executions> <execution> <id>repackage</id> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin>
标签:插件,java,主类,boot,XXX,jar,true,属性 From: https://www.cnblogs.com/kidzxy/p/17448660.html