zoukankan      html  css  js  c++  java
  • Maven install 报错: Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-art

    maven异常记录

    执行 Maven install 时报错:

     Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-artifacts)on project openstack-java-sdk: Cannot obtain passphrase in batchmode -> [Help 1]

    如下:

    [INFO] BUILD FAILURE
    [INFO]------------------------------------------------------------------------
    [INFO] Total time: 0.970s
    [INFO] Finished at: Tue Mar 04 14:06:04 CST 2014
    [INFO] Final Memory: 7M/87M
    [INFO]------------------------------------------------------------------------
    [ERROR] Failed to execute goalorg.apache.maven.plugins:maven-gpg-plugin:1.4:sign (sign-artifacts)on project openstack-java-sdk: Cannot obtain passphrase in batchmode -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Mavenwith the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debuglogging.
    [ERROR]
    [ERROR] For more information about the errors and possiblesolutions, please read the following articles:
    [ERROR] [Help 1]http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    原因: 使用的版本是maven3.X,其执行maven-ant-plugin的行为和maven2.x有一定的不同,需要引入pluginManagement

    解决办法是:在pom.xml中引入:

    之前的内容:

    <build>
       <plugins>

          <plugin></plugin>

          ...

           <plugin></plugin>

        </plugins>

    </build>

    修改后的内容:

    <build>

       <pluginManagement>

       <plugins>

          <plugin></plugin>

          ...

           <plugin></plugin>

        </plugins>

    </pluginManagement>
    </build>

  • 相关阅读:
    Foj1675数论
    JSTL与EL之间的千丝万缕
    2013多校联合2 I Warm up 2(hdu 4619)
    ios视图切换之push与present混用
    Ruby设计模式透析之 —— 适配器(Adapter)
    晓说智能指针shared_ptr为何可以实现跨模块分配和释放内存
    CSS的力量
    MySQL-select 1;
    MySQL数据库-语言简介
    Eclipse开发工具提交代码
  • 原文地址:https://www.cnblogs.com/lywJ/p/11237763.html
Copyright © 2011-2022 走看看