You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Bulent Erdemir (JIRA)" <ji...@codehaus.org> on 2007/01/26 16:51:29 UTC

[jira] Updated: (MECLIPSE-221) Javadoc's for dependencies are not downloaded correctly (name incorrently specified)

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

Bulent Erdemir updated MECLIPSE-221:
------------------------------------

    Attachment: patch.txt

The patch is not pasted correctly in the comments section, so I send it as a file:

Here's a very ugly patch to fix this for the users who desparately need it.

This patch also fixes the global settings.xml file not used problem in MECLIPSE-2261 by specifying a hard coded global settings.xml file (change the global settings file to the path to your installation).

Regards,
Bulent Erdemir

> Javadoc's for dependencies are not downloaded correctly (name incorrently specified)
> ------------------------------------------------------------------------------------
>
>                 Key: MECLIPSE-221
>                 URL: http://jira.codehaus.org/browse/MECLIPSE-221
>             Project: Maven 2.x Eclipse Plugin
>          Issue Type: Bug
>            Reporter: Bulent Erdemir
>         Attachments: patch.txt
>
>
> Hi,
> Open the preferences for maven and enable "Download artifact javadoc". Then create a basic pom.xml and add a dependency to commons-lang version 2.0. Like below:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>sil1</groupId>
>   <artifactId>sil1</artifactId>
>   <version>0.0.1</version>
>   <dependencies>
>     <dependency>
>       <groupId>commons-lang</groupId>
>       <artifactId>commons-lang</artifactId>
>       <version>2.2</version>
>     </dependency>
>   </dependencies>
> </project> 
> Then issue mvn compile. So that maven downloads the artifacts. 
> maven downloads the pom, the artifact itself. But not the javadoc. Because the repository has the file named "commons-lang-2.2-javadoc.jar " for the javadoc, however, maven searches for a file named "commons-lang-2.2-javadoc.java-doc". 
> So, the plugin needs to be modified to search for the right file name for javadoc retrieval. 
> Bulent Erdemir

-- 
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