Error:(x,x) java: 程序包com.xxx.xxx不存在


问题描述】:项目为SpringBoot 项目多个 module依赖,对子模块进行 compile/install 时出现了依赖的类(此类是自己写的类)不存在。

解决办法】:将父工程中使用的 springboot插件注释掉,如下代码:

1 <build>
2     <plugins>
3     <plugin>
4         <groupId>org.springframework.boot</groupId>
5         <artifactId>spring-boot-maven-plugin</artifactId>
6     </plugin>
7     </plugins>
8 </build>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM