java - How can I make Maven set up (and keep up to date) the build path for my Eclipse project? -


I define dependencies to compile, test and run programs in pom.xml files. But Eclipse still has different configurable build paths, so whenever I change, I need to update the other manually. I guess it's avoidable? how?

Use both (formerly) or both (among other features) whenever a Clean is produced and clientpath presents the dependence of the eclipse as a container, then Maven provides a means to re-calculate dependencies. See it for details.

I personally would go to m2eclipse at this time, especially if you do development with AspectJ is an optional plugin for M2eclipse that exposes the aspect library of Eclipse with the aspectj-maven-plugin Which avoids the whole range of integration.

To enable m2eclipse on an existing project, right-click it on Package Explorer , then Maven -> Dependency Management Enable , this will add the Maven Builder to the .project file, and in the Classpath Consonor .classpath file.

There is also an eclipse: Eclipse target, but I think it is worth more than trouble because it creates very basic .project and .classpath files (although it is useful for initial project setup) So, if you have any complexity for your configuration, then you have to re-apply them every time it was an old version and it would be better to handle which side issues Is obtained.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -