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

indirect snapshot dependency not in fileset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0
    • None
    • dependencies task
    • None
    • Java 1.5

    Description

      I use

      <artifact:dependencies filesetId="fileset">
      <dependency groupId="myGroup" artifactId="first" version="0.86">
      </dependency>
      <artifact:remoteRepository url="http://myCompany/repository/">
      <snapshots updatePolicy="always" enabled="true"/>
      <releases updatePolicy="always" enabled="true"/>
      </artifact:remoteRepository>
      </artifact:dependencies>

      to fetch "first" and all dependent jar files. First's pom contains

      <dependency>
      <groupId>myGroup</groupId>
      <artifactId>second</artifactId>
      <version>0.5-SNAPSHOT</version>
      </dependency>

      Problem: the "second" jar file is in not in the fileset.

      Note 1: Everything work's fine if "second"'s version is 0.5.

      Note 2: I can work-around the problem by adding a second dependencies call

      <artifact:dependencies filesetId="fileset.second">
      <dependency groupId="myGroup" artifactId="second" version="0.5-SNAPSHOT">
      </dependency>
      <artifact:remoteRepository url="http://myCompany/repository/">
      <snapshots updatePolicy="always" enabled="true"/>
      <releases updatePolicy="always" enabled="true"/>
      </artifact:remoteRepository>
      </artifact:dependencies>

      to my build file (and use to fileset references). However, having a single dependencies
      call with two dependency lines does not help.

      Attachments

        1. build.xml
          1 kB
          Michael Hartmeier

        Activity

          People

            Unassigned Unassigned
            mhm Michael Hartmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: