Issue Details (XML | Word | Printable)

Key: MJAVADOC-244
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Vincent Siveton
Reporter: Chris Wilkes
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Javadoc Plugin

Javadoc plugin: java files under src/main/javadoc and doc-files directory are being compiled

Created: 28/Jul/09 04:37 PM   Updated: 19/Aug/09 07:41 AM   Resolved: 19/Aug/09 07:41 AM
Return to search
Component/s: None
Affects Version/s: 2.6
Fix Version/s: 2.6.1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive javadoc-problem.zip (3 kB)



 Description  « Hide

Maven was trying to compile src/main/javadoc/my/company/doc-files/Foo.java even though I set the docfilessubdirs configuration option to true. Renaming it to .txt works, however maven should probably not compile anything under src/main/javadoc/



Benjamin Bentmann added a comment - 28/Jul/09 04:41 PM

Can you provide some more details, like a build log that shows what plugin is actually compiling the code or preferably a little example project to demonstrate the issue?


Chris Wilkes added a comment - 28/Jul/09 07:31 PM

"mvn javadoc:javadoc" will return [INFO] ------------------------------------------------------------------------
[INFO] An error has occurred in JavaDocs report generation:Exit code: 1 - javadoc: error - Illegal package name: "example.doc-files"


Vincent Siveton added a comment - 03/Aug/09 08:58 AM

Confirmed.

I guess we could add a filter for java files, but the doc for docfilessubdirs [1] doesnt speak about java files.
So we need to understand your use case to add java files in javadoc dir.
You could also provide a patch (always better).

[1] http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javadoc.html#docfilessubdirs


Vincent Siveton added a comment - 19/Aug/09 07:41 AM

fixed in r805778, snap deployed