Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12121

maven release plugin does not allow for customized goals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.98.6
    • 1.0.0, 0.98.10
    • build
    • None
    • Reviewed
    • Hide
      Allows user to add goals to release procedure
      mvn release:perform -Dgoal=<goal-name>
      If no goal is specified default behavior is used

      Example use case:
      Release to private repository and upload artifacts but also want the tarball to be uploaded, not just the jars.
      the following could be added to the release command
      -Dgoal="-X package install site assembly:single deploy -DskipTests"
      This will execute the release procedure and also upload the tarball along with all jars.

      Show
      Allows user to add goals to release procedure mvn release:perform -Dgoal=<goal-name> If no goal is specified default behavior is used Example use case: Release to private repository and upload artifacts but also want the tarball to be uploaded, not just the jars. the following could be added to the release command -Dgoal="-X package install site assembly:single deploy -DskipTests" This will execute the release procedure and also upload the tarball along with all jars.

    Description

      Inside the pom under the maven-release-plugin there is a configuration that defines what the release-plugin uses like so
      <configuration>
      <!--You need this profile. It'll sign your artifacts.
      I'm not sure if this config. actually works though.
      I've been specifying -Papache-release on the command-line
      -->
      <releaseProfiles>apache-release</releaseProfiles>
      <!--This stops our running tests for each stage of maven release.
      But it builds the test jar. From SUREFIRE-172.
      -->
      <arguments>-Dmaven.test.skip.exec</arguments>
      <pomFileName>pom.xml</pomFileName>
      </configuration>

      There is no property for goals so if the user passes in a goal from the command line it will not get executed and the default behavior will be used instead.
      I propose to add in the following
      <goals>${goals}</goals>

      This will allow custom release goal options

      Attachments

        1. HBASE-12121.patch
          0.4 kB
          Enoch Hsu

        Activity

          People

            enhs8920 Enoch Hsu
            enhs8920 Enoch Hsu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: