Using maven generated sources in Eclipse

I have an application consisting of several maven projects. I am working on this in Eclipse. Some of the projects use Maven plugins to create stub classes for web services, etc.

When I import projects into a new workspace, I have to issue the maven command to generate sources , followed by attaching the source folders to create a path for each project. The application in which I work has more than 5-6 projects requiring these steps.

Is there a plugin that I can install in Eclipse to get the generated sources, or even the one that generates the sources and updates the build path to save the steps manually?

+4
source share
2 answers

I am sure that the m2e plugin will take care of this automatically. m2e is included in the Java and Java EE primary packages of the latest versions of Eclipse, so you probably already have it. If you right-click on your project and the Maven submenu , then the project is already managed by m2e. Otherwise, right-click and select Configure > Convert to Maven Project .

0
source

Well, it depends on the exact maven plugin you use.


, m2e , . (1), m2e.


build-helper-maven-plugin M2E maven eclipse

0

All Articles