我們目前正在使用Tycho將我們的Eclipse RCP應用程序遷移到Maven構建版本。 Everythings運行良好,所以我們想介紹一下Maven checkstyle插件。 的結構看起來如下:Maven Checkstyle插件創建空的報告
parent
- pom.xml
child1
- pom.xml
child2
- pom.xml
每個孩子都被配置爲從父項目(反之亦然)模塊。 我們配置了Maven的CheckStyle,插件是這樣的:
<build>
...
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0</version>
<configuration>
<reportPlugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.9.1</version>
</plugin>
</reportPlugins>
</configuration>
</plugin>
</plugins>
</build>
開始MVN從乾淨的child1工程安裝網站並創建的CheckStyle,爲result.xml但這個文件是空的。
任何提示這裏有什麼問題?