Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib
add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib [message #543308] Tue, 29 June 2010 05:48 Go to next message
suchai  is currently offline suchai Friend
Messages: 3
Registered: June 2010
Junior Member
t try to add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib when deploy or export to war file.how to solve this problem?
Re: add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib [message #545373 is a reply to message #543308] Wed, 07 July 2010 14:45 Go to previous messageGo to next message
Eric Wetmiller is currently offline Eric WetmillerFriend
Messages: 2
Registered: July 2010
Junior Member
I am having the same problem. Anyone have a solution for this?
Re: add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib [message #545665 is a reply to message #543308] Thu, 08 July 2010 14:34 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
On 6/29/2010 1:48 AM, suchai wrote:
> t try to add maven dependency on "Deployment Assembly" but it cannot
> move to WEB-INF\lib when deploy or export to war file.how to solve this
> problem?

I'm not able to test this with Maven, but I do work with another product
that uses a classpath container. I couldn't find a way to accomplish
this successfully using the "Deployment Assembly" page. However, if the
maven classpath container is not marked for inclusion in WEB-INF/lib,
you should see a warning the the Problems or Markers view. It will read
something like "Classpath entry ??? will not be exported or published.
Runtime ClassNotFoundExceptions may result." You can right click on
that item and select "Quick Fix". You will get a choice of marking it
as a dependency (to include its jars in WEB-INF/lib) or excluding it as
a dependency (to eliminate the warning). If you choose to mark it as a
dependency, an attribute like the following will be added within the
<classpathentry> element for the classpath container in the ".classpath"
file:

<attribute name="org.eclipse.jst.component.dependency"
value="/WEB-INF/lib"/>

You can tell if it's present by going to the Java Build Path Libraries
tab and expanding the item for the classpath container. If the
attribute is present, you will see "Publish export dependency:
WEB-INF/lib" listed under the classpath container.

Cheers,
Larry
Re: add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib [message #545666 is a reply to message #545373] Thu, 08 July 2010 14:43 Go to previous messageGo to next message
Eric Wetmiller is currently offline Eric WetmillerFriend
Messages: 2
Registered: July 2010
Junior Member
I got this to work by upgrading to Eclipse 3.6 and Maven Integration m2e 0.10.2. It went very smoothly once these upgrades were complete.
Re: add maven dependency on "Deployment Assembly" but it cannot move to WEB-INF\lib [message #551049 is a reply to message #545666] Thu, 05 August 2010 02:41 Go to previous message
alexandrepalomo  is currently offline alexandrepalomo Friend
Messages: 3
Registered: August 2010
Junior Member
Eric Wetmiller wrote on Thu, 08 July 2010 10:43
I got this to work by upgrading to Eclipse 3.6 and Maven Integration m2e 0.10.2. It went very smoothly once these upgrades were complete.


Hi guys!

I'm also with some problems in Maven plugin:
When I right-click the project, and select Maven -> Update Dependencies, the console does not show anything, and any dependency is downloaded from the repository.

But, I can run the maven compile goal, and it goes perfectly. I can even create a war file, but it goes always without any dependency.

Someome here knows what can I do?

This project is using GWT 1.7.1
Eclipse version: 3.6
Maven: i got it from the eclipse marketplace
Previous Topic:Could not publish server configuration: null
Next Topic:WTP SDK 3.2.x update site availability?
Goto Forum:
  


Current Time: Fri Apr 19 20:56:28 GMT 2024

Powered by FUDForum. Page generated in 0.02837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top