You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2005/07/11 16:30:58 UTC

[jira] Closed: (MNG-565) JavadocReport is missing @requiresDependencyResolution compile tag

     [ http://jira.codehaus.org/browse/MNG-565?page=all ]
     
Emmanuel Venisse closed MNG-565:
--------------------------------

      Assign To: Emmanuel Venisse
     Resolution: Fixed
    Fix Version: 2.0-beta-1

Applied

> JavadocReport is missing  @requiresDependencyResolution compile tag
> -------------------------------------------------------------------
>
>          Key: MNG-565
>          URL: http://jira.codehaus.org/browse/MNG-565
>      Project: Maven 2
>         Type: Bug
>   Components: maven-reports
>     Versions: 2.0-alpha-3
>  Environment: Gentoo Linux, jdk 1.4.2_06
>     Reporter: Corridor Software Developer
>     Assignee: Emmanuel Venisse
>      Fix For: 2.0-beta-1
>  Attachments: JavadocReportNPE.patch
>
>
> The org.apache.maven.plugin.javadoc.JavadocReport make a call to MavenProject.getCompileClasspathElements(). This will throw an NPE at first line in the method if dependency resolution isn't set:
>         List list = new ArrayList( getArtifacts().size() );    <---- getArtifacts() returns null here...
> Adding the @requiresDependencyResolution tag to the class' javadoc causes getArtifacts() to return a valid result.
> Also, there is a minor grammar error in the exception handling of the executeReport method. A correction is included in this patch as well.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org