Property not evaluated in pom/project/parent/version
----------------------------------------------------

                 Key: MANTTASKS-183
                 URL: http://jira.codehaus.org/browse/MANTTASKS-183
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: pom task
    Affects Versions: 2.1.0
         Environment: Ant 1.7.1
            Reporter: Marcin Wisnicki


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 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

        

Reply via email to