有没有办法做到这一点呢?似乎我的项目总是下载3.5.1版本的maven-site-plugin,因为我坚持使用java 1.6,所以它不能工作。在我的pom里我有
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.15</version>
</plugin>
和
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.15</version>
<reportSets>
<reportSet>
<reports>
<report>checkstyle</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
发布于 2018-08-16 05:37:23
您需要使用一些非常古老的版本,但这是可能的。请参阅Checkstyle Compatibility Matrix以查看版本。
大多数情况下,你将不得不使用Checkstyle 6.1.1,以及configure your Maven to use it。
https://stackoverflow.com/questions/51841377
复制相似问题