[
http://jira.codehaus.org/browse/MANTTASKS-183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229105#action_229105
]
Marcin Wisnicki commented on MANTTASKS-183:
-------------------------------------------
Unfortunately nothing changed (with today trunk).
I have noticed however that it is only <writepom/> that even attempts any kind
of interpolation. Referencing existing pom file with <pom/> and then doing
<install/> results in exact copy of pom being installed (no interpolation).
Strangely, I cannot find anything about interpolation of pom variables in
manttask documentation.
I will try to attach simple test case tomorrow.
> 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