这是Maven 3.0.我正在创建一个新项目:
mvn archetype:create
<project name="foo"> <body> <menu name="Overview"> <item name="Introduction" href="index.html" /> </menu> <menu ref="reports" /> </body> </project>
<reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.1.1</version> </plugin> </plugins> </reporting>
然后我运行mvn站点,它说“BUILD SUCCESS”.但是我没有在项目网站看到任何报告(报告菜单项不在).我究竟做错了什么?
解决方法
Maven 3报告
is different.
[...] <build> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.0-beta-2</version> <configuration> <reportPlugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-project-info-reports-plugin</artifactId> <version>2.2</version> <reports> <report>cim</report> <report>issue-tracking</report> </reports> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.2</version> </plugin> </reportPlugins> </configuration> </plugin> </build> [...]