使用IntelliJ IDEA在terminal下 maven install 命令报错
mvn install:install-file -DgroupId=com.kingbase8 -DartifactId=kingbase8 -Dversion=8.6.0 -Dpackaging=jar -Dfile=D:\Software\Kingbase\ES\V8\data\KESRealPro\V008R0
06C008B0014\Interface\jdbc\kingbase8-8.6.0.jar -DgeneratePom=true
提示:
Unknown lifecycle phase ".kingbase8". 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>
于是为kingbase8添加上引号,然后又出现了
Unknown lifecycle phase "8.6.0". 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>. Avai
, 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-tes
t, verify, install, deploy, pre-site, site, post-site, site-deploy.
一番提示后,正确的应该是groupId、artifactId以及version都要要加上引号。否则就会一一报错。
然后就可以在pom.xml中愉快的引用了。
<dependency>
<groupId>com.kingbase8</groupId>
<artifactId>kingbase8</artifactId>
<version>8.6.0</version>
</dependency>