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

Dependency to Maven 2.12 is not optional

XMLWordPrintable

      Hello,

      In the plugin wiki page, it is mentioned that we need Jenkins 1.609 and and the docker-commons plugin 1.0 if we want to use the Docker Custom Build Env plugin.

      Two others dependencies are listed as optional: maven-plugin 2.12 & dockerhub-notification 1.0.

      I tried to install your plugin on Jenkins 1.609.3 with docker-commons installed and I get the following error at Jenkins startup :

      Warning: Failed to scout com.cloudbees.jenkins.plugins.docker_build_env.MavenPluginHelper
      java.lang.InstantiationException: java.lang.NoClassDefFoundError: hudson/maven/TcpSocketHostLocator
      

      Note that as I didn't explicitly installed the maven-plugin, Jenkins was using the one embedded in 1.609.3, maven-plugin 2.7.1.

      Then I installed the maven-plugin 2.12 and your plugin was working fine: I didn't get any error at Jenkins startup.

      So could you please update the wiki page of your plugin to specify that maven-plugin 2.12 is not and optional dependency ?

      Regards,
      Pierre

            jonhermansen Jon Hermansen
            pfrayer Pierre Frayer
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: