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
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]