You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Arnaud Heritier (JIRA)" <ji...@codehaus.org> on 2008/02/18 17:10:28 UTC

[jira] Closed: (MECLIPSE-379) When downloading sources and javadocs dependency classifier is not respected.

     [ http://jira.codehaus.org/browse/MECLIPSE-379?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arnaud Heritier closed MECLIPSE-379.
------------------------------------

      Assignee: Arnaud Heritier
    Resolution: Fixed

This issue is fixed. 
To try the latest SNAPSHOT (2.5-20080218.113139-24) of the incoming version you have to define and activate this profile :
{code}
    <profile>
      <id>apache.snapshots</id>
      <repositories>
        <repository>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots/>
          <id>apache.snapshots</id>
          <name>Maven Snapshots</name>
          <url>http://people.apache.org/maven-snapshot-repository</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <releases>
            <enabled>false</enabled>
          </releases>
          <snapshots/>
          <id>apache.plugin.snapshots</id>
          <name>Maven Plugin Snapshots</name>
          <url>http://people.apache.org/maven-snapshot-repository</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
{code}
Then you have to call this command :
{code}
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.5-SNAPSHOT:eclipse
{code}

> When downloading sources and javadocs dependency classifier is not respected.
> -----------------------------------------------------------------------------
>
>                 Key: MECLIPSE-379
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-379
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>          Components: Core : Dependencies resolution and build path
>    Affects Versions: 2.4
>         Environment: windows vista ultimate
> java 1.6_01
> maven-2.0.8
>            Reporter: Erick Dovale
>            Assignee: Arnaud Heritier
>             Fix For: 2.5
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira