适用于 maven 3.12.0,但 3.13.0:pmd 失败:MavenReportException: /workspace/my-project/.out/reports/pmd/pmd.xml(没有这样的文件或目录)
Good with maven 3.12.0, but 3.13.0:pmd failed: MavenReportException: /workspace/my-project/.out/reports/pmd/pmd.xml (No such file or directory)
关于maven PMD插件的问题。
我以前有maven pod插件版本3.12.0
对这个插件很满意,它是这样配置的,一切正常。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.12.0</version>
<configuration>
<targetDirectory>.out/reports/pmd</targetDirectory>
<outputDirectory>target/reports/pmd</outputDirectory>
</configuration>
</plugin>
但是我想升级到最新的3.13.0版本,现在遇到了这个问题
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<targetDirectory>.out/reports/pmd</targetDirectory>
<outputDirectory>target/reports/pmd</outputDirectory>
</configuration>
</plugin>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd (default-cli) on project my-project: Execution default-cli of goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd failed: org.apache.maven.reporting.MavenReportException: /workspace/my-project/.out/reports/pmd/pmd.xml (No such file or directory) -> [Help 1]
这实际上是一个字符的更改。 3.12 版本运行良好,而 3.13.0 版本无法 100% 重现。
请问是什么问题?
PMD 团队现在使用同一插件的 3.14.0 版修复了此问题。
关于maven PMD插件的问题。
我以前有maven pod插件版本3.12.0 对这个插件很满意,它是这样配置的,一切正常。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.12.0</version>
<configuration>
<targetDirectory>.out/reports/pmd</targetDirectory>
<outputDirectory>target/reports/pmd</outputDirectory>
</configuration>
</plugin>
但是我想升级到最新的3.13.0版本,现在遇到了这个问题
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.13.0</version>
<configuration>
<targetDirectory>.out/reports/pmd</targetDirectory>
<outputDirectory>target/reports/pmd</outputDirectory>
</configuration>
</plugin>
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd (default-cli) on project my-project: Execution default-cli of goal org.apache.maven.plugins:maven-pmd-plugin:3.13.0:pmd failed: org.apache.maven.reporting.MavenReportException: /workspace/my-project/.out/reports/pmd/pmd.xml (No such file or directory) -> [Help 1]
这实际上是一个字符的更改。 3.12 版本运行良好,而 3.13.0 版本无法 100% 重现。
请问是什么问题?
PMD 团队现在使用同一插件的 3.14.0 版修复了此问题。