Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » WTP 3.0 and Maven2 for J2EE/JEE?
WTP 3.0 and Maven2 for J2EE/JEE? [message #219732] Thu, 28 August 2008 16:35 Go to next message
Rich is currently offline RichFriend
Messages: 1
Registered: July 2009
Junior Member
I'm trying to find a basic example of how to use the sweet features in WTP
3.0 but also build our J2EE/JEE project with Maven.

I have a set of eclipse projects in a flat structure using m2eclipse
working just fine.
i.e.
foo
foo-ear
foo-ejb
foo-war

However the problem is that these Eclipse projects are generic
m2eclipse/Java projects. They don't have the capabilities of the WTP EAR,
WAR, and EJB projects (no context menu etc.).

Is there a way to add WTP capabilities to these projects or convert them
to WTP projects while still having the maven dependency management work?

I've searched all over and see various people talking about it but have
yet to find a straightforward example of combining WTP 3.0 with Maven2 to
develop a standard J2EE/JEE application. I'm wondering if I'm approaching
it incorrectly.

If you have any suggestions / references they would be greatly appreciated.
Re: WTP 3.0 and Maven2 for J2EE/JEE? [message #219765 is a reply to message #219732] Fri, 29 August 2008 04:43 Go to previous messageGo to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 504
Registered: July 2009
Senior Member
Rich,

The m2eclipse project [1] is in a process of moving to Eclipse [2] and
you can address your question to eclipse.technology.m2e group.
There is already support for WAR projects in m2eclipse [3] and we are
working on extending WTP integration to handle EJB and EAR projects.
I posted some questions to everyone interested in such support to
eclipse.technology.m2e group and if you could answer those or have test
projects that you can share with us, it would be a great help.

regards,
Eugene

[1] http://m2eclipse.codehaus.org/
[2] http://eclipse.org/m2e/
[3] http://docs.codehaus.org/display/M2ECLIPSE/WTP+mini+howto


Rich wrote:
> I'm trying to find a basic example of how to use the sweet features in
> WTP 3.0 but also build our J2EE/JEE project with Maven.
> I have a set of eclipse projects in a flat structure using m2eclipse
> working just fine. i.e.
> foo
> foo-ear
> foo-ejb
> foo-war
>
> However the problem is that these Eclipse projects are generic
> m2eclipse/Java projects. They don't have the capabilities of the WTP
> EAR, WAR, and EJB projects (no context menu etc.).
>
> Is there a way to add WTP capabilities to these projects or convert
> them to WTP projects while still having the maven dependency
> management work?
> I've searched all over and see various people talking about it but
> have yet to find a straightforward example of combining WTP 3.0 with
> Maven2 to develop a standard J2EE/JEE application. I'm wondering if
> I'm approaching it incorrectly.
>
> If you have any suggestions / references they would be greatly
> appreciated.
>
>
>
Re: WTP 3.0 and Maven2 for J2EE/JEE? [message #219831 is a reply to message #219732] Sat, 30 August 2008 00:51 Go to previous messageGo to next message
Dobes Vandermeer is currently offline Dobes VandermeerFriend
Messages: 26
Registered: July 2009
Junior Member
I think it is possible to create a project and then add the maven nature
to it using the Maven context menu on the project.

You can also (hackishly) create a project with the natures in it that you
want and then merge files from that project into your .settings, .project,
and .classpath for the projects you want to add those natures to, because
eclipse uses text files for its project metadata. You may need to restart
eclipse afterwards.


On Thu, 28 Aug 2008 09:35:31 -0700, Rich <rt@relativity.org> wrote:

> I'm trying to find a basic example of how to use the sweet features in
> WTP 3.0 but also build our J2EE/JEE project with Maven. I have a set of
> eclipse projects in a flat structure using m2eclipse working just fine.
> i.e.
> foo
> foo-ear
> foo-ejb
> foo-war
>
> However the problem is that these Eclipse projects are generic
> m2eclipse/Java projects. They don't have the capabilities of the WTP
> EAR, WAR, and EJB projects (no context menu etc.).
>
> Is there a way to add WTP capabilities to these projects or convert them
> to WTP projects while still having the maven dependency management work?
> I've searched all over and see various people talking about it but have
> yet to find a straightforward example of combining WTP 3.0 with Maven2
> to develop a standard J2EE/JEE application. I'm wondering if I'm
> approaching it incorrectly.
>
> If you have any suggestions / references they would be greatly
> appreciated.
>
>



--
--

Dobes Vandermeer
Technical Director, Habitsoft Inc.
http://www.habitsoft.com
Re: WTP 3.0 and Maven2 for J2EE/JEE? [message #219906 is a reply to message #219732] Tue, 02 September 2008 09:01 Go to previous message
Kaloyan Raev is currently offline Kaloyan RaevFriend
Messages: 201
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
See also bug https://bugs.eclipse.org/154251
There is a lot discussed there already.

"Rich " <rt@relativity.org> wrote in message
news:8be5b927a7bf8c9e49e74f28df0034ba$1@www.eclipse.org...
> I'm trying to find a basic example of how to use the sweet features in WTP
> 3.0 but also build our J2EE/JEE project with Maven.
> I have a set of eclipse projects in a flat structure using m2eclipse
> working just fine. i.e.
> foo
> foo-ear
> foo-ejb
> foo-war
>
> However the problem is that these Eclipse projects are generic
> m2eclipse/Java projects. They don't have the capabilities of the WTP EAR,
> WAR, and EJB projects (no context menu etc.).
>
> Is there a way to add WTP capabilities to these projects or convert them
> to WTP projects while still having the maven dependency management work?
> I've searched all over and see various people talking about it but have
> yet to find a straightforward example of combining WTP 3.0 with Maven2 to
> develop a standard J2EE/JEE application. I'm wondering if I'm approaching
> it incorrectly.
>
> If you have any suggestions / references they would be greatly
> appreciated.
>
>
>
Previous Topic:Javascript Debugging
Next Topic:"Convert for loops to enhanced" in JavaScript
Goto Forum:
  


Current Time: Fri Mar 29 00:17:30 GMT 2024

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

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

Back to the top