Mvn:Unknown lifecycle phase “mvn”. You must specify a valid lifecycle
clean install
clean install tomcat7:run
clean package -P prod
clean package -Dmaven.test.skip=true
install
compiler:compile
org.apache.maven.plugins:maven-compiler-plugin:compile
org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
1.[cmd]mvn compile
[eclipse]->maven->m2eclipse->pom.xml
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
2.specify the jar name
<build>
<finalName>demo</finalName>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
© 版权声明
文章版权归作者所有,未经允许请勿转载。
相关文章
暂无评论...