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

Redeploy Artifacts fails if Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • maven-plugin
    • None
    • 1.450 Solaris JDK 1.6.0-21

      If Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"
      Redeploy Artifacts fails with:
      java.lang.NullPointerException
      at hudson.maven.local_repo.PerExecutorLocalRepositoryLocator.locate(PerExecutorLocalRepositoryLocator.java:18)
      at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:106)
      at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:224)
      at hudson.model.TaskThread.run(TaskThread.java:127)

      It would appear that at least one non-executor associated repo would be required.

      Workaround is to set Use private Maven repository->Local to workspace for the jobs one wishes to support redeploy.

          [JENKINS-12887] Redeploy Artifacts fails if Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"

          Jeff Maxwell created issue -
          Jeff Maxwell made changes -
          Description Original: If Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"
          Redeploy Artifacts fails with:
          java.lang.NullPointerException
          at hudson.maven.local_repo.PerExecutorLocalRepositoryLocator.locate(PerExecutorLocalRepositoryLocator.java:18)
          at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:106)
          at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:224)
          at hudson.model.TaskThread.run(TaskThread.java:127)
          New: If Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"
          Redeploy Artifacts fails with:
          java.lang.NullPointerException
          at hudson.maven.local_repo.PerExecutorLocalRepositoryLocator.locate(PerExecutorLocalRepositoryLocator.java:18)
          at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:106)
          at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:224)
          at hudson.model.TaskThread.run(TaskThread.java:127)

          It would appear that at least one non-executor associated repo would be required.
          Jeff Maxwell made changes -
          Description Original: If Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"
          Redeploy Artifacts fails with:
          java.lang.NullPointerException
          at hudson.maven.local_repo.PerExecutorLocalRepositoryLocator.locate(PerExecutorLocalRepositoryLocator.java:18)
          at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:106)
          at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:224)
          at hudson.model.TaskThread.run(TaskThread.java:127)

          It would appear that at least one non-executor associated repo would be required.
          New: If Maven Project Configuration->Local Maven Repository is set to "Local to the Executor"
          Redeploy Artifacts fails with:
          java.lang.NullPointerException
          at hudson.maven.local_repo.PerExecutorLocalRepositoryLocator.locate(PerExecutorLocalRepositoryLocator.java:18)
          at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:106)
          at hudson.maven.reporters.MavenAbstractArtifactRecord$1.perform(MavenAbstractArtifactRecord.java:224)
          at hudson.model.TaskThread.run(TaskThread.java:127)

          It would appear that at least one non-executor associated repo would be required.

          Workaround is to set Use private Maven repository->Local to workspace for the jobs one wishes to support redeploy.
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 143347 ] New: JNJira + In-Review [ 175880 ]

            Unassigned Unassigned
            jmaxwell Jeff Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: