[英]How rename "mvn spring-boot:run" to "mvn someName:run"?
I'm still learning and I have a question, can I run not only through the "Spring Boot".我还在学习中,我有一个问题,我可以不仅通过“Spring Boot”运行。 Or reassign that would be more interesting.
或者重新分配会更有趣。 Prompt please in what direction to dig.
请提示在什么方向挖。
I believe it's not possible without modifying the plugin pom: https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/pom.xml我相信不修改插件 pom 是不可能的: https : //github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-tools/spring-boot-maven-plugin /pom.xml
Maven plugins follow a name pattern <artifactId>plugin-name-maven-plugin</artifactId>
Maven 插件遵循名称模式
<artifactId>plugin-name-maven-plugin</artifactId>
In the spring-boot is <artifactId>spring-boot-maven-plugin</artifactId>
在 spring-boot 中是
<artifactId>spring-boot-maven-plugin</artifactId>
So you can call mvn spring-boot:run
所以你可以调用
mvn spring-boot:run
Maybe what you want is to create your own plugin: https://dzone.com/articles/a-simple-maven-3-plugin也许你想要的是创建自己的插件: https : //dzone.com/articles/a-simple-maven-3-plugin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.