Henri,
Can you please provide more details? Specifically, how do you add
entries to "Tomcat classpath (User Entries)" in WTP? Also, what m2e and
wtp versions are you using? And can you please confirm that you have m2e
"WTP configurator" optional feature installed? Thank you in advance.
Henri Gomez wrote:
Well it works in fine but :
- you should have defined all the artifact in the maven project before
adding it to the Tomcat classpath (User Entries)
- this project should export the maven deps
- and you should select add exported entries for these project
Sorry for the noise
2008/7/21 Henri Gomez <[EMAIL PROTECTED]>:
I need to have some projets/artifact in the User Entries classpath of
my Tomcat server.
I defined a simple project, with the required artifacts (ie my.corp/my-apis) :
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my.corp</groupId>
<artifactId>my.corp.runtime</artifactId>
<packaging>pom</packaging>
<name>my.corp.runtime</name>
<version>1.0.0-SNAPSHOT</version>
<description>Runtime stuff</description>
<dependencies>
<dependency>
<groupId>my.corp</groupId>
<artifactId>my-apis</artifactId>
<version>[1.1.0,1.1.1)</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
In WTP, classpath, Use Entries, I add this project.
At runtime, I see added in the Tomcat classpath only target/classes of
this project, but not the my.corp/my-apis jar.
I tried with a compile scope, a runtime scope, project packaging as
pom or jar and also Exporting the Maven Dependencies, no more luck.
Any way to do this, since it's a common usage when you webapps depends
on some components required to be in the Tomcat classpath.
Thanks
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email