configuration not anymore needed with last release of m-compiler-plugin#240
configuration not anymore needed with last release of m-compiler-plugin#240
Conversation
olamy
commented
Mar 15, 2022
- Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
- Ensure that the pull request title represents the desired changelog entry
- Please describe what you did
- Link to relevant issues in GitHub or Jira
- Link to relevant pull requests, esp. upstream and downstream changes
- Ensure you have provided tests - that demonstrates feature works or fixes the issue
basil
left a comment
There was a problem hiding this comment.
Steps to reproduce
See JENKINS-67960 and #235.
- Build and install this PR with
mvn clean installto obtain1.73-SNAPSHOT. git clone https://github.com/basil/acceptance-test-harness.gitcd acceptance-test-harnessgit checkout jsr305sed -i -e 's/1.51/1.73-SNAPSHOT/g' pom.xml- Verify this PR has taken effect by running
mvn help:effective-pom | grep forceJavacCompilerUseand ensure there are no results. - Verify Maven Compiler Plugin 3.10.1 is in use by running
mvn help:effective-pom | grep maven-compiler-plugin.versionand ensure you see<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>. - With Java 11, run
mvn clean verify -Denforcer.skip.
Expected results
(Note: These are the actual results when running mvn clean verify -Denforcer.skip -Dmaven.compiler.forceJavacCompilerUse=true or when running with POM 1.72 from before this PR.)
The build fails with a readable message with the compilation error:
[…]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project acceptance-test-harness: Compilation failure: Compilation failure:
[ERROR] /tmp/acceptance-test-harness/src/main/java/org/jenkinsci/test/acceptance/po/PageAreaImpl.java:[7,38] error: package edu.umd.cs.findbugs.annotations does not exist
[…]
[ERROR] /tmp/acceptance-test-harness/src/main/java/org/jenkinsci/test/acceptance/update_center/PluginSpec.java:[45,19] error: cannot find symbol
[ERROR] symbol: class NonNull
[ERROR] location: class PluginSpec
[…]
Actual results
The build fails without printing a readable message with the compilation error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project acceptance-test-harness: Fatal error compiling: CompilerException: NullPointerException -> [Help 1]
Evaluation
The workaround delivered in Maven Compiler Plugin 3.10.1 appears to be incomplete, as the original problem can still be reproduced. Therefore, I conclude #235 is still needed at the present time.
|
interesting one...
|