使用命令:
install-file -Dfile=C:/Users/divine/Desktop/tempFiles/commonlib-1.0-SNAPSHOT.jar -DgroupId=com.knowology -DartifactId=commonlib -Dversion=1.0-SNAPSHOT -DgeneratePom=true
报错详情:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install-file (default-cli) on project standalone-pom: The artifact information is incomplete or not valid:
[ERROR] [0] 'packaging' is missing.
解决方法:
意为加上 -Dpackaging=jar 即可解决