Wednesday, January 7, 2015

Eclipse Build, M2Eclipse and Maven Build



Maven exists for quite many years already, I think close to 8 years?

But I only started dealing with Maven few months back.

I have this Maven project in my STS(Spring Tool Suite). The project is using Maven Resource Filtering and also the project also needs to generate java web service proxy classes based on a wsdl.

So what happened is somehow the Eclipse Build will not copy the file under resources folder to the target classes folder. In the end I have to specifically run Maven Build (with goals: clean compile package) to make that works.

If I only ran Maven Clean, it will not help. Instead it will screw up the project by deleting many things from the target folder and no auto geneate.

If you know the way to have Eclipse default Build to understand Maven build process. Please let me know. Thank you. 




No comments:

Post a Comment