You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Franck de Bruijn <fr...@zonnet.nl> on 2005/10/24 22:50:42 UTC

m2 eclipse plugin wtpmodules dependencies to artifacts

Hi,

 

I'm trying out maven 2 and the eclipse plugin in combination with Eclipse
WTP.

 

Everything works fine, although I do not manage to generate the 'dependent
modules' section in the .wtpmodules file, like below:

 

            <dependent-module deploy-path="/WEB-INF/lib"

 
handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/struts-1.2.4.jar">

                  <dependency-type>uses</dependency-type>

            </dependent-module>

 

The 'wb-resource' sections are generated successfully like below:

 

<wb-resource deploy-path="/WEB-INF/classes"

                  source-path="src/main/java" />

 

The struts jar-file is appended to the .classpath file, so I presume that I
have configured my dependencies correctly.

 

I checked the source code of the eclipse plugin, but I can't figure out what
I'm doing wrong.

 

Can anyone offer some help?

Thanks,

Franck


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Brian Bonner <bk...@gmail.com>.
Franck,

Nice catch.  I'm posting a JIRA on this out on MNG.  I'm going to try
your chagne to see what happens.

Brian
On 10/25/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> Hi,
>
> I digged a little bit deeper and I noticed the following:
>
> * EclipseClassPathWriter and EclipseWtpmodulesWriter are both invoked from
> EclipsePlugin
> * EclipseClassPathWriter gets invoked with a reference to 'project', while
> EcpliseWtpmodulesWriter gets invoked with a reference to 'executedProject'.
> * Some debug statements revealed that the latter does not have any artifacts
> defined, and thus no dependency modules are written.
>
> I changed 'executedProject' to 'project' and the plugin worked for me.
>
> I am not sure if this is THE solution, since I actually have no clue about
> the difference between so-called reactor projects and 'normal' projects.
>
> Cheers,
> Franck
>
> -----Original Message-----
> From: Brian Bonner [mailto:bkbonner@gmail.com]
> Sent: dinsdag 25 oktober 2005 18:41
> To: Maven Users List
> Subject: Re: m2 eclipse plugin wtpmodules dependencies to artifacts
>
> I should have added:
>
> of EclipseWtpmodulesWriter.
>
> On 10/25/05, Brian Bonner <bk...@gmail.com> wrote:
> > Looking for the same thing :)  II looked at the maven-eclipse-plugin
> > source and it looks like it should pull these artifacts (check out the
> > addDependency() method).
> >
> > Anyone have a suggestion on this?
> > On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> > > Hi,
> > >
> > >
> > >
> > > I'm trying out maven 2 and the eclipse plugin in combination with
> Eclipse
> > > WTP.
> > >
> > >
> > >
> > > Everything works fine, although I do not manage to generate the
> 'dependent
> > > modules' section in the .wtpmodules file, like below:
> > >
> > >
> > >
> > >             <dependent-module deploy-path="/WEB-INF/lib"
> > >
> > >
> > >
> handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/struts-1.2.4.jar">
> > >
> > >                   <dependency-type>uses</dependency-type>
> > >
> > >             </dependent-module>
> > >
> > >
> > >
> > > The 'wb-resource' sections are generated successfully like below:
> > >
> > >
> > >
> > > <wb-resource deploy-path="/WEB-INF/classes"
> > >
> > >                   source-path="src/main/java" />
> > >
> > >
> > >
> > > The struts jar-file is appended to the .classpath file, so I presume
> that I
> > > have configured my dependencies correctly.
> > >
> > >
> > >
> > > I checked the source code of the eclipse plugin, but I can't figure out
> what
> > > I'm doing wrong.
> > >
> > >
> > >
> > > Can anyone offer some help?
> > >
> > > Thanks,
> > >
> > > Franck
> > >
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Brian Bonner <bk...@gmail.com>.
I posted:  http://jira.codehaus.org/browse/MNG-1332  This has a quick
patch that enables the eclipse plugin to work for .wtpmodules.

Check out maven-eclipse-plugin out of svn into eclipse.  apply the
patch and then from the command line issue 'mvn install
-DupdateReleaseInfo=true.

Have fun.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Brian Bonner <bk...@gmail.com>.
Ralph,

When we get it worked out, yes, I'll get w/ Jason to get it posted.

Brian
On 10/26/05, Ralph Pöllath <li...@poellath.org> wrote:
> Hi,
>
> I'm also interested in using m2 with Eclipse WTP, but I'm currently
> lacking the time to fiddle around with it.
>
> Do you guys think you could document your progress somewhere, maybe
> on the maven wiki (http://docs.codehaus.org/display/MAVEN/Home )?
> Since the current documentation on the issue (http://maven.apache.org/
> guides/mini/guide-ide-eclipse.html ) is clearly lacking, I figure
> this would be highly appreciated.
>
> Thanks,
> -Ralph.
>
> On 25.10.2005, at 23:00, Franck de Bruijn wrote:
> > Hi,
> >
> > I digged a little bit deeper and I noticed the following:
> >
> > * EclipseClassPathWriter and EclipseWtpmodulesWriter are both
> > invoked from
> > EclipsePlugin
> > * EclipseClassPathWriter gets invoked with a reference to
> > 'project', while
> > EcpliseWtpmodulesWriter gets invoked with a reference to
> > 'executedProject'.
> > * Some debug statements revealed that the latter does not have any
> > artifacts
> > defined, and thus no dependency modules are written.
> >
> > I changed 'executedProject' to 'project' and the plugin worked for me.
> >
> > I am not sure if this is THE solution, since I actually have no
> > clue about
> > the difference between so-called reactor projects and 'normal'
> > projects.
> >
> > Cheers,
> > Franck
> >
> > -----Original Message-----
> > From: Brian Bonner [mailto:bkbonner@gmail.com]
> > Sent: dinsdag 25 oktober 2005 18:41
> > To: Maven Users List
> > Subject: Re: m2 eclipse plugin wtpmodules dependencies to artifacts
> >
> > I should have added:
> >
> > of EclipseWtpmodulesWriter.
> >
> > On 10/25/05, Brian Bonner <bk...@gmail.com> wrote:
> >
> >> Looking for the same thing :)  II looked at the maven-eclipse-plugin
> >> source and it looks like it should pull these artifacts (check out
> >> the
> >> addDependency() method).
> >>
> >> Anyone have a suggestion on this?
> >> On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> >>
> >>> Hi,
> >>>
> >>>
> >>>
> >>> I'm trying out maven 2 and the eclipse plugin in combination with
> >>>
> > Eclipse
> >
> >>> WTP.
> >>>
> >>>
> >>>
> >>> Everything works fine, although I do not manage to generate the
> >>>
> > 'dependent
> >
> >>> modules' section in the .wtpmodules file, like below:
> >>>
> >>>
> >>>
> >>>             <dependent-module deploy-path="/WEB-INF/lib"
> >>>
> >>>
> >>>
> >>>
> > handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/
> > struts-1.2.4.jar">
> >
> >>>
> >>>                   <dependency-type>uses</dependency-type>
> >>>
> >>>             </dependent-module>
> >>>
> >>>
> >>>
> >>> The 'wb-resource' sections are generated successfully like below:
> >>>
> >>>
> >>>
> >>> <wb-resource deploy-path="/WEB-INF/classes"
> >>>
> >>>                   source-path="src/main/java" />
> >>>
> >>>
> >>>
> >>> The struts jar-file is appended to the .classpath file, so I presume
> >>>
> >>> that I
> >>> have configured my dependencies correctly.
> >>>
> >>>
> >>>
> >>> I checked the source code of the eclipse plugin, but I can't
> >>> figure out
> >>>
> >>> what
> >>>
> >>> I'm doing wrong.
> >>>
> >>>
> >>>
> >>> Can anyone offer some help?
> >>>
> >>> Thanks,
> >>>
> >>> Franck
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Ralph Pöllath <li...@poellath.org>.
Hi,

I'm also interested in using m2 with Eclipse WTP, but I'm currently  
lacking the time to fiddle around with it.

Do you guys think you could document your progress somewhere, maybe  
on the maven wiki (http://docs.codehaus.org/display/MAVEN/Home )?  
Since the current documentation on the issue (http://maven.apache.org/ 
guides/mini/guide-ide-eclipse.html ) is clearly lacking, I figure  
this would be highly appreciated.

Thanks,
-Ralph.

On 25.10.2005, at 23:00, Franck de Bruijn wrote:
> Hi,
>
> I digged a little bit deeper and I noticed the following:
>
> * EclipseClassPathWriter and EclipseWtpmodulesWriter are both  
> invoked from
> EclipsePlugin
> * EclipseClassPathWriter gets invoked with a reference to  
> 'project', while
> EcpliseWtpmodulesWriter gets invoked with a reference to  
> 'executedProject'.
> * Some debug statements revealed that the latter does not have any  
> artifacts
> defined, and thus no dependency modules are written.
>
> I changed 'executedProject' to 'project' and the plugin worked for me.
>
> I am not sure if this is THE solution, since I actually have no  
> clue about
> the difference between so-called reactor projects and 'normal'  
> projects.
>
> Cheers,
> Franck
>
> -----Original Message-----
> From: Brian Bonner [mailto:bkbonner@gmail.com]
> Sent: dinsdag 25 oktober 2005 18:41
> To: Maven Users List
> Subject: Re: m2 eclipse plugin wtpmodules dependencies to artifacts
>
> I should have added:
>
> of EclipseWtpmodulesWriter.
>
> On 10/25/05, Brian Bonner <bk...@gmail.com> wrote:
>
>> Looking for the same thing :)  II looked at the maven-eclipse-plugin
>> source and it looks like it should pull these artifacts (check out  
>> the
>> addDependency() method).
>>
>> Anyone have a suggestion on this?
>> On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
>>
>>> Hi,
>>>
>>>
>>>
>>> I'm trying out maven 2 and the eclipse plugin in combination with
>>>
> Eclipse
>
>>> WTP.
>>>
>>>
>>>
>>> Everything works fine, although I do not manage to generate the
>>>
> 'dependent
>
>>> modules' section in the .wtpmodules file, like below:
>>>
>>>
>>>
>>>             <dependent-module deploy-path="/WEB-INF/lib"
>>>
>>>
>>>
>>>
> handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/ 
> struts-1.2.4.jar">
>
>>>
>>>                   <dependency-type>uses</dependency-type>
>>>
>>>             </dependent-module>
>>>
>>>
>>>
>>> The 'wb-resource' sections are generated successfully like below:
>>>
>>>
>>>
>>> <wb-resource deploy-path="/WEB-INF/classes"
>>>
>>>                   source-path="src/main/java" />
>>>
>>>
>>>
>>> The struts jar-file is appended to the .classpath file, so I presume
>>>
>>> that I
>>> have configured my dependencies correctly.
>>>
>>>
>>>
>>> I checked the source code of the eclipse plugin, but I can't  
>>> figure out
>>>
>>> what
>>>
>>> I'm doing wrong.
>>>
>>>
>>>
>>> Can anyone offer some help?
>>>
>>> Thanks,
>>>
>>> Franck

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Franck de Bruijn <fr...@zonnet.nl>.
Hi,

I digged a little bit deeper and I noticed the following:

* EclipseClassPathWriter and EclipseWtpmodulesWriter are both invoked from
EclipsePlugin
* EclipseClassPathWriter gets invoked with a reference to 'project', while
EcpliseWtpmodulesWriter gets invoked with a reference to 'executedProject'.
* Some debug statements revealed that the latter does not have any artifacts
defined, and thus no dependency modules are written.

I changed 'executedProject' to 'project' and the plugin worked for me.

I am not sure if this is THE solution, since I actually have no clue about
the difference between so-called reactor projects and 'normal' projects.

Cheers,
Franck

-----Original Message-----
From: Brian Bonner [mailto:bkbonner@gmail.com] 
Sent: dinsdag 25 oktober 2005 18:41
To: Maven Users List
Subject: Re: m2 eclipse plugin wtpmodules dependencies to artifacts

I should have added:

of EclipseWtpmodulesWriter.

On 10/25/05, Brian Bonner <bk...@gmail.com> wrote:
> Looking for the same thing :)  II looked at the maven-eclipse-plugin
> source and it looks like it should pull these artifacts (check out the
> addDependency() method).
>
> Anyone have a suggestion on this?
> On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> > Hi,
> >
> >
> >
> > I'm trying out maven 2 and the eclipse plugin in combination with
Eclipse
> > WTP.
> >
> >
> >
> > Everything works fine, although I do not manage to generate the
'dependent
> > modules' section in the .wtpmodules file, like below:
> >
> >
> >
> >             <dependent-module deploy-path="/WEB-INF/lib"
> >
> >
> >
handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/struts-1.2.4.jar">
> >
> >                   <dependency-type>uses</dependency-type>
> >
> >             </dependent-module>
> >
> >
> >
> > The 'wb-resource' sections are generated successfully like below:
> >
> >
> >
> > <wb-resource deploy-path="/WEB-INF/classes"
> >
> >                   source-path="src/main/java" />
> >
> >
> >
> > The struts jar-file is appended to the .classpath file, so I presume
that I
> > have configured my dependencies correctly.
> >
> >
> >
> > I checked the source code of the eclipse plugin, but I can't figure out
what
> > I'm doing wrong.
> >
> >
> >
> > Can anyone offer some help?
> >
> > Thanks,
> >
> > Franck
> >
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Brian Bonner <bk...@gmail.com>.
I should have added:

of EclipseWtpmodulesWriter.

On 10/25/05, Brian Bonner <bk...@gmail.com> wrote:
> Looking for the same thing :)  II looked at the maven-eclipse-plugin
> source and it looks like it should pull these artifacts (check out the
> addDependency() method).
>
> Anyone have a suggestion on this?
> On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> > Hi,
> >
> >
> >
> > I'm trying out maven 2 and the eclipse plugin in combination with Eclipse
> > WTP.
> >
> >
> >
> > Everything works fine, although I do not manage to generate the 'dependent
> > modules' section in the .wtpmodules file, like below:
> >
> >
> >
> >             <dependent-module deploy-path="/WEB-INF/lib"
> >
> >
> > handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/struts-1.2.4.jar">
> >
> >                   <dependency-type>uses</dependency-type>
> >
> >             </dependent-module>
> >
> >
> >
> > The 'wb-resource' sections are generated successfully like below:
> >
> >
> >
> > <wb-resource deploy-path="/WEB-INF/classes"
> >
> >                   source-path="src/main/java" />
> >
> >
> >
> > The struts jar-file is appended to the .classpath file, so I presume that I
> > have configured my dependencies correctly.
> >
> >
> >
> > I checked the source code of the eclipse plugin, but I can't figure out what
> > I'm doing wrong.
> >
> >
> >
> > Can anyone offer some help?
> >
> > Thanks,
> >
> > Franck
> >
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: m2 eclipse plugin wtpmodules dependencies to artifacts

Posted by Brian Bonner <bk...@gmail.com>.
Looking for the same thing :)  II looked at the maven-eclipse-plugin
source and it looks like it should pull these artifacts (check out the
addDependency() method).

Anyone have a suggestion on this?
On 10/24/05, Franck de Bruijn <fr...@zonnet.nl> wrote:
> Hi,
>
>
>
> I'm trying out maven 2 and the eclipse plugin in combination with Eclipse
> WTP.
>
>
>
> Everything works fine, although I do not manage to generate the 'dependent
> modules' section in the .wtpmodules file, like below:
>
>
>
>             <dependent-module deploy-path="/WEB-INF/lib"
>
>
> handle="module:/classpath/var/M2_REPO/struts/struts/1.2.4/struts-1.2.4.jar">
>
>                   <dependency-type>uses</dependency-type>
>
>             </dependent-module>
>
>
>
> The 'wb-resource' sections are generated successfully like below:
>
>
>
> <wb-resource deploy-path="/WEB-INF/classes"
>
>                   source-path="src/main/java" />
>
>
>
> The struts jar-file is appended to the .classpath file, so I presume that I
> have configured my dependencies correctly.
>
>
>
> I checked the source code of the eclipse plugin, but I can't figure out what
> I'm doing wrong.
>
>
>
> Can anyone offer some help?
>
> Thanks,
>
> Franck
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org