RPM in relationship with gpg signatures
---------------------------------------

                 Key: MRPM-72
                 URL: http://jira.codehaus.org/browse/MRPM-72
             Project: Mojo RPM Plugin
          Issue Type: Bug
          Components: rpm
    Affects Versions: 2.0.1
         Environment: Linux
            Reporter: Karl Heinz Marbaise
            Assignee: Brett Okken
         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


Reply via email to