[
http://jira.codehaus.org/browse/MECLIPSE-371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_120524
]
Back Buffer commented on MECLIPSE-371:
--------------------------------------
additional comments:
It's not a problem for m2eclipse plugin to find ${framework.version} for second
project. It actually finds that jar.
However, the issue is when it reads the dep's pom from local repository, it
failed to locate the dep's parent pom due to a ${framework.version} property
there.
> property value not translated in local repository pom
> -----------------------------------------------------
>
> Key: MECLIPSE-371
> URL: http://jira.codehaus.org/browse/MECLIPSE-371
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Dependencies resolution and build path
> Reporter: Back Buffer
>
> Project A's pom:
> {color:blue}
> ...
> <parent>
> <groupId>com.domain.core</groupId>
> <artifactId>framework</artifactId>
> <version>${framework.version}</version>
> </parent>
>
> <groupId>com.domain.core</groupId>
> <artifactId>framework-dal</artifactId>
> <packaging>jar</packaging>
> ...
> {color}
> The property: ${framework.version} is defined in local "settings.xml".
> Everything's fine. It compiles and installs to local repo smoothly.
> Now I have second project, B, with pom like this:
> {color:blue}
> ...
> <dependency>
> <groupId>com.domain.core</groupId>
> <artifactId>framework-dal</artifactId>
> <version>${framework.version}</version>
> </dependency>
> ...
> {color}
> It compiles well from command line (normal maven install). However, it fails
> when run with M2Eclipse plugin. The output message:
> {color:blue}
> [WARN] Cannot find parent POM: com.domain.core::${framework.version} for
> child: com.domain.core:framework-dal:jar:[inherited]. Using stub model
> instead.
> ...
> [ERROR] BUILD FAILURE com.domain.core:calculation-core:jar:4.1 (
> task-segment: [install] )
> {color}
> ========
> Well, I believe the reason is that when m2eclipse get dependancies from
> repository, it read pom as is. (does not translate any property values from
> local settings file.)
> Or, it may be even more complex. It does apply property value subsitution,
> but for only once. When it looks for dep. of dep., it forgot to translate
> those properties again. (just like this forum. when I post with multiple
> "colored" paragraph, it only highlights the first segment.)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira