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
Dependencies
1.1.1
Feb 14, 2014
1.447
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Georgi "Gesh" Markov (id: markov)
Usage Installations 2013-Apr 277
2013-May 287
2013-Jun 291
2013-Jul 334
2013-Aug 344
2013-Sep 332
2013-Oct 377
2013-Nov 379
2013-Dec 393
2014-Jan 409
2014-Feb 443
2014-Mar 465


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

Description

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

Parameters

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

Labels

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