Unknown lifecycle phase “.kingbase8“. You must specify a valid lifecycle phase or a goal...

使用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>
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值