Maven Metadata Plugin

Skip to end of metadata
Go to start of metadata

Plugin Information

Plugin ID maven-metadata-plugin Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
1.2.0 (archives)
Nov 27, 2014
Source Code
Issue Tracking
Open Issues
Georgi "Gesh" Markov (id: markov)
Usage Installations 2014-Mar 465
2014-Apr 477
2014-May 518
2014-Jun 539
2014-Jul 586
2014-Aug 577
2014-Sep 590
2014-Oct 602
2014-Nov 616
2014-Dec 600
2015-Jan 637
2015-Feb 670

This plugin adds a new build parameter type for resolving artifact versions reading the repository maven-metadata.xml.


In any jenkins job enable the "This build is parametrerized" checkbox, from the drop-down that appears select the "List maven artifact versions", configure the artifact you want to retrieve the versions for and voilà.


Because there are multiple aspects that can be of interest about an artifact in a maven repository this plugin will not set the parameter name you give in the configuration of your job, but will rather use that name as a seed for a set of parameters. Example:

In your configuration you have created a parameter named "MY_JAR" and have configured all values correctly. Then the following parameters will be set for the build step:

  • MY_JAR_VERSION - the version you selected in the dropdown or that was selected as part of an automated build
  • MY_JAR_ARTIFACT_URL - the full URL to the actual artifact selected. You can use something like "wget" to download that artifact and do something with it.
  • MY_JAR_GROUP_ID - echoes back your configuration
  • MY_JAR_ARTIFACT_ID - echoes back your configuration
  • MY_JAR_PACKAGING - echoes back your configuration

Known issues

  • None at the moment.

Version History

1.2.0 (26. November 2014)

  • Added support for SNAPSHOTs. The plugin should now properly resolve SNAPSHOT versions to their timestamped URLs.JENKINS-23206
  • Thanks to Mathieu Pousse for providing the pull request for this change.

1.1.1 (14. February 2014)

  • Added support for the command line interface. If you have a property named MY_JAR you should now be able to append -p MY_JAR=1.3.42 and the job will be started for version "1.3.42" without scanning the maven repository. All of the above mentioned parameters should still be set for your build steps using the version you provided on the command line.
  • Thanks to David Portabella for providing the pull request for this change.

1.1.0 (13. February 2014)

  • Corrected the help message. (Was copy-pasted from another plugin).
  • Added a username and password fields which will override the previous way of specifying username:password as part of URL - no need to add them in url-encoded, plain-text to the URL.
  • Thanks to Robert Kleinschmager and Dominik Bartholdi for providing the pull requests for these changes.

1.0.0 (16. April 2012)

  • Initial version.

Help and Support

For help and support please use the Jenkins Users mailing list.
The comment list below is not monitored.


plugins plugins Delete
maven-metadata maven-metadata Delete
plugin-maven plugin-maven Delete
plugin plugin Delete
plugin-parameter plugin-parameter Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.