[
http://jira.codehaus.org/browse/MRPM-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218959#action_218959
]
Karl Heinz Marbaise edited comment on MRPM-72 at 4/26/10 6:08 AM:
------------------------------------------------------------------
In my opinion it's a little bit confusing to read about keyPassphrase but i
have to create the following structure ( as you mentioned)
{noformat}
<keyPassphrase>
<passphrase>xxxxx</passphrase>
</keyPassphrase>
{noformat}
in contradiction to keyName which is described the same way, but doesn't need a
structure like the keyPassphrase. May be the documentation of keyPassphrase
should be enhanced with a little example about that. That would make things
clear.
was (Author: khmarbaise):
In my opinion it's a little bit confusing to read about keyPassphrase but i
have to create the following structure ( as you mentioned)
{noquote}<keyPassphrase>
<passphrase>xxxxx</passphrase>
</keyPassphrase>
{noquote}
in contradiction to keyName which is described the same way, but doesn't need a
structure like the keyPassphrase. May be the documentation of keyPassphrase
whould be enhanced with a little example about that. That would make things
clear.
> RPM in relationship with gpg signatures
> ---------------------------------------
>
> Key: MRPM-72
> URL: http://jira.codehaus.org/browse/MRPM-72
> Project: Mojo RPM Plugin
> Issue Type: Improvement
> Components: rpm
> Affects Versions: 2.0, 2.0.1
> Environment: Linux
> Reporter: Karl Heinz Marbaise
> Assignee: Brett Okken
> Priority: Minor
> Attachments: test-rpm-signature.tar.gz
>
>
> I have created a POM which produces RPM which should signed during the build
> process. If i only add the keyname than as expect gpg will give an input
> dialog to input my passphrase. But if i try to use the keyPassphrase in the
> configuration it will fail with the following message:
> {noformat}
> [INFO] Scanning for projects...
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building CIEnvironment :: Hudson :: Proxy
> [INFO] task-segment: [package]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [assembly:directory-single {execution: proxy-ci001}]
> [INFO] Reading assembly descriptor:
> /home/../test-rpm-signature/src/main/assembly/ciserver.xml
> [INFO] Copying files to
> /home/../test-rpm-signature/target/ci001/cienv-proxy-1.0.0-SNAPSHOT-proxy
> [INFO] [assembly:directory-single {execution: proxy-ci002}]
> [INFO] Reading assembly descriptor:
> /home/../test-rpm-signature/src/main/assembly/ciserver.xml
> [INFO] Copying files to /home/../target/ci002/cienv-proxy-1.0.0-SNAPSHOT-proxy
> [INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Failed to configure plugin parameters for:
> org.codehaus.mojo:rpm-maven-plugin:2.0.1
> (found static expression: 'xxxxxx' which may act as a default value).
> Cause: Cannot assign configuration entry 'keyPassphrase' to 'class
> org.codehaus.mojo.rpm.Passphrase' from 'xxxxxx', which is of type class
> java.lang.String
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Wed Apr 21 18:21:00 CEST 2010
> [INFO] Final Memory: 30M/661M
> [INFO]
> ------------------------------------------------------------------------
> {noformat}
> The keyPassphrase is defined by a property in the settings.xml file.
> I have attached a full working project setup which produces the failure
> except the Name of the key and of course the value for the passphrase must be
> changed or activated.
> Or do i oversight something ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email