Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-184

No easy way to use parent pom

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.0
    • None
    • deploy task, install task
    • 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:

      1. Make file attribute completely optional, if not present assume installation of pom artifact
      2. Add type attribute to install task
      3. Add separate install-pom task

      Attachments

        Activity

          People

            Unassigned Unassigned
            mwisnicki Marcin Wisnicki
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: