maven安装本地jar包报错:Unknown lifecycle phase “.bi...0.hxtxavjy“. You must specify...

 报错命令(DgroupId等属性值已被省略一部分):

mvn install:install-file -DgroupId=com.bi...vjy -DartifactId=ip...65a -Dversion=1.0...PSHOT -Dpackaging=jar -Dfile=e:\myworks\ip...SHOT.jar

错误详情(" "内被省略一部分):

[ERROR]Unknown lifecycle phase ".bi...vjy". You must specify a valid lifecycle phase or a goal in the format : or :[: -version>]:. 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, s
ite, post-site, site-deploy. ->

解决方法:给DgroupId等属性值加 " " :

mvn install:install-file -DgroupId="com.b...avjy" -DartifactId=ip...765a -Dversion="1.0...SHOT" -Dpackaging=jar -Dfile=e:\myworks\ip...SHOT.jar

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.813 s

你可能感兴趣的:(jar,maven,java)