在构建主项目时,如何运行子模块插件目标
我想在构建项目后运行spring-boot插件,但是spring-boot插件只添加到了子模块中,有什么解决方案吗?一如既往的感谢!
main-project
pom.xml
spring-boot plugin not added in the main pom.xml
module1
pom.xml
module2
pom.xml
depend on module1
spring-boot plugin added当我运行该命令时
mvn clean install -pl module2 -am spring-boot:runmaven抛出激励性
[ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups发布于 2019-06-12 15:07:20
如果你这样做了
mvn clean install && cd module2 && mvn spring-boot:run 你也可以把所有的都放在一条线上。
我假设您的主项目有一个模块部分,因此它将构建所有模块。
https://stackoverflow.com/questions/56556028
复制相似问题