报错命令(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
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