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

Setting dependencies with the provided scope does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.9
    • None
    • dependencies task
    • None
    • OS X 10.4.11, Java 5, Ant 1.7.0, Ant 1.6.5

    Description

      If you use the provided scope to pull in dependences like this:

      <artifact:dependencies pathId="osgi.provided.classpath" filesetId="osgi.provided.fileset" verbose="true" useScope="provided">
      <pom refid="osgi.maven.project" />
      <remoteRepository refid="m2.repository"/>
      </artifact:dependencies>

      Then the result classpath and fileset are empty despite the POM containing definitions like this:
      ...
      <dependencies>
      <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi-compendium</artifactId>
      <version>4.1.0</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.osgi</groupId>
      <artifactId>osgi-core</artifactId>
      <version>4.1.0</version>
      <scope>provided</scope>
      </dependency>
      ...
      </dependencies>

      I would expect to have the path/fileset contain at least those two jars (I'm not sure about transitive dependencies, however).

      Other users have encountered this issue, see here:
      http://www.nabble.com/maven-ant-tasks-and-the-provided-scope-td19662878.html

      Attachments

        Issue Links

          Activity

            People

              pgier Paul Gier
              redshadow John Gibson
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: