{jenkins-plugin-info:pluginId=maven-plugin|jiraComponent=maven-plugin} |
See also JENKINS-18403, JENKINS-28294 If Jenkins detects that you are trying to use a JDK older than the master prerequisite, it automatically reconfigure your build to use the JDK on which your agent is running. It displays in your build logs a message like :
But due to the remoting upgrade in Jenkins 2.27+ this workaround doesn't work anymore if your agent or maven job is using Java < 7 - JENKINS-40990 (Because remoting is compiled for Java 7) |
Known issues are listed in Jira. |
Historically this plugin was released alongside Jenkins core releases. Since version 2.0 this plugin is released separately, but still bundled with Jenkins - though not always the newest version of the plugin might be bundled. |
This plugin provides an advanced integration for Maven 2/3 projects. |
Even if Jenkins provides natively a Maven builder to use a build step in classical Jenkins jobs (freestyle, ...) this plugin provides a more advanced integration with specific a specific job type providing uniq features like:
See Building a maven2 project for more information on how to use this.
Environment Variables
This plugin exposes variables found from the project's POM (as of version 2.1):
And many others features provided by Jenkins plugins ecosystem
JARUrlConnection
due to the parallel reading of JAR resources in MavenEmbedderUtils#getMavenVersion()
(regression in 3.12)MavenEmbedderUtils#getMavenVersion()
(PR #5)MavenEmbedderUtils#getMavenVersion()
( JENKINS-40621 )0.9.0.M2
to Eclipse Aether 1.1.0
2.4
to 2.12
which solves various issues (like SNI support - JENKINS-40903, JENKINS-38738 ) to download dependencies in Parsing POM
or upload artifacts from the post build deployment task.3.11
to 3.12
Release failed .... thx repo.jenkins-ci.org
Requires now Jenkins >= 1.625.3 and Java >= 7 |
IllegalAccessError
on AbstractMapBasedMultimap
).TcpSocketHostLocator
extension point. Using newer interceptors library.This version requires Jenkins 1.580.1 or later.
-T
(concurrency).MavenReporter.postExecute
.config.xml
files.