M2eclipse workspace resolution

I am using m2eclipse to manage maven projects in eclipse. It seems that in the previous release that I used (0.9.8), workspace resolution didn't work at all, but now it also doesn't work as I expected. Namely, when the "allow dependency on workspace" option for a project is not checked, the project turns red and cannot be created. The message says: the xxx xy-SNAPSHOT artifact could not be found inside the local repository (or something like that). The trouble is that m2eclipse puts workspace project information in my local repo. Is there any way to change this behavior?

PS A workaround for this is to close the xxx project, and then m2eclipse resolved the dependency to any version that I previously had in the local repository (i.e. versions without a snapshot).

PS2 screenshots showing what I have in the local repo:

  • Maven repositories in eclipse

alt text http://img96.imageshack.us/img96/1498/mvnrepos.png

  • file system versions of the artifact in question

alt text http://img155.imageshack.us/img155/2999/versions.png

  • what is in the snapshot directory:

alt text http://img72.imageshack.us/img72/120/snapshotq.png

+3
source share

Source: https://habr.com/ru/post/1741737/


All Articles