Maven workspace resolution horked
Posted
by user237815
on Stack Overflow
See other posts from Stack Overflow
or by user237815
Published on 2010-05-27T02:04:28Z
Indexed on
2010/05/27
2:11 UTC
Read the original article
Hit count: 225
I'm using m2eclipse to manage maven projects. Somehow I did a bad thing, and now the system is behaving as if workspace resolution is disabled.
I have several projects that depend on a main project. This project has a version of 4.0-SNAPSHOT, and all the dependent projects reference it in the dependencies section of their poms. Everything was working fine until I created an entirely new project and mistakenly copied the pom from the main project into the new project. Suddenly, all of the dependent projects got the error:
"The container 'Maven Dependencies" references non existing library C:\users\myusername.m2\com\mydomain\myproject\4.0-SNAPSHOT\myproject-4.0-SNAPSHOT.jar
I zapped the offending new project, but the error remains for all the dependent projects.
I've made no changes (to my knowledge) in the main project or any of the dependent projects, so I'm guessing something got changed in the Eclipse environment. Does m2eclipse or Maven itself maintain settings anywhere that I can blow away?
© Stack Overflow or respective owner