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

hudson.maven.RedeployPublisher trying to create ~/.m2 on master to deploy artifacts to Maven repository

XMLWordPrintable

      When RedeployPublisher deploys packages to Maven repository, it trying to create the ~/.m2 directory on the Master. This behavior doesn't depends on the "Use private Maven repository" option.

      Build log:

      Maven RedeployPublished use remote <slave> maven settings from : <Remote FS root>/tools/Maven_3.0.3/conf/settings.xml
      ERROR: Publisher hudson.maven.RedeployPublisher aborted due to exception
      hudson.AbortException: Failed to create <Master user.home>/.m2
      See https://hudson.dev.java.net/cannot-create-.m2.html
      	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:151)
      	at hudson.maven.RedeployPublisher.createEmbedder(RedeployPublisher.java:296)
      	at hudson.maven.RedeployPublisher.perform(RedeployPublisher.java:137)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      	at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:693)
      	at hudson.model.AbstractBuild$AbstractRunner.performAllBuildSteps(AbstractBuild.java:668)
      	at hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:953)
      	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:615)
      	at hudson.model.Run.run(Run.java:1401)
      	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:474)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:230)
      

      This behavior isn't suitable, if we don't have Maven on the Master, accordingly the ~/.m2 directory doesn't exist. Why this directory needed on the Master?

            Unassigned Unassigned
            kolchinmax Maxim Kolchin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: