Configuring Eclipse to support WTP for Maven web projects

You want your Eclipse project to integrate with Maven for build and dependency management but you also want to utilize WTP (Web Tools Platform) support for web app development. It seems like it should work once you install both plugins, but it doesn’t as of the Indigo (3.7.1) release of Eclipse. You can create a Maven project, or you can create a Web Application (WTP) project, but they don’t play together nicely at all. Here’s a simple way to get all the features of both:

  1. If you are using the EE Eclipse release you already have WTP installed. If not you will have to install it.
  2. Install m2e – Maven Integration for Eclipse from Maven update site http://download.eclipse.org/technology/m2e/releases
  3. Install Maven Integration for WTP from Maven update site http://download.jboss.org/jbosstools/updates/m2eclipse-wtp
  4. If you already have Maven web projects in your workspace right-click -> Maven -> Update Project Confguration… on one, select all the Maven web projects from the list, and click OK

That’s all there is to it. You have WTP support for all the Maven web projects open in your workspace and you will have WTP support for all new Maven web projects you create or import.

About the Author

Object Partners profile.
Leave a Reply

Your email address will not be published.

Related Blog Posts
Natively Compiled Java on Google App Engine
Google App Engine is a platform-as-a-service product that is marketed as a way to get your applications into the cloud without necessarily knowing all of the infrastructure bits and pieces to do so. Google App […]
Building Better Data Visualization Experiences: Part 2 of 2
If you don't have a Ph.D. in data science, the raw data might be difficult to comprehend. This is where data visualization comes in.
Unleashing Feature Flags onto Kafka Consumers
Feature flags are a tool to strategically enable or disable functionality at runtime. They are often used to drive different user experiences but can also be useful in real-time data systems. In this post, we’ll […]
A security model for developers
Software security is more important than ever, but developing secure applications is more confusing than ever. TLS, mTLS, RBAC, SAML, OAUTH, OWASP, GDPR, SASL, RSA, JWT, cookie, attack vector, DDoS, firewall, VPN, security groups, exploit, […]