Unknown lifecycle phase mvn

简介: 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/LifecyclePhaseNotFoundException
Process finished with exit code 1

解决方案:

开发环境中继承环境,需要去掉mvn。

目录
相关文章
初始化Kubenetes报错2:error execution phase preflight: [preflight] S..
初始化Kubenetes报错2:error execution phase preflight: [preflight] S..
338 0
|
5月前
|
Java Maven
Maven运行builder出现Failed to execute goal on projectXXXXX错误
Maven运行builder出现Failed to execute goal on projectXXXXX错误
182 7
Failed to execute goal maven-resources-plugin:3.2.0:resources Input length = 1 -> [Help 1]
Failed to execute goal maven-resources-plugin:3.2.0:resources Input length = 1 -> [Help 1]
116 0
|
6月前
|
Java Maven
The goal you specified requires a project to execute but there is no POM in this directory
The goal you specified requires a project to execute but there is no POM in this directory
240 0
|
6月前
|
Kubernetes 容器
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
k8s-error execution phase upload-config/kubelet: Error writing Crisocket...
183 0
|
jenkins 持续交付
问题记录:jenkins构建时报错The goal you specified requires a project to execute but there is no POM in...
问题记录:jenkins构建时报错The goal you specified requires a project to execute but there is no POM in...
1152 0
问题记录:jenkins构建时报错The goal you specified requires a project to execute but there is no POM in...
mvn Failed during checkstyle execution: There are errors reported by Checkstyle 6.2
mvn Failed during checkstyle execution: There are errors reported by Checkstyle 6.2
143 0
|
Java Maven
maven teavm-idea-artifacts: Command execution failed.: Process exited with an error: 1 Exit value: 1
maven teavm-idea-artifacts: Command execution failed.: Process exited with an error: 1 Exit value: 1
400 0
|
Java Maven Android开发
Maven异常_06_ Unknown lifecycle phase "mvn"
一、异常现象 在eclipse中执行以下maven命令 时, mvn spring-boot:run 报出如下错误: Unknown lifecycle phase "mvn"   二、异常原因 当我们在eclipse中执行maven命令时,不需要加mvn;   三、解决方法 项目名右键 - > Run as - > maven build.
2894 0
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.
1000 0
mvn clean package -Dmaven.test.skip=true 报错:[ERROR] Unknown lifecycle phase “.test.skip=true“.