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

[jira] Commented: (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:comment-tabpanel#action_124173 ] 

Erick Dovale commented on MECLIPSE-379:
---------------------------------------

I am curious as to why something like this happens? One would think that things like file names for dependencies would be provided by some facility in maven core but apparently it is not or is it?

> 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