Uploaded image for project: 'Maven POMs (Moved to GitHub issues) '
  1. Maven POMs (Moved to GitHub issues)
  2. MPOM-9

Apache Parent POM 9 does not allow override of <useAgent> in apache-release profile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Auto Closed
    • ASF-9
    • None
    • asf
    • None

    Description

      The apache-release profile contains the following settings:

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

      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.

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

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

      Attachments

        Activity

          People

            olamy Olivier Lamy
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: