[ http://jira.codehaus.org/browse/MJAVADOC-82?page=comments#action_77721 ] Damien Lecan commented on MJAVADOC-82: --------------------------------------
I have found why I doesn't work. My pom declares two uses of maven-javadoc-plugin : - 1 in <build> section - 1 in <reporting> section The first one was empty (no configuration) : <build> ... <plugin> <artifactId>maven-javadoc-plugin</artifactId> </plugin ... The second one declared the real configuration : <reporting> ... <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.1</version> <configuration> <subpackages> my.package:my.package2 </subpackages> </configuration> </plugin> ... It seems to be related to MNG-1857 or MNG-1931. I'm sorry, I think you can fix and close this issue > 'sourcepath' should not be mandatory when using 'subpackages' configuration > --------------------------------------------------------------------------- > > Key: MJAVADOC-82 > URL: http://jira.codehaus.org/browse/MJAVADOC-82 > Project: Maven 2.x Javadoc Plugin > Issue Type: Bug > Affects Versions: 2.0 > Reporter: Damien Lecan > Assigned To: Vincent Siveton > Fix For: 2.1 > > Attachments: MJAVADOC-82.rar > > > It is impossible to use 'subpackages' configuration without specifying > 'sourcepath' directory. > This works : <plugin> > <artifactId>maven-javadoc-plugin</artifactId> > <configuration> > <sourcepath>${basedir}/src/main/java</sourcepath> > <subpackages> > my.package:my.package2 > </subpackages> > </configuration> > </plugin> > but this one doesn't works (without sourcepath with sources default path) > <plugin> > <artifactId>maven-javadoc-plugin</artifactId> > <configuration> > <subpackages> > my.package:my.package2 > </subpackages> > </configuration> > </plugin> -- 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