maven打包错误: Unable to find main class

多模块开发maven打包错误: Unable to find main class
把父模块pom.xml

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>

注释掉,
原因:默认springboot项目都有一个启动类,但某些项目如common项目不需要启动类,没有启动类

猜你喜欢

转载自blog.csdn.net/weixin_43158695/article/details/114820091