首页 > 其他 > 详细

The packaging for this project did not assign a file to the build artifact||repackage failed: Unable to find main class

时间:2020-08-30 21:52:02      阅读:101      评论:0      收藏:0      [点我收藏+]

一、command

(1)The command install:install is actually a goal on the maven-install-plugin. This is different than the install maven lifecycle phase.

(2)command:

(2.1)mvn clean install--lifecycle(√)

(2.2)mvn clean install:install--maven plugin(×)

二、parent--pom.xml

1、delete:

1 <build>
2       <finalName>${project.artifactId}</finalName>
3       <plugins>
4            <plugin>
5                 <groupId>org.springframework.boot</groupId>
6                 <artifactId>spring-boot-maven-plugin</artifactId>
7            </plugin>
8       </plugins>
9  </build>

2、add according to needing

The packaging for this project did not assign a file to the build artifact||repackage failed: Unable to find main class

原文:https://www.cnblogs.com/DotSDot/p/13586687.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!