本文主要是介绍Unknown lifecycle phase mvn,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Unknown lifecycle phase “mvn”.
"C:\Program Files\Java\jdk1.8.0_171\bin\java.exe" -Dmaven.multiModuleProjectDirectory=D:\IDE\IDEA\Springboot-Parent\Springboot -Dmaven.home=D:\IDE\Maven\apache-maven-3.5.3 -Dclassworlds.conf=D:\IDE\Maven\apache-maven-3.5.3\bin\m2.conf -javaagent:D:\IDE\IDEA\ideaIU-2018.1.3.win\lib\idea_rt.jar=63034:D:\IDE\IDEA\ideaIU-2018.1.3.win\bin -Dfile.encoding=UTF-8 -classpath D:\IDE\Maven\apache-maven-3.5.3\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.3 -s D:\IDE\Maven\apache-maven-3.5.3\conf\settings.xml mvn package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for top.simba1949:Springboot:jar:1.0-SNAPSHOT
[WARNING] 'parent.relativePath' of POM top.simba1949:Springboot:1.0-SNAPSHOT (D:\IDE\IDEA\Springboot-Parent\Springboot\pom.xml) points at top.simba1949:Springboot-Parent instead of org.springframework.boot:spring-boot-starter-parent, please verify your project structure @ line 12, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ----------------------< top.simba1949:Springboot >----------------------
[INFO] Building Springboot 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.485 s
[INFO] Finished at: 2018-07-15T12:11:05+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "mvn". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundExceptionProcess finished with exit code 1
解决方案:
开发环境中继承环境,需要去掉mvn。
这篇关于Unknown lifecycle phase mvn的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!