|
[
Permalink
| « Hide
]
Eugene Kuleshov added a comment - 20/Jan/06 02:36 AM
Jason, this is happening with 2.0.2 embedder. The strange thing that execute install from the embedder is working fine, but readProjectWithDependencies() is pulling off version "2.4.1" out of nowhere.
Same problem with embedder 2.0.3
With version 0.0.7 (e.g. embedder 2.0.4) there seems to be used correct versions in provided sample project.
Veified against trunk version. Probably been working in earlier versions too.
quick explanation:
i found the reason for the "${pom.version} BTW and in the future everyone should use ${pom.version}. Using ${version} is dangerous, because it uses a side effect of the RegexBasedModelInterpolator implementation. again the quick explanation:
i found the reason for the "${pom.version} is 2.4.1" problem. there is a system property of name "version" set to "2.4.1" in your eclipse jvm (see [Eclipse]->Help->About Eclipse Platform->Configuration Details). Patch with changed RegexBasedModelInterpolator impl.
Basing on Daniel's comments the issue should be reopened.
Folks, please report it to the Maven Embedder component. This issue should be fixed in there and not worked around in the plugin.
This should be left as an open issue until it is fixed in Maven Embedder (
I'm tempted to 'close - won't fix'.
${version} is evaluated to either a system prop or a -Dversion=..., so this is expected. However, ${pom.version} should be evaluated to the pom's <version> tag. But that's a different issue alltogether. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||