tags:

views:

481

answers:

1

I have a web app built with Maven. Most of the time, I built the application using Intellij IDEA, but now I want to import the application in Eclipse to see something in this IDE.

After mvn eclipse:eclipse, I add in Eclipse the app, but when I try to add the app to the server (tomcat), I receive:

There are no resources that can be added or removed from the server

Solutions?

+1  A: 

You need the project to have a Eclipse Dynamic Web Module facet. You can try doing this via the project properties dialog and looking at project facets, then clicking the appropriate check box. This may not be avaliable however, so you may need to do the next thing.

Create a backup of your project and follow the directions at greatwebguy.com. This'll allow you to modify the project facets via your eclipse .project file.

Keep in mind, once you add those facets, you cannot change them back via Eclipse. Definitely make sure you have a backup before starting.

ClutchDude
Addendum:If you already have the project facets options avaliable but can't add the web module, go down to the check box area on the Facets choice and right click. A dialog menu with the phrase "unlock" will come up, allowing you to add the Dynamic Web Project Facet to the project.
ClutchDude