latest version to use maven2 without embedder ?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

latest version to use maven2 without embedder ?

nicolas de loof-2
Hello

I'd like to build my project in hudson but REQUIRE a custom settings.xml to acces my corporate maven proxy (my CI server has no internet access). Latest hudson versions use maven2 embedder that bypass the settings.xml file (used by maven-cli).

What is the latest version of hudson to use a separate process for maven2 projects ?

Nico.
Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

Gregory Kick-2
nico,

i'm pretty sure that the embedder is only used for hudson to parse
poms.  the actual build is performed by a "real" maven instance.  if
you set up a freestyle project instead of a maven2 project you
shouldn't use the embedder at all.

On 10/18/07, nicolas de loof <[hidden email]> wrote:

> Hello
>
> I'd like to build my project in hudson but REQUIRE a custom settings.xml to
> acces my corporate maven proxy (my CI server has no internet access). Latest
> hudson versions use maven2 embedder that bypass the settings.xml file (used
> by maven-cli).
>
> What is the latest version of hudson to use a separate process for maven2
> projects ?
>
> Nico.
>


--
Gregory Kick
http://kickstyle.net/

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

Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

nicolas de loof-2
I want my project to get splitted into separate modules in hudson, so I need maven2 project...

2007/10/18, Gregory Kick <[hidden email]>:
nico,

i'm pretty sure that the embedder is only used for hudson to parse
poms.  the actual build is performed by a "real" maven instance.  if
you set up a freestyle project instead of a maven2 project you
shouldn't use the embedder at all.

On 10/18/07, nicolas de loof <[hidden email]> wrote:

> Hello
>
> I'd like to build my project in hudson but REQUIRE a custom settings.xml to
> acces my corporate maven proxy (my CI server has no internet access). Latest
> hudson versions use maven2 embedder that bypass the settings.xml file (used
> by maven-cli).
>
> What is the latest version of hudson to use a separate process for maven2
> projects ?
>
> Nico.
>


--
Gregory Kick
http://kickstyle.net/

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


Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

Gregory Kick-2
in that case, the embedder _should_ pick up a .m2/settings.xml in the
home directory of the user running hudson.

On 10/18/07, nicolas de loof <[hidden email]> wrote:

> I want my project to get splitted into separate modules in hudson, so I need
> maven2 project...
>
>
> 2007/10/18, Gregory Kick <[hidden email]>:
> >
> > nico,
> >
> > i'm pretty sure that the embedder is only used for hudson to parse
> > poms.  the actual build is performed by a "real" maven instance.  if
> > you set up a freestyle project instead of a maven2 project you
> > shouldn't use the embedder at all.
> >
> > On 10/18/07, nicolas de loof <[hidden email]> wrote:
> > > Hello
> > >
> > > I'd like to build my project in hudson but REQUIRE a custom settings.xml
> to
> > > acces my corporate maven proxy (my CI server has no internet access).
> Latest
> > > hudson versions use maven2 embedder that bypass the settings.xml file
> (used
> > > by maven-cli).
> > >
> > > What is the latest version of hudson to use a separate process for
> maven2
> > > projects ?
> > >
> > > Nico.
> > >
> >
> >
> > --
> > Gregory Kick
> > http://kickstyle.net/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
Gregory Kick
http://kickstyle.net/

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

Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

Kohsuke Kawaguchi
Administrator
In reply to this post by Gregory Kick-2
Gregory Kick wrote:
> nico,
>
> i'm pretty sure that the embedder is only used for hudson to parse
> poms.  the actual build is performed by a "real" maven instance.  if
> you set up a freestyle project instead of a maven2 project you
> shouldn't use the embedder at all.

Correct.

--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: latest version to use maven2 without embedder ?

nicolas de loof-2
In reply to this post by Gregory Kick-2
I have a settings.xml in my $HOME/.m2 but creating a new job for my project in hudson fails after checkout :

ERROR: Failed to parse POMs

hudson.util.IOException2: Cannot find parent: com.capgemini.platina:platina

The parent POM cannot be donwloaded. It is present in my corporate repo that is configured as a central mirror.
I also tried to change the maven2/conf/settings.xml with no more success.

If a standard "separate process" maven is used during the build, why isn't my conf used ?
Started from the command line, my project builds as expected.

Nico.

2007/10/18, Gregory Kick <[hidden email]>:
in that case, the embedder _should_ pick up a .m2/settings.xml in the
home directory of the user running hudson.

On 10/18/07, nicolas de loof <[hidden email]> wrote:

> I want my project to get splitted into separate modules in hudson, so I need
> maven2 project...
>
>
> 2007/10/18, Gregory Kick <[hidden email]>:
> >
> > nico,
> >
> > i'm pretty sure that the embedder is only used for hudson to parse
> > poms.  the actual build is performed by a "real" maven instance.  if
> > you set up a freestyle project instead of a maven2 project you
> > shouldn't use the embedder at all.
> >
> > On 10/18/07, nicolas de loof <[hidden email]> wrote:
> > > Hello
> > >
> > > I'd like to build my project in hudson but REQUIRE a custom settings.xml
> to
> > > acces my corporate maven proxy (my CI server has no internet access).
> Latest
> > > hudson versions use maven2 embedder that bypass the settings.xml file
> (used
> > > by maven-cli).
> > >
> > > What is the latest version of hudson to use a separate process for
> maven2
> > > projects ?
> > >
> > > Nico.
> > >
> >
> >
> > --
> > Gregory Kick
> > http://kickstyle.net/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
Gregory Kick
http://kickstyle.net/

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


Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

nicolas de loof-2
Stacktrace from the build log :

org.apache.maven.project.ProjectBuildingException: Cannot find parent: com.capgemini.platina:platina for project: com.capgemini.vpc:vpc:pom:2.19.00

at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage (DefaultMavenProjectBuilder.java:1161)

at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)

at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal (DefaultMavenProjectBuilder.java:416)

at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)

at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:269)

So the maven instance used to build my project (the first time ?) IS maven embedder, that doesn't read settings.

Is there any previous hudson version that did not use embedder ? I'm using the latest 1.142


2007/10/19, nicolas de loof <[hidden email]>:
I have a settings.xml in my $HOME/.m2 but creating a new job for my project in hudson fails after checkout :

ERROR: Failed to parse POMs

hudson.util.IOException2: Cannot find parent: com.capgemini.platina:platina

The parent POM cannot be donwloaded. It is present in my corporate repo that is configured as a central mirror.
I also tried to change the maven2/conf/settings.xml with no more success.

If a standard "separate process" maven is used during the build, why isn't my conf used ?
Started from the command line, my project builds as expected.

Nico.


2007/10/18, Gregory Kick <[hidden email]>:
in that case, the embedder _should_ pick up a .m2/settings.xml in the
home directory of the user running hudson.

On 10/18/07, nicolas de loof <[hidden email]> wrote:

> I want my project to get splitted into separate modules in hudson, so I need
> maven2 project...
>
>
> 2007/10/18, Gregory Kick <[hidden email]>:
> >
> > nico,
> >
> > i'm pretty sure that the embedder is only used for hudson to parse
> > poms.  the actual build is performed by a "real" maven instance.  if
> > you set up a freestyle project instead of a maven2 project you
> > shouldn't use the embedder at all.
> >
> > On 10/18/07, nicolas de loof <[hidden email]> wrote:
> > > Hello
> > >
> > > I'd like to build my project in hudson but REQUIRE a custom settings.xml
> to
> > > acces my corporate maven proxy (my CI server has no internet access).
> Latest
> > > hudson versions use maven2 embedder that bypass the settings.xml file
> (used
> > > by maven-cli).
> > >
> > > What is the latest version of hudson to use a separate process for
> maven2
> > > projects ?
> > >
> > > Nico.
> > >
> >
> >
> > --
> > Gregory Kick
> > <a href="http://kickstyle.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://kickstyle.net/
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
> >
>
>


--
Gregory Kick
<a href="http://kickstyle.net/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://kickstyle.net/

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



Reply | Threaded
Open this post in threaded view
|

Re: latest version to use maven2 without embedder ?

Kohsuke Kawaguchi
Administrator
nicolas de loof wrote:

> Stacktrace from the build log :
>
> org.apache.maven.project.ProjectBuildingException: Cannot find parent:
> com.capgemini.platina:platina for project:
> com.capgemini.vpc:vpc:pom:2.19.00
>
> at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161)
>
> at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)
>
> at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416)
>
> at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
>
> at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:269)
>
>
> So the maven instance used to build my project (the first time ?) IS maven
> embedder, that doesn't read settings.
Actually, the maven embedder does read
System.getProperty("user.home")/.m2/settings.xml to the best of my
knowledge.

If you have the settings.xml file somewhere else, then an RFE is in order.

> Is there any previous hudson version that did not use embedder ? I'm using
> the latest 1.142

I don't think there's any version of Hudson that doesn't use embedder.
As Gregory pointed out, I think the only fallback is the free-style project.


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

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

Re: latest version to use maven2 without embedder ?

Gregory Kick-2
actually, this is probably a maven issue.  try running it with "-cpu
-U".  sometimes the metadata gets screwed up and it won't check again
after it has failed previously.  deleting the ~/.m2/repository folder
ought to fix it also.

On Oct 29, 2007 8:58 PM, Kohsuke Kawaguchi <[hidden email]> wrote:

> nicolas de loof wrote:
> > Stacktrace from the build log :
> >
> > org.apache.maven.project.ProjectBuildingException: Cannot find parent:
> > com.capgemini.platina:platina for project:
> > com.capgemini.vpc:vpc:pom:2.19.00
> >
> >       at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1161)
> >
> >       at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:674)
> >
> >       at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:416)
> >
> >       at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:192)
> >
> >       at hudson.maven.MavenEmbedder.readProject(MavenEmbedder.java:269)
> >
> >
> > So the maven instance used to build my project (the first time ?) IS maven
> > embedder, that doesn't read settings.
>
> Actually, the maven embedder does read
> System.getProperty("user.home")/.m2/settings.xml to the best of my
> knowledge.
>
> If you have the settings.xml file somewhere else, then an RFE is in order.
>
> > Is there any previous hudson version that did not use embedder ? I'm using
> > the latest 1.142
>
> I don't think there's any version of Hudson that doesn't use embedder.
> As Gregory pointed out, I think the only fallback is the free-style project.
>
>
>
> --
> Kohsuke Kawaguchi
> Sun Microsystems                   [hidden email]
>



--
Gregory Kick
http://kickstyle.net/

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