Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Not A Bug
-
Affects Version/s: 2.2.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:OS X 10.6, Maven 3.0.3, maven-gpg-plugin 1.4
-
Number of attachments :
Description
After updating to Release Plugin 2.2.2 gpg plugin fails with error:
"Cannot obtain passphrase in batch mode"
Which is thrown (see http://maven.apache.org/plugins/maven-gpg-plugin/xref/org/apache/maven/plugin/gpg/AbstractGpgMojo.html) when the passphrase has not been set and the use agent parameter is
false. The passphrase is set in my settings.xml and the useAgent has the default false value.
Downgrading to 2.2.1 fixes the problem and the built artifacts are correctly signed.
An example POM project can be found at:
http://code.google.com/p/derquinse-commons/source/browse/trunk/derquinse-pom/pom.xml
Activity
Robert Scholte
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Closed [ 6 ] |
| Assignee | Robert Scholte [ rfscholte ] | |
| Resolution | Not A Bug [ 6 ] |
When running release:prepare with debugLogging (and dryRun, so you won't actually commit the changes), can you tell the difference of the configuration of the gpg-plugin?
So mvn release:prepare -X -DdryRun=true
And from these logs, do you see why these configurations could be different?