有些utils和common的模块,已经有依赖,并能正常在Idea上跑了,但打包时提示程序包xxx不存在时,在pom上加上以下代码即可:

<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
            <executions>
                 <execution>
                    <phase>none</phase>
                </execution>
            </executions>
            <configuration>
                 <classifier>execute</classifier>
            </configuration>
        <plugin>
    </plugins>
</build>

 

posted on 2022-10-08 18:14  枫叶飘零黄昏血  阅读(683)  评论(0编辑  收藏  举报