Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358902 - Different behaviour CLI and m2e in variable resolution in <version> element.
Summary: Different behaviour CLI and m2e in variable resolution in <version> element.
Status: CLOSED WONTFIX
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-26 10:26 EDT by Olivier NOUGUIER CLA
Modified: 2021-04-19 13:27 EDT (History)
1 user (show)

See Also:


Attachments
Project that illustrate the "bug" (3.32 KB, application/x-gzip)
2011-09-26 10:29 EDT, Olivier NOUGUIER CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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/