Maven-gpg-plugin:1.2:sign (sign-artifacts) on project Jdbc-pool:cannot obtain passphrase in batch mode or plugin Executio n not covered by lifecycle configuration

Source: Internet
Author: User
Tags gpg stack trace

This solution was transferred from: http://blog.csdn.net/tangximing123/article/details/21179467

Executing the Maven install times 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]

As follows:

[INFO] BUILD FAILURE
[INFO]------------------------------------------------------------------------
[INFO] Total time:0.970s
[INFO] Finished At:tue Mar 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] 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

Cause: The version used is Maven3. X, the behavior of its execution maven-ant-plugin and maven2.x are different, need to introduce pluginmanagement

The workaround is to introduce the following in Pom.xml:

Previous content:

<build>   <plugins>      <plugin></plugin>      ...        <plugin></plugin>    </plugins></build>

What you have modified:

<build>   <pluginManagement>   <plugins>      <plugin></plugin>      ...        <plugin></plugin>    </plugins></pluginManagement></build>

Maven-gpg-plugin:1.2:sign (sign-artifacts) on project Jdbc-pool:cannot obtain passphrase in batch mode or plugin Executio n not covered by lifecycle configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.