On Sun, Jul 10, 2005 at 01:32:14PM -0500, Kris Bravo wrote:
> 
> Issue 1:
> 
> I attempted to run m2 javadoc:javadoc on a few projects and then on some
> of the maven 2 plugin subprojects but received the following error
> consistently:
> 
> "An error is occurred in [project name] report generation."
> 
> The stacktrace wasn't very helpful since the try...catch in
> AbstractMavenReport's execute method grabs all exceptions but doesn't give
> up details about it. I modified it to put out the stacktrace and learned
> that it's throwing a NPE here:
> 
> Line 282 MavenProject:         List list = new ArrayList(
> getArtifacts().size() );
> 
> Earlier the same problem occurred in a plugin I'm writing and I learned
> that adding  @requiresDependencyResolution compile to my Mojo would fix
> it.
> 
> I was suprised to see that JavadocReport seems to be missing it as well.
> I'm not certain how this could be the case without being noticed, but
> javadoc:javadoc works now that I've added it.
> 
> I didn't see an entry in JIRA. Do you want this in there?

Yes please. Make two separate issues, one for the AbstractMavenReport
swallowing exceptions and another for the missing @tag. 

> 
> Issue 2:
> 
> Once I got the goal working, I noticed it fails when the project path has
> a whitespace:
> 
> javadoc: Illegal package name: "/data/users/bravo/projects/open"
> javadoc: File not found:
> "source/maven/trunk/maven-plugins/maven-xmlbeans-plugin/src/main/java/org/apache/maven/exception/CodedException.java"
> 
> "open source" is a directory but it's being split. m2 shows the javadoc
> command ending with @files before executing it, and I'm wondering it the
> file names aren't passed with quotes around them.

I'm looking into this but I'm not sure. Can you try to change setValue()
to setLine() on these lines:

  cl.createArgument().setValue( classpath.toString() );

--
Trygve

Attachment: signature.asc
Description: Digital signature

Reply via email to