maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SebbASF (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-5074) Apache Parent POM 9 does not allow override of <useAgent> in apache-release profile
Date Thu, 21 Apr 2011 16:42:22 GMT
Apache Parent POM 9 does not allow override of <useAgent> in apache-release profile
-----------------------------------------------------------------------------------

                 Key: MNG-5074
                 URL: http://jira.codehaus.org/browse/MNG-5074
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: POM
            Reporter: SebbASF


The apache-release profile contains the following settings:

{noformat}
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <passphrase>${gpg.passphrase}</passphrase>
              <useAgent>true</useAgent>
            </configuration>
{noformat}

This is bad, because it unconditionally forces the use of an agent which may not be appropriate
for all use cases.

The code should use the relevant property, i.e.

{noformat}
  <properties>
    <gpg.useagent>true</gpg.useagent>
    ...
  </properties>

...
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <configuration>
              <passphrase>${gpg.passphrase}</passphrase>
              <useAgent>${gpg.useagent}</useAgent>
            </configuration>
{noformat}

This would still default to true, but would allow command-line override.

-- 
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

        

Mime
View raw message