Skip to main content



      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 12:35 Go to next message
Eclipse UserFriend
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 00:43 Go to previous messageGo to next message
Eclipse UserFriend
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] Fri, 29 August 2008 20:51 Go to previous messageGo to next message
Eclipse UserFriend
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 05:01 Go to previous message
Eclipse UserFriend
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: Sun Jul 06 19:44:56 EDT 2025

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

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

Back to the top