m2eclipse and WTP and adding local project source

Posted by user228369 on Stack Overflow See other posts from Stack Overflow or by user228369
Published on 2010-04-01T00:09:29Z Indexed on 2010/04/01 0:13 UTC
Read the original article Hit count: 672

Filed under:
|
|
|

Hi, I have a spring mvc project in eclipse, and its setup to use maven. I can resolve all my external dependencies, but now I want to include another local project in my workspace. Normally, I would do this through the java build path, and add a project reference. But if I do that manually, m2eclipse just removes those references from my classpath file.

I'm assuming this is because maven wants to handle all dependencies. So I enable dependency management on the local project (the source files i want to include), and now when I add dependencies, this project shows up, and it adds it as a jar type (which is correct). I also ran maven-package to create a snapshot of the source project. But the jar is never added in the maven library list, and the project doesn't build because it can't find the classes.

What am I doing wrong? Thanks for the help!

© Stack Overflow or respective owner

Related posts about m2eclipse

Related posts about eclipse