[ 
https://jira.codehaus.org/browse/MANTTASKS-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MANTTASKS-183.
------------------------------------

    Resolution: Won't Fix

Please refer to 
https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
 if you're wondering why this issue was closed out.

> Property not evaluated in pom/project/parent/version
> ----------------------------------------------------
>
>                 Key: MANTTASKS-183
>                 URL: https://jira.codehaus.org/browse/MANTTASKS-183
>             Project: Maven Ant Tasks
>          Issue Type: Bug
>          Components: pom task
>    Affects Versions: 2.1.0
>         Environment: Ant 1.7.1
>            Reporter: Marcin Wisnicki
>         Attachments: manttasks-183-testcase.zip
>
>
> I'm trying to define parent version in pom by property:
> {code:xml|title=hamcrest-integration.pom}
> <project xmlns="http://maven.apache.org/POM/4.0.0";>
>   <modelVersion>4.0.0</modelVersion>
>   <parent>
>     <groupId>org.hamcrest</groupId>
>     <artifactId>hamcrest-parent</artifactId>
>     <version>${hamcrest.version}</version>
>   </parent>
>   <groupId>org.hamcrest</groupId>
>   <artifactId>hamcrest-integration</artifactId>
>   <version>${hamcrest.version}</version>
> </project>
> {code}
> And using something like following in build.xml:
> {code:xml|title=build.xml}
> <property name="hamcrest.version" value="1.2"/>
> <artifact:pom id="generator.pom" file="poms/hamcrest-generator.pom"/>
> {code}
> Unfortunately generated pom (via writepom/install/deploy) has 
> {{project.version}} resolved, but {{project.parent.version}} remains 
> unresolved.



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to