Comments (7)
@md-5 report an error and then go dig in the jdk16 update to find the culprit? Three cheers to you!
Yup, I'll integrate this. I'm now happy we didn't get around to releasing 1.18.20 on thursday, I'll make sure this fix will make it (via your PR probably :P).
@awhitford - yeah, the edge build already has it, though with an annoyance as md-5 pointed out which I will fix soon. Relase 1.18.20 is imminent. If you can find your way to keep an eye out for a new release this week, that'd be great!
from lombok.maven.
Arguably lombok should be calling LombokProcessor.addOpensForLombok()
in the Delombok static initializer rather than main
from lombok.maven.
Opened PR to lombok
from lombok.maven.
When trying to compile with Java 16, this is what I get:
Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project lombok-maven-plugin: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x8cc5602) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x8cc5602 -> [Help 1]
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.
Error:
Error: For more information about the errors and possible solutions, please read the following articles:
Error: [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Error:
Error: After correcting the problems, you can resume the build with the command
Error: mvn -rf :lombok-maven-plugin
Error: Process completed with exit code 1.
According to projectlombok/lombok#2681, it appears that a Java 16 compatible version of Lombok will be released soon.
from lombok.maven.
Legendary, thanks :)
Closing this as the new lombok version should not need any changes to the Maven plugin
from lombok.maven.
Please pardon my ignorance, but should this be working with the current Lombok edge release? If so, there still seems to be a bug somewhere:
[ERROR] Failed to execute goal org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok (delombok) on project *REDACTED*: Execution delombok of goal org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok failed: An API incompatibility was encountered while executing org.projectlombok:lombok-maven-plugin:1.18.18.0:delombok: java.lang.IllegalAccessError: class lombok.delombok.Delombok (in unnamed module @0x34d480b9) cannot access class com.sun.tools.javac.tree.JCTree$JCCompilationUnit (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.tree to unnamed module @0x34d480b9
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.projectlombok:lombok-maven-plugin:1.18.18.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/tg/.m2/repository/org/projectlombok/lombok-maven-plugin/1.18.18.0/lombok-maven-plugin-1.18.18.0.jar
[ERROR] urls[1] = file:/home/tg/.m2/repository/org/projectlombok/lombok/edge-SNAPSHOT/lombok-edge-SNAPSHOT.jar
[ERROR] urls[2] = file:/home/tg/.m2/repository/org/apache/commons/commons-lang3/3.8.1/commons-lang3-3.8.1.jar
[ERROR] urls[3] = file:/home/tg/.m2/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
[ERROR] urls[4] = file:/home/tg/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] -----------------------------------------------------
Thanks,
Thilo
from lombok.maven.
@ginkel We are waiting on a fresh Lombok release that supports Java 16. It sounds like it is imminent.
from lombok.maven.
Related Issues (20)
- Delomboking Fails with Multiple Source Folders HOT 3
- Plugin should not log "Skipping Delombok" with WARN level HOT 5
- Plugin moves annotations HOT 1
- Delombok plugin fails with Java 20+ HOT 1
- StandardException not supported
- Java 20: Unable to delombok: InvocationTargetException: var HOT 2
- Delombok fails on Java 21 HOT 6
- No lombok-maven-plugin build for lombok 1.18.30, breaks JDK 21 delombok builds HOT 2
- support multiple sourceDirectory HOT 1
- broken link on the plugin page HOT 2
- build fails as compiler version from properties is ignored, depends on maven-compiler-plugin HOT 2
- Plugin on central repositories HOT 3
- Minimum Java Requirements (Poll) HOT 1
- The POM violates the code style. Please format it by running `mvn tidy:pom`. HOT 4
- the travis CI is borked for Java 7-9 HOT 4
- newInstance() in java.lang.Class has been deprecated
- Lombok maven plugin error: module not found for every dependency specified in module-info.java
- Website unreachable HOT 2
- Delombok fails on JDK 17 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lombok.maven.