No easy way to use parent pom ----------------------------- Key: MANTTASKS-184 URL: http://jira.codehaus.org/browse/MANTTASKS-184 Project: Maven 2.x 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 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