[ https://jira.codehaus.org/browse/MSITE-443?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=308846#comment-308846 ]
Jin Kwon commented on MSITE-443: -------------------------------- I just find that maven-site-plugin seems have some problem although works as explained on http://maven.apache.org/plugins/maven-site-plugin/maven-3.html#Version_Resolution. <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.8.1</version> <--------------------| must follow the lights; it doesn't. </plugin> | <plugin> | <artifactId>maven-site-plugin</artifactId> | <version>3.1</version> | </plugin> | </plugins> | </pluginManagement> | <plugins> | <plugin> | <artifactId>maven-javadoc-plugin</artifactId> <------------| 2.7 ---------------| </plugin> | <plugin> | <groupId>org.apache.maven.plugins</groupId> | <artifactId>maven-site-plugin</artifactId> | <executions> | <execution> | <id>attach-descriptor</id> | <goals> | <goal>attach-descriptor</goal> | </goals> | </execution> | </executions> | <configuration> | <reportPlugins> | <plugin> | <artifactId>maven-javadoc-plugin</artifactId> -------| </plugin> </reportPlugins> </configuration> <plugin> </plugins> </build> > add a reportingManagement section > --------------------------------- > > Key: MSITE-443 > URL: https://jira.codehaus.org/browse/MSITE-443 > Project: Maven 2.x and 3.x Site Plugin > Issue Type: Bug > Environment: maven-site-plugin 2.0-beta-3-SNAPSHOT > Reporter: Indrajit Raychaudhuri > Fix For: 3.0 > > > Consider the following POM: > {code:xml} > <!-- ... ... --> > <!-- ... ... --> > <build> > <pluginManagement> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <configuration> > <author>false</author> > </configuration> > </plugin> > </pluginManagement> > </build> > <!-- ... ... --> > <!-- ... ... --> > <reporting> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > </plugin> > </plugins> > </reporting> > <!-- ... ... --> > {code} > {{mvn site:site}} doesn't honor the javadoc configuration specified in the > {{<pluginManagement/>}} section. > However, {{mvn javadoc:javadoc}} honors them. > This is true not just for javadoc but other plugins like checkstyle as well. > I guess, the {{<reporting/>}} section doesn't use the {{<pluginManagement/>}} > section at all. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira