Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 358902

Summary: Different behaviour CLI and m2e in variable resolution in <version> element.
Product: z_Archived Reporter: Olivier NOUGUIER <olivier.nouguier>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Project that illustrate the "bug" none

Description Olivier NOUGUIER CLA 2011-09-26 10:26:33 EDT
I have to use a project built from command line with m2e.

The provided project (see attachment) works with CLI, but shows error in pom editor.

1) There are warning during import.

2) Then 
Description	Resource	Path	Location	Type
Failure to transfer bugzilla-xxxx:plugins:pom:${myversion} from http://nexusHost/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updates are forced. Original error: Could not transfer artifact bugzilla-xxxx:plugins:pom:${myversion} from/to snapshots (http://mpl-sideln.france.agilent.com:6581/nexus/content/repositories/snapshots/): IllegalArgumentException	pom.xml	/bugzilla-xxxx-module1	line 1	Maven pom Loading Problem

That show that ${project.version} is resolved as ${myversion} ans used as is, whereas it should be replaced by 0.0.1-SNAPSHOT.


When removing the variable in the bugzilla-xxxx-plugins and bugzilla-xxxx-plugins-demo <version> element see comment fixes "sometime" after cleaning / updating project conf / ... / etc
Comment 1 Olivier NOUGUIER CLA 2011-09-26 10:29:24 EDT
Created attachment 204012 [details]
Project that illustrate the "bug"
Comment 2 Igor Fedorenko CLA 2011-09-26 11:16:19 EDT
Although this does look like discrepancy between m2e and maven cli, there are currently no plans to reconcile this unless somebody provides a quality patch. 

FYI, I am in favour of the related maven core issue http://jira.codehaus.org/browse/MNG-4297 ;-)
Comment 3 Igor Fedorenko CLA 2013-09-29 09:20:05 EDT
closing old/stale bugreports
Comment 4 Denis Roy CLA 2021-04-19 13:27:13 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/