美文网首页
多模块依赖中,找不到依赖: 程序包xxx.xxx.xxx不存在

多模块依赖中,找不到依赖: 程序包xxx.xxx.xxx不存在

作者: 空格键_尘 | 来源:发表于2020-04-26 13:13 被阅读0次

假如 A模块 依赖B模块 ,在A进行打包时 报如下错误


image.png

则:在B模块的pom 添加

<plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <mainClass>启动类路径</mainClass>
                    <fork>false</fork>
                    <includeSystemScope>true</includeSystemScope>
                    <!--<classifier>exe</classifier>-->
                    <skip>true</skip>
                </configuration>
            </plugin>

相关文章

网友评论

      本文标题:多模块依赖中,找不到依赖: 程序包xxx.xxx.xxx不存在

      本文链接:https://www.haomeiwen.com/subject/sbmdwhtx.html