Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Maven jars but publish locally but are copied into exported war file
Maven jars but publish locally but are copied into exported war file [message #224978] Fri, 12 December 2008 08:14 Go to previous message
Ashley Collins is currently offline Ashley Collins
Messages: 13
Registered: July 2009
Junior Member
Hello,

I'm having a problem with the latest WTP in Ganymede and an existing
project originally set up with a previous version.

The project refers to jars in a local Maven repository via extensions of a
"MAVEN_REPO" classpath variable as follows:

<classpathentry exported="true" kind="var"
path="MAVEN_REPO/spring/jars/spring-1.2.6.jar">
<attributes>
<attribute name="org.eclipse.jst.component.dependency"
value="/WEB-INF/lib"/>
</attributes>
</classpathentry>

MAVEN_REPO is set to C:/java/maven-repository in Preferences -> Java ->
Build Path -> Classpath Variables.

I have ticked all the checkboxes in the project's "Java EE Module
Dependencies" tab but the jars are not copied to
" workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp 0\wtpwebapps\pa-web\WEB-INF\lib ".

It seems like configuration for what get published locally has changed
between WTP versions from ${project}\.settings\.component to
${project}\.classpath (as shown above). I have removed the old entries
from the .component file. Are there any other old artifacts lurking around
that might mess this up?

I found this wiki page, but it seems like overkill to have to define a
"User Library" just to get the jars deployed locally given that they are
already on the project's build path:

http://wiki.eclipse.org/ClasspathEntriesPublishExportSupport

If I "Export..." as "web/WAR File" the jars are included in the war file
in the right place.

Has anyone had the same problem? Any ideas on how to resolve the problem?

My set up is:

Eclipse 3.4.1 (and the WTP that comes with it)
Maven 1.0.2
Tomcat 6.0.18
JDK 1.6.0_10

Thanks.
Ashley
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Tomcat 5.5 startup detection
Next Topic:Jars for running dynamic web app
Goto Forum:
  


Current Time: Fri May 24 07:44:28 EDT 2013

Powered by FUDForum. Page generated in 0.12166 seconds