java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method.

Jenkins JIRA | dhouthoo | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    while doing the initial build of a maven2 project that is located in a local svn repository (file:///....) I encountered following error: started Checking out a fresh workspace because /home/devel/hudson_home/jobs/XXX/workspace/trunk doesn't exist Checking out file:///scm/svn/products/XXX/trunk <snip svn output> U At revision 281 no revision recorded for file:///scm/svn/products/XXX/trunk in the previous build Parsing POMs ERROR: Processing failed due to a bug in the code. Please report thus to users@hudson.dev.java.net java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. at hudson.maven.MavenEmbedder.createMavenSettings(MavenEmbedder.java:708) at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:637) at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:36) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:206) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:175) at hudson.FilePath.act(FilePath.java:232) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:118) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119) at hudson.model.Run.run(Run.java:544) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:107) at hudson.model.Executor.run(Executor.java:61) FATAL: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. at hudson.maven.MavenEmbedder.createMavenSettings(MavenEmbedder.java:708) at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:637) at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:36) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:206) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:175) at hudson.FilePath.act(FilePath.java:232) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:118) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119) at hudson.model.Run.run(Run.java:544) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:107) at hudson.model.Executor.run(Executor.java:61)

    Jenkins JIRA | 1 decade ago | dhouthoo
    java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method.
  2. 0

    while doing the initial build of a maven2 project that is located in a local svn repository (file:///....) I encountered following error: started Checking out a fresh workspace because /home/devel/hudson_home/jobs/XXX/workspace/trunk doesn't exist Checking out file:///scm/svn/products/XXX/trunk <snip svn output> U At revision 281 no revision recorded for file:///scm/svn/products/XXX/trunk in the previous build Parsing POMs ERROR: Processing failed due to a bug in the code. Please report thus to users@hudson.dev.java.net java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. at hudson.maven.MavenEmbedder.createMavenSettings(MavenEmbedder.java:708) at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:637) at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:36) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:206) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:175) at hudson.FilePath.act(FilePath.java:232) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:118) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119) at hudson.model.Run.run(Run.java:544) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:107) at hudson.model.Executor.run(Executor.java:61) FATAL: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method. at hudson.maven.MavenEmbedder.createMavenSettings(MavenEmbedder.java:708) at hudson.maven.MavenEmbedder.start(MavenEmbedder.java:637) at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:36) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:206) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:175) at hudson.FilePath.act(FilePath.java:232) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:118) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119) at hudson.model.Run.run(Run.java:544) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:107) at hudson.model.Executor.run(Executor.java:61)

    Jenkins JIRA | 1 decade ago | dhouthoo
    java.lang.IllegalArgumentException: When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      When not aligning with a user install you must specify a local repository location using the setLocalRepositoryDirectory( File ) method.

      at hudson.maven.MavenEmbedder.createMavenSettings()
    2. Hudson Maven Embedder
      MavenModuleSetBuild$PomParser.invoke
      1. hudson.maven.MavenEmbedder.createMavenSettings(MavenEmbedder.java:708)
      2. hudson.maven.MavenEmbedder.start(MavenEmbedder.java:637)
      3. hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:36)
      4. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:206)
      5. hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:175)
      5 frames
    3. Hudson
      FilePath.act
      1. hudson.FilePath.act(FilePath.java:232)
      1 frame
    4. Hudson Maven Embedder
      MavenModuleSetBuild$RunnerImpl.doRun
      1. hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:118)
      1 frame
    5. Hudson
      Run.run
      1. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119)
      2. hudson.model.Run.run(Run.java:544)
      2 frames
    6. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:107)
      1 frame
    7. Hudson
      Executor.run
      1. hudson.model.Executor.run(Executor.java:61)
      1 frame