Install Maven Integration plugin in Jenkins

Maven Integration plugin is a plugin that helps us to build projects that use Apache Maven in Jenkins. In this tutorial, I will guide you how to install this plugin to be able to use it.

Just like Install Git plugin in Jenkins, first of all, you need log into your admin account then go to Manage Jenkins, select Manage Plugins, select the Available tab, then find the Maven Integration plugin:

Install Maven Integration plugin in Jenkins

then click Install without restart or Download now and install after restart to install it.

This plugin needs other dependency plugins like:

  • Apache HttpComponents Client 4.x API
  • Javadoc
  • JSch dependency
  • JUnit
  • Mailer
  • Token Macro
  • bouncycastle API
  • Command Agent Launcher
  • JDK Tool

But since my Jenkins now installed the Git plugin before so some dependencies are available, now just install the ones that have not. So, you will see the results as follows, after clicking Install without restart or Download now and install after restart.

Install Maven Integration plugin in Jenkins

As you can see, to install Maven Integration plugin, I just need to install the Javadoc plugin.

Wait until all the plugins have been installed, click the link Go back to the top page to start using Maven Integration plugin.

Click the New Item link, you will see the option for Maven project as follows:

Install Maven Integration plugin in Jenkins

 

One thought on “Install Maven Integration plugin in Jenkins

  1. Avatar

    I am getting the error below for JUnit:
    java.io.IOException: Failed to load: JUnit Plugin (1.48)
    – Update required: ECharts API Plugin (4.8.0-2) to be updated to 4.9.0-2 or higher
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:934)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:931)
    Caused: java.io.IOException: Failed to install junit plugin
    at hudson.PluginManager.dynamicLoad(PluginManager.java:944)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2137)
    Caused: java.io.IOException: Failed to dynamically deploy this plugin
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2141)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1821)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
    at java.lang.Thread.run(Unknown Source)

    And for Maven Integration:
    java.io.IOException: Failed to load: Maven Integration plugin (3.8)
    – Failed to load: JUnit Plugin (1.48)
    at hudson.PluginWrapper.resolvePluginDependencies(PluginWrapper.java:934)
    at hudson.PluginManager.dynamicLoad(PluginManager.java:931)
    Caused: java.io.IOException: Failed to install maven-plugin plugin
    at hudson.PluginManager.dynamicLoad(PluginManager.java:944)
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2137)
    Caused: java.io.IOException: Failed to dynamically deploy this plugin
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2141)
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1821)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:111)
    at java.lang.Thread.run(Unknown Source)

Add Comment