Java-Maven-pom.xml-project-build-plugins:plugins 分手后的思念是犯贱 2021-11-17 15:16 231阅读 0赞 <table> <tbody> <tr> <td><span style="font-size:16px;color:#FFFFFF;"><strong>ylbtech-Java-Maven-pom.xml-project-build-plugins:plugins</strong></span></td> </tr> </tbody> </table> <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;"><strong>1. platform</strong><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span> </span></td> </tr> </tbody> </table> 1、maven-compiler-plugin <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.7.0</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> 2、 <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;"><strong>2. api, wx-api</strong></span><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span></td> </tr> </tbody> </table> 1、repackage <!-- 打包插件 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <executions> <execution> <goals> <goal>repackage</goal> </goals> <configuration> <mainClass>com.shineyoo.WxApiApplication</mainClass> </configuration> </execution> </executions> </plugin> 2、 <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${java.version}</source> <!-- 指定JDK编译版本 --> <target>${java.version}</target> </configuration> </plugin> 3、 <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;"><strong>3. admin</strong></span><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span></td> </tr> </tbody> </table> 1、 <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>2.0.5.RELEASE</version> <configuration> <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> 2、 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.6</version> <configuration> <failOnMissingWebXml>false</failOnMissingWebXml> </configuration> </plugin> 3、 <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;"><strong>4.</strong></span><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span></td> </tr> </tbody> </table> <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;"><strong>5.</strong><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span> </span></td> </tr> </tbody> </table> <table> <tbody> <tr> <td colspan="2"><span style="font-size:14px;color:#FFFFFF;"><strong>6.</strong></span><span style="font-size:14px;"><a rel="nofollow">返回顶部</a></span></td> </tr> </tbody> </table> <table> <tbody> <tr> <td style="width:48px;"><span style="font-size:14px;"><img src="https://images.cnblogs.com/cnblogs_com/ylbtech/402310/o_o_info.png" alt="warn" width="48" height="48"></span></td> <td><span style="font-size:14px;">作者:<a href="http://home.cnblogs.com/u/ylbtech/" rel="nofollow">ylbtech</a></span><br><span style="font-size:14px;">出处:<a href="http://ylbtech.cnblogs.com/" rel="nofollow">http://ylbtech.cnblogs.com/</a></span><br><span style="font-size:14px;">本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。</span> </td> </tr> </tbody> </table> 转载于:https://www.cnblogs.com/storebook/p/11023398.html
还没有评论,来说两句吧...