| Eclipse user library variables and jar export to WEB-INF/lib [message #643307] |
Mon, 06 December 2010 08:19  |
Scott Messages: 5 Registered: December 2010 |
Junior Member |
|
|
I have a workspace with nearly fifty web projects in it. In an effort to streamline classpath entries, I have created a user library variable and added all required jars to it. Next, I removed the individual classpath (build) entries from each of the fifty projects and replaced them with my single user library variable. Everything was going great until I deployed one of my projects from Eclipse to Tomcat and discovered the list of jars on the user library variable were not being copied to the WEB-INF/lib folder.
Does anyone know of a way to specify that these libraries get copied to the deployment source? I experimented with the Java EE Module Dependency tab, but the jars were not copied even after selecting the name of the user library set.
Peace, Scott
[Updated on: Mon, 06 December 2010 08:53] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
| Re: Eclipse user library variables and jar export to WEB-INF/lib [message #643990 is a reply to message #643861] |
Wed, 08 December 2010 18:28  |
Scott Messages: 5 Registered: December 2010 |
Junior Member |
|
|
Wow! Either adding the following entry to .classpath or allowing quick fix to do it for you is not enough. you *must* close and restart Eclipse and then run on server to get the jars to actually get deployed to WEB-INF. I tried every combination of Publish, Clean... you name it and the only way the jars were ever deployed to the next modified project's .classpath was to close and restart Eclipse.
Sounds like something is not being reconsidered once the files have been read in.
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/struts-2.2.1-jars">
<attributes>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="build/classes"/>
Thanks for all your help Larry
Peace,
Scott
|
|
|
Powered by
FUDForum. Page generated in 0.02679 seconds