Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-379

When downloading sources and javadocs dependency classifier is not respected.

    XMLWordPrintableJSON

Details

    Description

      When running goal eclipse:eclipse with downloadSources and downloadJavadocs set to true this plugin tries to download the javadocs and sources without appending the classifier value to the name of the files to download.

      Eg. json-lib uses clsasifiers for the java version. This is how the dependency is defined in my pom.xml:
      <dependency>
      <groupId>net.sf.json-lib</groupId>
      <artifactId>json-lib</artifactId>
      <version>2.2</version>
      <classifier>jdk15</classifier>
      <scope>compile</scope>
      </dependency>

      This is the relevant output of running mvn eclipse:eclipse for the sources:

      Downloading: http://mikemps.no-ip.com/artifactory/repo/net/sf/json-lib/json-lib/2.2/json-lib-2.2-sources.jar
      Downloading: http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.2/json-lib-2.2-sources.jar
      Downloading: http://download.java.net/maven/1/net.sf.json-lib/java-sources/json-lib-2.2-sources.jar

      and for the javadocs:

      Downloading: http://mikemps.no-ip.com/artifactory/repo/net/sf/json-lib/json-lib/2.2/json-lib-2.2-javadoc.jar
      Downloading: http://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.2/json-lib-2.2-javadoc.jar
      Downloading: http://download.java.net/maven/1/net.sf.json-lib/javadocs/json-lib-2.2-javadoc.jar

      If the classifier was taken into consideration then the file names would starts with json-lib-2.2-jdk15-xxxx.jar

      Attachments

        Issue Links

          Activity

            People

              aheritier Arnaud Heritier
              edovale Erick Dovale
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: