Maven Ant Tasks
  1. Maven Ant Tasks
  2. MANTTASKS-18

filesetId does not contain all dependencies when artifact was not yet locally installed

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.6
    • Fix Version/s: 2.0.7
    • Component/s: dependencies task
    • Labels:
      None
    • Environment:
      java version "1.4.2_04", Linux 2.6.11.12, Apache Ant version 1.6.5
    • Flags:
      Patch

      Description

      In the artifact:dependencies task the filesetId is only correctly set, when the artifact was installed locally before running ant.

      After deletion of the local repository the dependant artifacts will be downloaded to the local repository, but only one of two dependant files will be included in the ant fileset. The classpath is set correctly.

      After running "mvn install" locally for the "as-base-launcher" maven project, ant computes the correct filesetId.

      The ant-project depends on the artifact "as-base-launcher" which itselfs depends only on classworlds. Snippets from ant buildfiles, poms and ant output follows:

      From the ant buildfile:

      <target name="launcherJAR" depends="init">
      <artifact:pom id="as-base.project" file="../poms/as-base.xml" />
      <artifact:dependencies filesetId="as-launcher.fileset" pathId="as-launcher.classpath" verbose="true">
      <pom refid="as-base.project"/>
      <remoteRepository refid="actisRepository" />
      </artifact:dependencies>

      <pathconvert property="mypath" targetos="unix">
      <path>
      <path refid="as-launcher.classpath" />
      </path>
      </pathconvert>
      <echo message="CLASSPATH: $

      {mypath}

      "/>

      <pathconvert property="myset" targetos="unix">
      <path>
      <fileset refid="as-launcher.fileset"/>
      </path>
      </pathconvert>
      <echo message="FILESET: $

      {myset}

      "/>
      </target>

      The referenced POM defining the ant dependencies:

      <project>
      <modelVersion>4.0.0</modelVersion>
      <groupId>actis</groupId>
      <artifactId>ant-as-base</artifactId>
      <version>1.0-SNAPSHOT</version>
      <dependencies>
      <dependency>
      <groupId>actis</groupId>
      <artifactId>as-base-launcher</artifactId>
      <version>1.0-SNAPSHOT</version>
      </dependency>
      </dependencies>
      <repositories>
      <repository>
      <id>actisRepository</id>
      <name>actisRepository</name>
      <url>http://company.com:9999/repository/</url>
      </repository>
      </repositories>
      </project>

      Output of the ant run:

      launcherJAR:
      actis:ant-as-base:jar:1.0-SNAPSHOT (selected)
      actis:as-base-launcher:jar:1.0-SNAPSHOT (selected)
      classworlds:classworlds:jar:1.1-alpha-1 (selected)
      [echo] CLASSPATH: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar:/home/iwe/.m2/repository/actis/as-base-launcher/1.0-20051103.102305-8/as-base-launcher-1.0-20051103.102305-8.jar
      [echo] FILESET: /home/iwe/.m2/repository/classworlds/classworlds/1.1-alpha-1/classworlds-1.1-alpha-1.jar

      1. MANTTASKS-18_new.diff
        6 kB
        Hervé Boutemy
      2. MANTTASKS-18_new.tgz
        3 kB
        Hervé Boutemy
      3. MANTTASKS-18_new2.diff
        5 kB
        Hervé Boutemy
      4. patch.txt
        2 kB
        Michael Hartmeier

        Issue Links

          Activity

          Ingo Weichsel created issue -
          Brett Porter made changes -
          Field Original Value New Value
          Fix Version/s 2.0.1 [ 12000 ]
          John Casey made changes -
          Fix Version/s 2.0.1 [ 12000 ]
          Fix Version/s 2.0.2 [ 12107 ]
          Michael Hartmeier made changes -
          Attachment patch.txt [ 18708 ]
          Jason van Zyl made changes -
          Fix Version/s 2.0.4 [ 12294 ]
          Fix Version/s 2.0.3 [ 12107 ]
          Vincent Massol made changes -
          Workflow Maven [ 41398 ] Maven New [ 47255 ]
          Brett Porter made changes -
          Link This issue is duplicated by MNG-2273 [ MNG-2273 ]
          John Casey made changes -
          Fix Version/s 2.0.5 [ 12294 ]
          John Casey made changes -
          Fix Version/s 2.0.5 [ 12294 ]
          kenneyw made changes -
          Fix Version/s 2.0.6 [ 13010 ]
          Fix Version/s 2.0.5 [ 12294 ]
          Rick Riemer made changes -
          Link This issue depends upon MNG-2544 [ MNG-2544 ]
          Rick Riemer made changes -
          Link This issue depends upon MNG-2544 [ MNG-2544 ]
          Rick Riemer made changes -
          Link This issue is related to MNG-2544 [ MNG-2544 ]
          Jason van Zyl made changes -
          Fix Version/s 2.0.x [ 13141 ]
          Fix Version/s 2.0.6 [ 13010 ]
          Jason van Zyl made changes -
          Project Maven 2 [ 10500 ] Maven 2.x Ant Tasks [ 11533 ]
          Affects Version/s 2.0 [ 11703 ]
          Key MNG-1408 MANTTASKS-18
          Workflow Maven New [ 47255 ] jira [ 69348 ]
          Fix Version/s 2.0.x [ 13141 ]
          Component/s Ant tasks [ 11532 ]
          Brett Porter made changes -
          Workflow jira [ 69348 ] Maven New [ 69378 ]
          Hervé Boutemy made changes -
          Attachment MANTTASKS-18.tar.gz [ 27086 ]
          Attachment MANTTASKS-18.diff [ 27085 ]
          Hervé Boutemy made changes -
          Link This issue is duplicated by MANTTASKS-68 [ MANTTASKS-68 ]
          Hervé Boutemy made changes -
          Attachment MANTTASKS-18_new.diff [ 27896 ]
          Attachment MANTTASKS-18_new.tgz [ 27897 ]
          Hervé Boutemy made changes -
          Priority Major [ 3 ] Critical [ 2 ]
          Fix Version/s 2.0.7 [ 13521 ]
          Testcase included yes
          Affects Version/s 2.0.6 [ 13351 ]
          Patch Submitted [Yes]
          Hervé Boutemy made changes -
          Component/s dependencies task [ 12843 ]
          Hervé Boutemy made changes -
          Attachment MANTTASKS-18.diff [ 27085 ]
          Hervé Boutemy made changes -
          Attachment MANTTASKS-18.tar.gz [ 27086 ]
          Hervé Boutemy made changes -
          Attachment MANTTASKS-18_new2.diff [ 27934 ]
          Hervé Boutemy made changes -
          Link This issue is related to MNG-2961 [ MNG-2961 ]
          Hervé Boutemy made changes -
          Link This issue is duplicated by MANTTASKS-1 [ MANTTASKS-1 ]
          Hervé Boutemy made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 09:00:58 UTC 2015 [ 1428224458201 ]
          Mark Thomas made changes -
          Workflow jira [ 12716108 ] Default workflow, editable Closed status [ 12760108 ]
          Mark Thomas made changes -
          Patch Submitted Yes [ 10763 ]
          Flags Patch [ 10430 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 22:08:22 UTC 2015 [ 1428271702400 ]
          Mark Thomas made changes -
          Workflow jira [ 12953642 ] Default workflow, editable Closed status [ 12990764 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Ingo Weichsel
            • Votes:
              19 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development