lprimak opened a new issue, #1124: URL: https://github.com/apache/maven-compiler-plugin/issues/1124
### Affected version 3.16.0 ### Bug description Starting with 3.16.0, there is a warning printed that suggests wrong target/ directory is being read. This is especially true when there are no classes being compiled from `src/main/java` and the module contains just tests. Reproducer: https://github.com/lprimak/maven-test-compiler-reproducer Error message: ``` [INFO] --- compiler:3.16.0:testCompile (default-testCompile) @ maven-testng-reproducer --- [WARNING] I/O error reading dependency state: /Users/lprimak/Downloads/maven-testng-reproducer/target/classes: /Users/lprimak/Downloads/maven-testng-reproducer/target/classes [INFO] Recompiling the module because of changed dependency. [INFO] Compiling 3 source files with javac [debug release 21] to target/test-classes ``` The issue is reproducible via maven 3.9.16 and 4-rc-6 -- 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]
