Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
2.1.0
-
None
-
None
-
Ant 1.7.1
Description
There is no proper way to install or deploy parent pom.
It is not possible to install it directly:
<artifact:pom id="parent.pom" file="poms/hamcrest-parent.pom"/> <artifact:install file="poms/hamcrest-parent.pom" pomRefId="parent.pom" />
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:
<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" />
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