Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38077

Silently Failing to Deploy Released Artifacts to Maven Repository

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • m2release-plugin
    • None
    • Relevant Versions:
      mvn - 3.2.1
      git - 2.7.4
      m2release-plugin - 0.14.0

      After upgrading from git 1.7 to 2.7, the M2 Release Plugin silently failed to upload released artifacts to a maven release repository. Instead, a snapshot was uploaded. A workaround is to force reliance on a more recent version of the the maven-release-plugin maven plugin. A better solution would be for this Jenkins plugin to use a newer version of the maven-release-plugin maven plugin.

      The release options and goals in the Jenkins job that worked before the release were:

      Release goals and options:
      -Dresume=false -Dmaven.javadoc.skip=true release:prepare release:perform
      
      DryRun goals and options:
      -Dresume=false -Dmaven.javadoc.skip=true -DdryRun=true release:prepare
      

      The release options and goals that worked after the release were:

      Release goals and options:
      -Dresume=false -Dmaven.javadoc.skip=true org.apache.maven.plugins:maven-release-plugin:2.5:prepare org.apache.maven.plugins:maven-release-plugin:2.5:perform
      
      DryRun goals and options:
      -Dresume=false -Dmaven.javadoc.skip=true -DdryRun=true org.apache.maven.plugins:maven-release-plugin:2.5:prepare
      

            Unassigned Unassigned
            cschroed_usgs Carl Schroedl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: