Maven2 and WTP [message #224891] |
Wed, 10 December 2008 08:24  |
Eclipse User |
|
|
|
I can't seem to figure out how to properly include another project to my
main project and have the other project's classes published to Tomcat
(version 6.0.18)
I have:
Q4E .8
Eclipse Ganymede SP1
Tomcat 6.0.18
To create a maven wtp project (main), I use the Maven 2 Project Creation
Wizard and the maven-archetype-webapp
In my pom.xml (main project) I have a dependency on a toolkit project. If
I go to the Java Build Path/Libraries, the project is under the Maven
Classpath Container.
However, when I publish to a Tomcat server (WTP), it pulls the dependent
jars from toolkit into the deploy path, but doesn't copy the classes from
toolkit project to the deploy path.
If I look at the main project's
settings/org.eclipse.wst.common.component, I can see why (there's no
reference to the src folders of toolkit:
<dependent-module deploy-path="/WEB-INF/lib"
handle="module:/resource/WSToolkit/WSToolkit">
<dependency-type>uses</dependency-type>
</dependent-module>
What I'm stuck on is how to tell maven2/wtp/tomcat? to deploy the toolkit
classes to Tomcat.
Any ideas/thoughts would be greatly appreciated
|
|
|
|
|
Re: Maven2 and WTP [message #224955 is a reply to message #224914] |
Thu, 11 December 2008 09:07  |
Eclipse User |
|
|
|
Albert Liptay wrote:
> Ok, I confirmed that the WSToolkit.jar is not present in the published
> WEB-INF\lib folder (mind you if it were I might not be having this
> problem :)
>
> So, I guess my next question is which component/piece of WTP or maven2
> is supposed to create this WSToolkit.jar? BTW, manually copying the
> toolkit jar after a mvn install to the WEB-INF\lib folder works, so my
> only hurdle is to get the WSToolkit.jar created and published.
>
> Any further ideas?
> Thanks,
> Albert.
>
Is there a ".settings/org.eclipse.wst.common.component" in the WSToolkit
project? Maybe the "disconnect" is on that end. You could also try
creating a standard Java project and add it as a dependency of the main
project. If that creates a jar successfully, we'll have to figure out
what it is about the WSToolkit project that's preventing its jar from
being created.
Cheers,
Larry
|
|
|
Powered by
FUDForum. Page generated in 0.23587 seconds