0

I have a relative simple JAXRS Web Project with a pom.xml. I have done:

mvn eclipse:eclipse

and then import the project to eclipse, and setup Project Facets and Targeted Runtime manually. So far everything works fine :)

Now, I have added an extra dependency to the pom.xml and run:

mvn dependency:tree

What should I do to get that dependency reflected in eclipse? Ideally I would like to do it in a way I don't have to setup facets and runtime stuff again.

nacho4d
  • 43,720
  • 45
  • 157
  • 240

1 Answers1

2

mvn eclipse:eclipse is rather old.

The best way to work with Maven in Eclipse is the m2e Maven Integration. This is part of Eclipse for Java EE Developers, or JBoss Tools, or you can install it individually via Help | Install new software from the default Eclipse update site.

Harald Wellmann
  • 12,615
  • 4
  • 41
  • 63
  • I see. I followed a tutorial that was too old. I have imported it as a Maven project and it works better :) Thanks! – nacho4d Mar 23 '16 at 16:40