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

[task dependencies]Trouble between mvn and manttasks

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.7
    • Fix Version/s: None
    • Component/s: dependencies task
    • Labels:
      None
    • Environment:
      Windows 2000/XP
      Java version: 1.4.2_03
      Ant 1.6.5

      Description

      I have a library org.test.b.

      • In the first version i declare i have a dependency with the library org.test:d:1.1
      • In the second version i declare i have no dependencies

      My current developpement use the library org.test.a which have a dependency with org.test:b:1.0.
      I declare i prefered to use the new library org.test:b:1.1
      and i have another library org.test:c because of its dependency, it must use the library org.test:d

      If i write my pom like this :

      <dependencies>
        <dependency>
          <groupId>org.test</groupId>
          <artifactId>a</artifactId>
          <version>1.0</version>
        </dependency>
        <dependency>
          <groupId>org.test</groupId>
          <artifactId>c</artifactId>
          <version>1.0</version>
        </dependency>
        <dependency>
          <groupId>org.test</groupId>
          <artifactId>b</artifactId>
          <version>1.1</version>
        </dependency>
      </dependencies>
      

      When I run ant with this pom :

      <artifact:pom id="pom" file="pom.xml" />
      <artifact:remoteRepository id="repository" url="file:./repository" />
      
      <artifact:dependencies filesetId="compile.dependency.fileset" useScope="compile" verbose="true">
          <pom refid="pom" />
          <remoteRepository refid="repository" />
          <localRepository path="./localRepository" />
      </artifact:dependencies>
      

      the dependency fileset does not contain the library org.test:d

      And when i run mvn site:site, i have org.test:d:1.2 in the scope compile.


      here, you can find the dependency tree of my testcase

      test:test-tree:jar:1.0 (selected)
        org.test:a:jar:1.0:compile (selected)
          org.test:b:jar:1.0:compile (selected)
            org.test:d:jar:1.1:compile (selected)
        org.test:c:jar:1.0:compile (selected)
          org.test:e:jar:1.0:compile (selected)
            org.test:d:jar:1.2:compile (removed - nearer found: 1.1)
        org.test:b:jar:1.0:compile (removed - nearer found: 1.1)
        org.test:b:jar:1.1:compile (selected)
      

      To run my testcase you can do :

      • ant clean : to remove all generated
      • ant test : to check the problem

      And you run maven (2.0.7) like this :

      • mvn -s settings.xml site:site

        Attachments

        1. testDependency.zip
          864 kB
          David N'DIAYE

          Issue Links

            Activity

              People

              • Assignee:
                hboutemy Herve Boutemy
                Reporter:
                dndiaye David N'DIAYE
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: