[ https://jira.codehaus.org/browse/MECLIPSE-597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Scholte closed MECLIPSE-597. ----------------------------------- Resolution: Fixed Fix Version/s: 2.9 Assignee: Robert Scholte Fixed in [rev. 1152339|http://svn.apache.org/viewvc?rev=1152339&view=rev] Thanks! > Workspace dependencies not resolved for SNAPSHOT dependencies (artifact has a > different version from that in dependency management) > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: MECLIPSE-597 > URL: https://jira.codehaus.org/browse/MECLIPSE-597 > Project: Maven 2.x Eclipse Plugin > Issue Type: Bug > Components: Core : Dependencies resolution and build path > (.classpath) > Affects Versions: 2.7 > Environment: Nexus 1.3.6, Eclipse 3.4, Windows XP > Reporter: Michal Galet > Assignee: Robert Scholte > Priority: Critical > Fix For: 2.9 > > Attachments: maven-eclipse-plugin-2.7.patch > > > When generating eclipse project with "mvn eclipse:eclipse > -Declipse.workspace=d:/eclipse-ws" the SNAPSHOT dependencies are not resolved > from workspace correctly. See console output below. This is probably caused > by the way how Nexus handles the SNAPSHOTs. The artifact is resolved by > ArtifactResolver and the version is changed from 1.1.0-SNAPSHOT to > 1.1.0-20090819.145009-4. > The comparison should be performed against {{artifact.getBaseVersion()}} > instead of {{artifact.getVersion()}}. A simple fix is attached as a patch. > Console output: > [INFO] Artifact com.test:sample:jar:4.0.0.B02-SNAPSHOT already available a > s a workspace project, but with different version. Expected: > 4.0.0.B02-20090819.145009-4, found > : 4.0.0.B02-SNAPSHOT -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira