This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes IDEs, Version Control and other tools and the fly likes Import Netbeans Maven Enterprise Project in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Import Netbeans Maven Enterprise Project in Eclipse" Watch "Import Netbeans Maven Enterprise Project in Eclipse" New topic
Author

Import Netbeans Maven Enterprise Project in Eclipse

Sven Moschel
Greenhorn

Joined: Oct 13, 2010
Posts: 10
Hello,

we have a Netbeans Maven Project that I want to use in Eclipse. The project contains 2 Web Projects and a EJB Project. When I deploy that application to glassfish I see a single Application in the glassfish admin view. I tried the following steps to import that project to Eclipse:

1. Convert each project to a eclipse project with "mvn eclipse:eclipse"
2. Import those projects as Maven Projects (m2eclipse) to Eclipse
3. I added the "Dynamic Web Project" and JSF Facet to the both Web Projects(Each of the web project has a reference to the EJB project)
4. I added the "EJB Project" Facet to the EJB Project
5. I added a Glassfish Server to the Server tab

With these settings I can add the 3 projects to the Glassfish server. But here comes the problem. When I try to publish/start the server each application will be deployed to glassfish as a single application. Also the publish process failed because some classes cannot be found. I think that occurs because the three projects Eclipse tries to deploy each project for itself and not as one application.

Could you please help me? I doesn´t know how I can get it work...
 
wood burning stoves
 
subject: Import Netbeans Maven Enterprise Project in Eclipse