| Summary: | Different behaviour CLI and m2e in variable resolution in <version> element. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Olivier NOUGUIER <olivier.nouguier> | ||||
| Component: | m2e | Assignee: | 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: |
|
||||||
Created attachment 204012 [details]
Project that illustrate the "bug"
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 ;-) closing old/stale bugreports |
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