BUG Report

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

BUG Report

Boris Terzic
Hi All,

As per the instructions in the console output of Hudson I'm submitting this to this user list. I may be doing something completey stupid since I've never used hudson before.

What I did was:

    Install Hudson
    Configure a 1.5 JDK
    Configure a Maven 1 home (Maven 1.1 beta 2)
    Add a new job
        -> checkout from SVN (this worked)
        - > Selected the JDK
        -> selected my configured Maven1
        -> set build trigger to SCM with a 5 minute interval
        -> forced a build of the module

The stacktrace below comes just after a successfull checkout of the entire module. Hope this helps

At revision 14785
Parsing POMs
ERROR: Processing failed due to a bug in the code. Please report thus to [hidden email]
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:33)
         at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java :189)
         at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:158)
         at hudson.FilePath.act(FilePath.java:226)
         at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java :101)
         at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119)
         at hudson.model.Run.run(Run.java:544)
         at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:90)
         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:33)
         at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java :189)
         at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:158)
         at hudson.FilePath.act(FilePath.java:226)
         at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java :101)
         at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:119)
         at hudson.model.Run.run(Run.java:544)
         at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:90)
         at hudson.model.Executor.run(Executor.java:61)
Reply | Threaded
Open this post in threaded view
|

Re: BUG Report

Rhett Sutphin
Hi Boris,

I had this problem when I was setting up, too.  In my case, the  
problem was that the user hudson was running as ("build") did not  
have a local repository.  I'm using maven 2, so I created the  
directory ~build/.m2/repository and that cleared up this error.

I'm not sure what the equivalent directory is for maven 1, but you  
could probably get the same effect by running a build once from the  
command line as hudson's effective user.

HTH,
Rhett

On Mar 14, 2007, at 7:03 AM, Boris Terzic wrote:

> Hi All,
>
> As per the instructions in the console output of Hudson I'm  
> submitting this to this user list. I may be doing something  
> completey stupid since I've never used hudson before.
>
> What I did was:
>
>     Install Hudson
>     Configure a 1.5 JDK
>     Configure a Maven 1 home (Maven 1.1 beta 2)
>     Add a new job
>         -> checkout from SVN (this worked)
>         - > Selected the JDK
>         -> selected my configured Maven1
>         -> set build trigger to SCM with a 5 minute interval
>         -> forced a build of the module
>
> The stacktrace below comes just after a successfull checkout of the  
> entire module. Hope this helps
>
> At revision 14785
> Parsing POMs
> ERROR: Processing failed due to a bug in the code. Please report  
> thus to [hidden email]
> 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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java :189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun
> (MavenModuleSetBuild.java :101)
>          at hudson.model.AbstractBuild$AbstractRunner.run
> (AbstractBuild.java:119)
>          at hudson.model.Run.run(Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run
> (MavenModuleSetBuild.java:90)
>          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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java :189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun
> (MavenModuleSetBuild.java :101)
>          at hudson.model.AbstractBuild$AbstractRunner.run
> (AbstractBuild.java:119)
>          at hudson.model.Run.run(Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run
> (MavenModuleSetBuild.java:90)
>          at hudson.model.Executor.run(Executor.java:61)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: BUG Report

Kohsuke Kawaguchi-2
In reply to this post by Boris Terzic

Thanks. Fixed in 1.88.

Boris Terzic wrote:

> Hi All,
>
> As per the instructions in the console output of Hudson I'm submitting this
> to this user list. I may be doing something completey stupid since I've
> never used hudson before.
>
> What I did was:
>
>     Install Hudson
>     Configure a 1.5 JDK
>     Configure a Maven 1 home (Maven 1.1 beta 2)
>     Add a new job
>         -> checkout from SVN (this worked)
>         - > Selected the JDK
>         -> selected my configured Maven1
>         -> set build trigger to SCM with a 5 minute interval
>         -> forced a build of the module
>
> The stacktrace below comes just after a successfull checkout of the entire
> module. Hope this helps
>
> At revision 14785
> Parsing POMs
> ERROR: Processing failed due to a bug in the code. Please report thus to
> [hidden email]
> 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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke(
> MavenModuleSetBuild.java:189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke(
> MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(
> MavenModuleSetBuild.java:101)
>          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java
> :119)
>          at hudson.model.Run.run(Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java
> :90)
>          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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke(
> MavenModuleSetBuild.java:189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke(
> MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(
> MavenModuleSetBuild.java:101)
>          at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java
> :119)
>          at hudson.model.Run.run(Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java
> :90)
>          at hudson.model.Executor.run(Executor.java:61)
>

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: BUG Report

Boris Terzic-2
In reply to this post by Rhett Sutphin
Hi Rhett,

Thanks for the suggestion, although I'm running on Windows the problem was the same. Tomcat was running as a service under the Local System account which did not have a maven repo. Running the service under my account made the build run through.

Thanks!

On 3/14/07, Rhett Sutphin <[hidden email]> wrote:
Hi Boris,

I had this problem when I was setting up, too.  In my case, the
problem was that the user hudson was running as ("build") did not
have a local repository.  I'm using maven 2, so I created the
directory ~build/.m2/repository and that cleared up this error.

I'm not sure what the equivalent directory is for maven 1, but you
could probably get the same effect by running a build once from the
command line as hudson's effective user.

HTH,
Rhett

On Mar 14, 2007, at 7:03 AM, Boris Terzic wrote:

> Hi All,
>
> As per the instructions in the console output of Hudson I'm
> submitting this to this user list. I may be doing something
> completey stupid since I've never used hudson before.
>
> What I did was:
>
>     Install Hudson
>     Configure a 1.5 JDK
>     Configure a Maven 1 home (Maven 1.1 beta 2)
>     Add a new job
>         -> checkout from SVN (this worked)
>         - > Selected the JDK
>         -> selected my configured Maven1
>         -> set build trigger to SCM with a 5 minute interval
>         -> forced a build of the module
>
> The stacktrace below comes just after a successfull checkout of the
> entire module. Hope this helps
>
> At revision 14785
> Parsing POMs
> ERROR: Processing failed due to a bug in the code. Please report
> thus to [hidden email]
> 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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java :189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun
> (MavenModuleSetBuild.java :101)
>          at hudson.model.AbstractBuild$AbstractRunner.run
> (AbstractBuild.java:119)
>          at hudson.model.Run.run (Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run
> (MavenModuleSetBuild.java:90)
>          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:33)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java :189)
>          at hudson.maven.MavenModuleSetBuild$PomParser.invoke
> (MavenModuleSetBuild.java:158)
>          at hudson.FilePath.act(FilePath.java:226)
>          at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun
> (MavenModuleSetBuild.java :101)
>          at hudson.model.AbstractBuild$AbstractRunner.run
> (AbstractBuild.java:119)
>          at hudson.model.Run.run(Run.java:544)
>          at hudson.maven.MavenModuleSetBuild.run
> (MavenModuleSetBuild.java :90)
>          at hudson.model.Executor.run(Executor.java:61)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]




--
Boris