apache / apache/maven-pmd-plugin
[MPMD-381] MPMD-323-ruleset-basedir-jgitver is broken or flaky on JDK 17 windows
- Dominant language
- Java
- Stars
- 66
- Forks
- 55
- Avg merge
- 8d 16h
- Merged PRs (30d)
- 7
Description
**[Elliotte Rusty Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** opened **[MPMD-381](https://issues.apache.org/jira/browse/MPMD-381?redirect=false)** and commented
```
Error: 'other' has different root
Error:
Error: To see the full stack trace of the errors, re-run Maven with the -e switch.
Error: Re-run Maven using the -X switch to enable full debug logging.
Running post-build script: D:\a\maven-pmd-plugin\maven-pmd-plugin\target\it\MPMD-323-ruleset-basedir-jgitver\verify.groovy
Assertion failed:
assert pmdXml.exists()
| |
| false
D:\a\maven-pmd-plugin\maven-pmd-plugin\target\it\MPMD-323-ruleset-basedir-jgitver\target\pmd.xml
at org.codehaus.groovy.runtime.InvokerHelper.assertFailed(InvokerHelper.java:436)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.assertFailed(ScriptBytecodeAdapter.java:670)
at Script1.run(Script1.groovy:21)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:427)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:461)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:436)
at org.apache.maven.shared.scriptinterpreter.GroovyScriptInterpreter.evaluateScript(GroovyScriptInterpreter.java:76)
at org.apache.maven.shared.scriptinterpreter.ScriptRunner.executeRun(ScriptRunner.java:236)
at org.apache.maven.shared.scriptinterpreter.ScriptRunner.run(ScriptRunner.java:161)
at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runPostBuildHook(AbstractInvokerMojo.java:2154)
at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:2129)
at org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuild(AbstractInvokerMojo.java:1721)
at org.apache.maven.plugins.invoker.AbstractInvokerMojo.lambda$runBuilds$4(AbstractInvokerMojo.java:1431)
at org.apache.maven.plugins.invoker.JobExecutor.lambda$null$1(JobExecutor.java:69)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)
*** end build.log for: MPMD-323-ruleset-basedir-jgitver\pom.xml ***
Error: -------------------------------------------------
Error:
[INFO] -------------------------------------------------
[INFO] Build Summary:
[INFO] Passed: 44, Failed: 1, Errors: 0, Skipped: 4
[INFO] -------------------------------------------------
```
---
No further details from [MPMD-381](https://issues.apache.org/jira/browse/MPMD-381?redirect=false)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the MPMD-323-ruleset-basedir-jgitver integration test on JDK 17 Windows, then inspect its pom.xml and verify.groovy, especially the pmd.xml assertion. Done means the test no longer fails with the different-root error and the expected target/pmd.xml is produced.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- groovy, java
- Domain
- build-system, operating-systems, testing
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100