您可以在pom.xml中使用以下配置在每次构建项目时运行 DOCCK 插件并将其输出发送到文件。
<project> ... <build> <plugins> ... <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-docck-plugin</artifactId> <version>1.1</version> <executions> <execution> <configuration> <output>target/docck-results.txt</output> </configuration> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> ... </plugins> </build> ... </project>