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

一、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

posted @ 2020-08-30 21:08  遥~  阅读(426)  评论(0编辑  收藏  举报