[ https://jira.codehaus.org/browse/MANTTASKS-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Osipov closed MANTTASKS-184. ------------------------------------ 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. > No easy way to use parent pom > ----------------------------- > > Key: MANTTASKS-184 > URL: https://jira.codehaus.org/browse/MANTTASKS-184 > Project: Maven Ant Tasks > Issue Type: Bug > Components: deploy task, install task > Affects Versions: 2.1.0 > Environment: Ant 1.7.1 > Reporter: Marcin Wisnicki > > There is no proper way to install or deploy parent pom. > It is not possible to install it directly: > {code:xml} > <artifact:pom id="parent.pom" file="poms/hamcrest-parent.pom"/> > <artifact:install file="poms/hamcrest-parent.pom" pomRefId="parent.pom" /> > {code} > Resulting pom will be unprocessed. It's kind of expected but I can't omit > file attribute. > I had to workaround it with additional {{writepom}} step: > {code:xml} > <artifact:pom id="parent.pom" file="poms/hamcrest-parent.pom"/> > <artifact:writepom pomRefId="parent.pom" > file="build/poms/hamcrest-parent.pom"/> > <artifact:pom id="parent.pom-1" file="build/poms/hamcrest-parent.pom"/> > <artifact:install file="build/poms/hamcrest-parent.pom" > pomRefId="parent.pom-1" /> > {code} > Possible solutions: > # Make {{file}} attribute completely optional, if not present assume > installation of pom artifact > # Add {{type}} attribute to {{install}} task > # Add separate install-pom task -- This message was sent by Atlassian JIRA (v6.1.6#6162)