Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Workaround for getting maven to work with wtp
Workaround for getting maven to work with wtp [message #3588] Mon, 03 December 2007 06:07 Go to next message
Eclipse UserFriend
Originally posted by: yeechut.gmail.com

As I see - the thing that is missing with deploying a maven project with
wtp is that the WEB-INF/lib is empty - i.e. wtp doesn't know how to
extract maven's dependencies.

I tested with the following workaround - and it seems to work:
- get maven to generate the war file.
- extract the WEB-INF/lib folder from the war file and copy to
src/main/webapp/WEB-INF/lib.
- repeat the above if proejct dependencies changes (which is not too
often).

I am new to maven. Can someone comment whether this approach works?

Many thanks
Yee
Re: Workaround for getting maven to work with wtp [message #3620 is a reply to message #3588] Mon, 03 December 2007 16:18 Go to previous messageGo to next message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 40
Registered: July 2009
Member
you could try war:inplace, still a workaround, but easier

Yee CN wrote:
> As I see - the thing that is missing with deploying a maven project with
> wtp is that the WEB-INF/lib is empty - i.e. wtp doesn't know how to
> extract maven's dependencies.
>
> I tested with the following workaround - and it seems to work:
> - get maven to generate the war file.
> - extract the WEB-INF/lib folder from the war file and copy to
> src/main/webapp/WEB-INF/lib.
> - repeat the above if proejct dependencies changes (which is not too
> often).
>
> I am new to maven. Can someone comment whether this approach works?
>
> Many thanks
> Yee
>
>
>
Re: Workaround for getting maven to work with wtp [message #3651 is a reply to message #3620] Tue, 04 December 2007 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yeechut.gmail.com

Thanks. That's a good enough workaround for now.

Keep up with the good work for Q4E. I find it very remarkable that there
is no proper integration of mavan and Eclipse yet. I wanted to get started
on maven very much - but took me one whole week of trying all sorts of
things to get to this point. I almost gave up on Eclipse.

Best regards,
Yee
Re: Workaround for getting maven to work with wtp [message #3684 is a reply to message #3588] Tue, 04 December 2007 07:31 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
WTP provides a "hook" for other plug-ins to contribute classpath entries
that need to be deployed.

This can be made manually (in the project preferences) or automatically
(the plug-in enables wtp deployment for its managed classpath entries).

q4e/iam is not very far away of being able to do this and m2eclipse has
some support too.
Re: Workaround for getting maven to work with wtp [message #564666 is a reply to message #3588] Mon, 03 December 2007 16:18 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 40
Registered: July 2009
Member
you could try war:inplace, still a workaround, but easier

Yee CN wrote:
> As I see - the thing that is missing with deploying a maven project with
> wtp is that the WEB-INF/lib is empty - i.e. wtp doesn't know how to
> extract maven's dependencies.
>
> I tested with the following workaround - and it seems to work:
> - get maven to generate the war file.
> - extract the WEB-INF/lib folder from the war file and copy to
> src/main/webapp/WEB-INF/lib.
> - repeat the above if proejct dependencies changes (which is not too
> often).
>
> I am new to maven. Can someone comment whether this approach works?
>
> Many thanks
> Yee
>
>
>
Re: Workaround for getting maven to work with wtp [message #564683 is a reply to message #3620] Tue, 04 December 2007 04:58 Go to previous message
CN Yee is currently offline CN YeeFriend
Messages: 3
Registered: January 2010
Junior Member
Thanks. That's a good enough workaround for now.

Keep up with the good work for Q4E. I find it very remarkable that there
is no proper integration of mavan and Eclipse yet. I wanted to get started
on maven very much - but took me one whole week of trying all sorts of
things to get to this point. I almost gave up on Eclipse.

Best regards,
Yee
Re: Workaround for getting maven to work with wtp [message #564704 is a reply to message #3588] Tue, 04 December 2007 07:31 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
WTP provides a "hook" for other plug-ins to contribute classpath entries
that need to be deployed.

This can be made manually (in the project preferences) or automatically
(the plug-in enables wtp deployment for its managed classpath entries).

q4e/iam is not very far away of being able to do this and m2eclipse has
some support too.
Previous Topic:Workaround for getting maven to work with wtp
Next Topic:Feedback
Goto Forum:
  


Current Time: Thu Mar 28 17:59:51 GMT 2024

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

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

Back to the top