<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
这一部分不能放在父模块的pom中,需要放在每一个有启动类的子模块的pom中,不然工具类、通用模块等会报找不到主类的错误。
还有打包等操作最好在父模块中进行,这样比较方便,不容易出现依赖问题。
<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build>
这一部分不能放在父模块的pom中,需要放在每一个有启动类的子模块的pom中,不然工具类、通用模块等会报找不到主类的错误。
还有打包等操作最好在父模块中进行,这样比较方便,不容易出现依赖问题。
文章评论