Integrate maven jsp / webapp project with eclipse

What is the current approach for integrating maven webapp project with eclipse to get context sensitive support for java code in jsp files?

In eclipse-luna, I can use maven master with maven-archetype-webapp to create a project and it works fine.

But if I then check the maven project with pom.xml (but no .settings, .project files) in source control, then someone else checks this and imports it as Maven => "existing maven project" in eclipse, it doesn't recognize java fragments <% ...%> in jsp files as java code and just treats it as plain text.

Instead, I found:

maven eclipse:eclipse -Dwtpversion=2.0

      

and import as "Existing eclipse project" which seems to work, but I am under the impression that this is a rather outdated approach today (only supports wtp up to 2.0).

So what's the correct way to work properly in both maven and eclipse?

+3
jsp m2eclipse eclipse-wtp m2e


source to share


No one has answered this question yet

Check out similar questions:

1571
How to avoid Java code in JSP files?
405
How to fix the "Updating Maven Project" error. Unsupported IClasspathEntry class = 4?
102
Eclipse WTP vs sydeo, "serves modules without publishing"
64
Eclipse maven-archetype-webapp issue
24
How do I add pom.xml to an existing Eclipse project?
nineteen
Maven does not create folder "/ target / m2e-wtp / web-resources"
five
Import existing Maven into Eclipse as WTP
4
How to get rid of "javax.servlet.jsp.PageContext cannot be resolved to type" on jsp page with Eclipse?
3
Which version of Eclipse wtp should I use for maven?
0
How to import java file to jsp in maven webapp



All Articles
Loading...
X
Show
Funny
Dev
Pics