You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by rmatthews <rm...@nakedobjects.org> on 2008/02/13 12:04:50 UTC

Eclipse project dependency no set up on WTP project

I am using Maven (2.0.7) to set up Eclipse with a multi-module project.  Two
of the seven modules are wars and using the following settings I am able to
import into them both into Eclipse as WTP projects:

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-eclipse-plugin</artifactId>
				<configuration>
					<wtpContextName>cart</wtpContextName>
					<wtpversion>1.5</wtpversion>
				</configuration>
			</plugin>

When I come to run them (Run As/On a Server) I have classpath problems, i.e.
class not found.  If I change the J2EE Module Dependencies (in the
properties for the project) by ticking the the projects that I have just
imported then all will be fine.

The question then is, how do I get the Eclipse plugin to select the peer
projects in the same way that it is selecting all the dependent jars.

Many thanks
Robert Matthews
-- 
View this message in context: http://www.nabble.com/Eclipse-project-dependency-no-set-up--on-WTP-project-tp15454841s177p15454841.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: Eclipse project dependency no set up on WTP project

Posted by Michael Heß <mh...@ordix.de>.
Sorry Robert,

I misunderstood your problem. Just ignore my posting.

bye, Michael

Michael Heß schrieb:
> Hi Robert,
>
> I had this problem as well, but I think this is more eclipse's fault.
> Right know as far as I know this currently is possible in two ways:
>
> 1. Use Milestone Build of Eclipse 3.4 / WTP 3.0 - is has the ability to do
> this via the expected masks.
>
> 2. (and probably more likely in your case) - in Eclipse 3.3 you should
> check for project warnings. It will say something like "this library won't
> be exported to dependent projects". If you right click this warning and
> choose "Quick Fix" you will get a (hidden?) dialog, which allows to
> declare the lib for export. Unfortunately right now this is the only way I
> know to set this up in 3.3
>
> Hope this helps.
>
> bye, Michael
>
>
> rmatthews schrieb:
>>
>> I am using Maven (2.0.7) to set up Eclipse with a multi-module project.
>> Two
>> of the seven modules are wars and using the following settings I am able
>> to
>> import into them both into Eclipse as WTP projects:
>>
>> 			<plugin>
>> 				<groupId>org.apache.maven.plugins</groupId>
>> 				<artifactId>maven-eclipse-plugin</artifactId>
>> 				<configuration>
>> 					<wtpContextName>cart</wtpContextName>
>> 					<wtpversion>1.5</wtpversion>
>> 				</configuration>
>> 			</plugin>
>>
>> When I come to run them (Run As/On a Server) I have classpath problems,
>> i.e.
>> class not found.  If I change the J2EE Module Dependencies (in the
>> properties for the project) by ticking the the projects that I have just
>> imported then all will be fine.
>>
>> The question then is, how do I get the Eclipse plugin to select the peer
>> projects in the same way that it is selecting all the dependent jars.
>>
>> Many thanks
>> Robert Matthews
>> --
>> View this message in context:
>> http://www.nabble.com/Eclipse-project-dependency-no-set-up--on-WTP-project-tp15454841s177p15454841.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>
>
> --
> Michael Heß
> Consultant
>
> ORDIX AG
> Westernmauer 12-16
> 33098 Paderborn
>
> http://www.ordix.de
> Tel.: 05251 / 10 63  0
> Fax : 05251 / 10 63 99
> Mob :  0163 /673 49 43
>
> ORDIX AG - Aktiengesellschaft für Softwareentwicklung, Schulung, Beratung
> und Systemintegration
> Vorsitzender des Aufsichtsrates: Prof. Dr. Hermann Johannes
> Vorstand: Wolfgang Kögler (Vorsitzender), Benedikt Georgi, Christoph
> Lafeld, Axel Röber
> Firmensitz: Westernmauer 12 - 16, 33098 Paderborn, Tel: 05251 / 1063-0,
> Fax: 0180 / 1 67 34 90
> Amtsgericht Paderborn, HRB 2941, Ust-IdNr.DE 126333767, Steuernummer:
> 339/5866/0142
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


-- 
Michael Heß
Consultant

ORDIX AG
Westernmauer 12-16
33098 Paderborn

http://www.ordix.de
Tel.: 05251 / 10 63  0
Fax : 05251 / 10 63 99
Mob :  0163 /673 49 43

ORDIX AG - Aktiengesellschaft für Softwareentwicklung, Schulung, Beratung
und Systemintegration
Vorsitzender des Aufsichtsrates: Prof. Dr. Hermann Johannes
Vorstand: Wolfgang Kögler (Vorsitzender), Benedikt Georgi, Christoph
Lafeld, Axel Röber
Firmensitz: Westernmauer 12 - 16, 33098 Paderborn, Tel: 05251 / 1063-0,
Fax: 0180 / 1 67 34 90
Amtsgericht Paderborn, HRB 2941, Ust-IdNr.DE 126333767, Steuernummer:
339/5866/0142



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


Re: Eclipse project dependency no set up on WTP project

Posted by Michael Heß <mh...@ordix.de>.
Hi Robert,

I had this problem as well, but I think this is more eclipse's fault.
Right know as far as I know this currently is possible in two ways:

1. Use Milestone Build of Eclipse 3.4 / WTP 3.0 - is has the ability to do
this via the expected masks.

2. (and probably more likely in your case) - in Eclipse 3.3 you should
check for project warnings. It will say something like "this library won't
be exported to dependent projects". If you right click this warning and
choose "Quick Fix" you will get a (hidden?) dialog, which allows to
declare the lib for export. Unfortunately right now this is the only way I
know to set this up in 3.3

Hope this helps.

bye, Michael


rmatthews schrieb:
>
> I am using Maven (2.0.7) to set up Eclipse with a multi-module project.
> Two
> of the seven modules are wars and using the following settings I am able
> to
> import into them both into Eclipse as WTP projects:
>
> 			<plugin>
> 				<groupId>org.apache.maven.plugins</groupId>
> 				<artifactId>maven-eclipse-plugin</artifactId>
> 				<configuration>
> 					<wtpContextName>cart</wtpContextName>
> 					<wtpversion>1.5</wtpversion>
> 				</configuration>
> 			</plugin>
>
> When I come to run them (Run As/On a Server) I have classpath problems,
> i.e.
> class not found.  If I change the J2EE Module Dependencies (in the
> properties for the project) by ticking the the projects that I have just
> imported then all will be fine.
>
> The question then is, how do I get the Eclipse plugin to select the peer
> projects in the same way that it is selecting all the dependent jars.
>
> Many thanks
> Robert Matthews
> --
> View this message in context:
> http://www.nabble.com/Eclipse-project-dependency-no-set-up--on-WTP-project-tp15454841s177p15454841.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>


-- 
Michael Heß
Consultant

ORDIX AG
Westernmauer 12-16
33098 Paderborn

http://www.ordix.de
Tel.: 05251 / 10 63  0
Fax : 05251 / 10 63 99
Mob :  0163 /673 49 43

ORDIX AG - Aktiengesellschaft für Softwareentwicklung, Schulung, Beratung
und Systemintegration
Vorsitzender des Aufsichtsrates: Prof. Dr. Hermann Johannes
Vorstand: Wolfgang Kögler (Vorsitzender), Benedikt Georgi, Christoph
Lafeld, Axel Röber
Firmensitz: Westernmauer 12 - 16, 33098 Paderborn, Tel: 05251 / 1063-0,
Fax: 0180 / 1 67 34 90
Amtsgericht Paderborn, HRB 2941, Ust-IdNr.DE 126333767, Steuernummer:
339/5866/0142



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


Re: Eclipse project dependency no set up on WTP project

Posted by Jan Torben Heuer <jt...@mail2003.dnsalias.org>.
rmatthews wrote:

> When I come to run them (Run As/On a Server) I have classpath problems,
> i.e.
> class not found.  If I change the J2EE Module Dependencies (in the
> properties for the project) by ticking the the projects that I have just
> imported then all will be fine.

check where your project is deployed to. (some hidden folder in the
workspace or project I guess). I had a problem when two artifacts had the
same name (common-SNAPSHOT-1.jar - stupid)


Jan


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


Re: Eclipse project dependency no set up on WTP project

Posted by Arnaud HERITIER <ah...@gmail.com>.
Do you launch the eclipse:eclipse goal from your master project ? It is
necessary to have in the reactor all your projects to create direct links
between them.

Arnaud

On Wed, Feb 13, 2008 at 12:04 PM, rmatthews <rm...@nakedobjects.org>
wrote:

>
> I am using Maven (2.0.7) to set up Eclipse with a multi-module project.
>  Two
> of the seven modules are wars and using the following settings I am able
> to
> import into them both into Eclipse as WTP projects:
>
>                        <plugin>
>                                <groupId>org.apache.maven.plugins</groupId>
>
>  <artifactId>maven-eclipse-plugin</artifactId>
>                                <configuration>
>
>  <wtpContextName>cart</wtpContextName>
>                                        <wtpversion>1.5</wtpversion>
>                                </configuration>
>                        </plugin>
>
> When I come to run them (Run As/On a Server) I have classpath problems,
> i.e.
> class not found.  If I change the J2EE Module Dependencies (in the
> properties for the project) by ticking the the projects that I have just
> imported then all will be fine.
>
> The question then is, how do I get the Eclipse plugin to select the peer
> projects in the same way that it is selecting all the dependent jars.
>
> Many thanks
> Robert Matthews
> --
> View this message in context:
> http://www.nabble.com/Eclipse-project-dependency-no-set-up--on-WTP-project-tp15454841s177p15454841.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
..........................................................
Arnaud HERITIER
..........................................................
OCTO Technology - aheritier AT octo DOT com
www.octo.com | blog.octo.com
..........................................................
ASF - aheritier AT apache DOT org
www.apache.org | maven.apache.org
...........................................................