Bukama commented on issue #349:
URL: 
https://github.com/apache/maven-pmd-plugin/issues/349#issuecomment-7339962039

   I tried to reproduce this locally on Windows 11 and couldn't. The setup 
matches the CI runner from the original report: the project is on `D:`, 
`%TEMP%` is on `C:`.
   ```
   
┌─────┬────────┬──────────────────────────┬───────────────────────┬───────────┐
   │ JDK │ Maven  │  maven-pmd-plugin / PMD  │ maven-compiler-plugin │  Result  
 │
   
├─────┼────────┼──────────────────────────┼───────────────────────┼───────────┤
   │ 25  │ 3.10.2 │ 3.29.0-SNAPSHOT / 7.29.0 │ default               │ ✅ passes 
│
   
├─────┼────────┼──────────────────────────┼───────────────────────┼───────────┤
   │ 17  │ 3.10.2 │ 3.29.0-SNAPSHOT / 7.29.0 │ default               │ ✅ passes 
│
   
├─────┼────────┼──────────────────────────┼───────────────────────┼───────────┤
   │ 17  │ 3.10.2 │ 3.21.0 / 6.55.0          │ 3.11.0                │ ✅ passes 
│
   
├─────┼────────┼──────────────────────────┼───────────────────────┼───────────┤
   │ 17  │ 3.9.16 │ 3.21.0 / 6.55.0          │ 3.11.0                │ ✅ passes 
│
   
└─────┴────────┴──────────────────────────┴───────────────────────┴───────────┘
   ```
   
   The last two rows use the plugin, PMD and compiler versions the IT ran with 
in mid-2023, when this was reported.
   
   Notes:
   - `other` has different root comes from `WindowsPath.relativize()`. On 
Windows it is thrown when the two paths are on different drives. Root 
comparison ignores case, so a drive letter in different case would not trigger 
it.
   - jgitver 1.9.0 writes the modified POM via `File.createTempFile`, which 
puts it in the system temp directory, and sets it as `project.getFile()`. So 
the POM and the project basedir can be on different drives. Still, neither 
jgitver nor this plugin calls relativize (`git log -S"relativize" -- src/main` 
finds nothing). The exception must have come from another component in the 
build, most likely the Maven or plugin versions on the runner at the time. 
Without the original `-e` stack trace I can't pin it down further.
   - The IT has never been excluded on Windows. Commit #506de75 only removed 
`invoker.maven.version = 3+`. It has run in the shared Windows CI since then.
   
   Since the failure can't be reproduced anymore, I close the issue as 
completed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to