[jbosstools-issues] [JBoss JIRA] (JBIDE-20215) Version property is not replaced with a value defined in parent pom
Matous Jobanek (JIRA)
issues at jboss.org
Tue Aug 18 02:32:26 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-20215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13099214#comment-13099214 ]
Matous Jobanek commented on JBIDE-20215:
----------------------------------------
Hi, I can see the misunderstanding now - I've explained my issue badly.
Here is the an that led me to create this one: SHRINKRES-223
I regarded the generated target (generated by JBDS) as an replacement of maven local repository - in this case, when you install the artifacts from the command line, the versions are interpolated.
On the other hand, when I compare the generated targets from JBDS and from maven, it seems to be same - from this point of view, it doesn't seem to be a bug.
Sorry for the misunderstanding.
> Version property is not replaced with a value defined in parent pom
> -------------------------------------------------------------------
>
> Key: JBIDE-20215
> URL: https://issues.jboss.org/browse/JBIDE-20215
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: maven, upstream
> Affects Versions: 4.3.0.Alpha1
> Environment: JBDS 9.0.0.Alpha1
> Reporter: Matous Jobanek
> Fix For: 4.3.x
>
> Attachments: parent.zip
>
>
> Consider this situation:
> There is a parent pom where a version property is defined.
> {code:xml}
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <groupId>jira</groupId>
> <artifactId>jira-reproducer-parent</artifactId>
> <version>1.0</version>
> <packaging>pom</packaging>
> <properties>
> <reproducer.child.version>1.1.Final</reproducer.child.version>
> </properties>
> </project>
> {code}
> Then there is a child pom and version of this pom is the property defined in the parent pom.
> {code:xml}
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
> <parent>
> <groupId>jira</groupId>
> <artifactId>jira-reproducer-parent</artifactId>
> <version>1.0</version>
> <relativePath>../pom.xml</relativePath>
> </parent>
> <artifactId>jira-reproducer-child</artifactId>
> <version>${reproducer.child.version}</version>
> </project>
> {code}
> Then the generated pom at target/classes/META-INF/maven/jira/jira-reproducer-child/pom.xml doesn't contain the replaced value from the parent pom, but the original property:
> {code:xml}
> <version>${reproducer.child.version}</version>
> {code}
> should be:
> {code:xml}
> <version>1.1.Final</version>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jbosstools-issues
mailing list