[ http://jira.codehaus.org/browse/MANTTASKS-183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marcin Wisnicki updated MANTTASKS-183: -------------------------------------- Attachment: manttasks-183-testcase.zip Extract and run ant to test with 2.1.0. Place maven-ant-tasks-2.1.1-SNAPSHOT.jar in the same dir and edit build.xml to test with trunk. It will produce: - build/child.pom -- using {{<writepom>}} -- partially interpolated (except parent section) - build/repo/example/child/1.0/child-1.0.pom -- using {{<install>}} -- no interpolation Also worth noting is the fact that {{<writepom>}} removed {{<repositories>}} and installed jar artifacts miss META-INF/maven/${groupId}/${artifactId}/pom.{properties,xml} unlike those created by real maven, but I should probably file separate bugs. > 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 > 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 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