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)

huangapple go评论74阅读模式
英文:

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 PMD插件版本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%可重现的失败。

我可以请教一下问题出在哪里吗?

英文:

Question about maven PMD plugin.

I used to have maven pod plugin version 3.12.0
Very happy with this plugin, it was configured that way, everything was working fine.

            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
                &lt;version&gt;3.12.0&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;targetDirectory&gt;.out/reports/pmd&lt;/targetDirectory&gt;
                    &lt;outputDirectory&gt;target/reports/pmd&lt;/outputDirectory&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;

However, I wanted to upgrade to the newest version 3.13.0 and I am now facing this issue.

            &lt;plugin&gt;
                &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                &lt;artifactId&gt;maven-pmd-plugin&lt;/artifactId&gt;
                &lt;version&gt;3.13.0&lt;/version&gt;
                &lt;configuration&gt;
                    &lt;targetDirectory&gt;.out/reports/pmd&lt;/targetDirectory&gt;
                    &lt;outputDirectory&gt;target/reports/pmd&lt;/outputDirectory&gt;
                &lt;/configuration&gt;
            &lt;/plugin&gt;
[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) -&gt; [Help 1]

This is literally a one character change. The 3.12 version is working perfectly fine, while with 3.13.0, it is failing 100% reproducible.

May I ask what is the issue please?

答案1

得分: 1

这个问题在由 PMD 团队开发的同一插件的 3.14.0 版本中已经修复。

英文:

This is now fixed with version 3.14.0 of the same plugin by PMD team.

huangapple
  • 本文由 发表于 2020年10月4日 12:03:32
  • 转载请务必保留本文链接:https://go.coder-hub.com/64191053.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定