0
我使用我的特定配置文件生成網站時遇到問題。我的配置文件設置看起來像這樣:無法生成包含配置文件的mvn網站
<profiles>
<profile>
<id>codequality</id>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<configuration>
<outputDirectory>../target/site/${project.name}</outputDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>cobertura-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>2.7.1</version>
<configuration>
<linkXref>true</linkXref>
<targetJdk>1.6</targetJdk>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
<version>2.12</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jdepend-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>2.4.0</version>
<configuration>
<xmlOutput>true</xmlOutput>
<effort>Max</effort>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dashboard-maven-plugin</artifactId>
</plugin>
</plugins>
</reporting>
</profile>
</profiles>
當我運行CMD:MVN網站-P codequality,生成網站,但FindBugs的報告是不存在的。它包含此:
target/
└── site
├── css
│ ├── maven-base.css
│ ├── maven-theme.css
│ ├── print.css
│ └── site.css
└── images
├── collapsed.gif
├── expanded.gif
├── external.png
├── icon_error_sml.gif
├── icon_info_sml.gif
├── icon_success_sml.gif
├── icon_warning_sml.gif
├── logos
│ ├── build-by-maven-black.png
│ ├── build-by-maven-white.png
│ └── maven-feather.png
└── newwindow.png
有人可以幫助我嗎?