Repository navigation
Releases
2.18.1
plexus-compiler 2.18.1 is a bug-fix release. It makes the Eclipse compiler honour <proc> when annotation processors are discovered from the class path, and picks up the latest plexus-utils and plexus-xml fixes. The compiler modules still require Java 8; plexus-compiler-javac-errorprone requires Java 21, as in 2.18.0.
✨ Highlights
<proc>none</proc>and<proc>only</proc>work with ECJ again.EclipseJavaCompilerpassed-proc:to ECJ only when a processor, processor path or processor module path was configured explicitly. With processors discovered from the class path, the setting was ignored, so ECJ could still try to load a processor listed inMETA-INF/servicesand fail withServiceConfigurationError. The option is now always passed (#529, fixes #528, thanks @RoiSoleil).- plexus-utils 4.2.0 and plexus-xml 3.1.1. plexus-xml 3.1.1 fixes an
ArrayIndexOutOfBoundsExceptionin the XML parser for a comment with an emoji or other supplementary character at the parser's buffer boundary. plexus-utils 4.2.0 makes its file deletion helpers safe around symbolic links (#538). - Parent POM 28. The build moves to the Plexus parent 28 (#537). The project site no longer has the Source Xref pages.
🐛 Bug Fixes
- Pass -proc option to ECJ without explicit annotation processors (#529) @RoiSoleil
🔧 Build
- Declare GITHUB_TOKEN permissions in workflows (#536) @slachiewicz
- Quote distribution key in matrix-exclude (#535) @slachiewicz
📦 Dependency updates
- Bump plexus-utils to 4.2.0 and plexus-xml to 3.1.1 (#538) @slachiewicz
- Bump org.codehaus.plexus:plexus from 27 to 28 (#537) @slachiewicz
- Bump eclipse.sisu.version from 1.1.1 to 1.1.2 (#534) @dependabot[bot]
- Bump org.apache.commons:commons-lang3 from 3.21.0 to 3.22.0 (#533) @dependabot[bot]
2.18.0
This release improves javac --release version handling and updates the Error Prone compiler integration for recent JDKs:
- Normalize
1.xrelease versions forjavac(#516): While-sourceand-targetaccept both1.8and8,javac --releaserejects1.xspellings (release version 1.8 not supported).JavacCompilernow maps1.5–1.8to5–8automatically so projects can derive<release>from an existing1.xtarget property without failure. - Error Prone 2.50.0 & JDK 27 compatibility (#517): Upgrades
plexus-compiler-javac-errorproneto Error Prone2.50.0(fixingJCCompilationUnit.endPositionsremoval on JDK 27,JDK-8372948). Because Error Prone 2.43+ requires a Java 21 runtime, theplexus-compiler-javac-errorpronemodule now requires Java 21 (all other compiler modules remain on Java 8). - Test harness JDK version detection (#518):
AbstractCompilerTestnow derives the running Java feature version dynamically viagetJavaFeatureVersion()instead of matching a fixed list of known JDK versions, fixing test execution on JDK 26+.
🚨 Removed
- Bump Error Prone to 2.50.0, requires Java 21 (#517) @slachiewicz
🚀 New features and improvements
- Accept the 1.x spelling for the javac release version (#516) @slachiewicz
📝 Documentation updates
- Drop the Source Xref menu item (#519) @slachiewicz
👻 Maintenance
- Use JUnit 5 in the AspectJ compiler IT (#531) @slachiewicz
- Remove redundant javaVersion property (#530) @slachiewicz
- Drop the Source Xref menu item (#519) @slachiewicz
- Derive test expectations from the JDK feature version (#518) @slachiewicz
🔧 Build
- Allow running the release drafter by hand (#526) @slachiewicz
- Keep Dependabot off plexus-xml 4.x and SLF4J 2.x (#522) @slachiewicz
📦 Dependency updates
- Bump com.google.guava:guava from 33.7.1-jre to 33.8.0-jre (#525, #532) @dependabot[bot]
- Bump eclipse.sisu.version from 1.1.0 to 1.1.1 (#527) @dependabot[bot]
- Bump org.apache.commons:commons-lang3 from 3.20.0 to 3.21.0 (#523) @dependabot[bot]
- Bump Error Prone to 2.50.0, requires Java 21 (#517) @slachiewicz
2.17.1
🐛 Bug Fixes
- Restore the -Xlint category on in-process javac warnings (#515) @slachiewicz
- Skip blank annotation processor names in javac and eclipse (#513) @slachiewicz
- Fix aspectj-compiler IT for Maven 4 stdout prefixing (#509) @ascheman
📝 Documentation updates
- Stop pinning a version in the README snippet (#507) @slachiewicz
🔧 Build
- Point the SCM URLs at HTTPS (#506) @slachiewicz
- Draft the version the labels imply, not always a patch (#505) @slachiewicz
📦 Dependency updates
- Bump org.eclipse.jdt:ecj from 3.46.0 to 3.46.100 (#514) @dependabot[bot]
- Bump com.google.guava:guava from 33.6.0-jre to 33.7.1-jre (#511) @dependabot[bot]
2.17.0
javac diagnostics come through more faithfully in this release: multi-line notes are forwarded rather
than swallowed, warnings are counted by kind instead of by subtraction, output no classifier recognised
is now reported instead of dropped, and a forked javac no longer reports the diagnostic column one off.
Argument files are quoted (#484). The modules also declare automatic module names, and the compiler now
depends on the resolver directly rather than on maven-core. That is why this is 2.17.0 and not 2.16.3.
🚀 New features and improvements
- Establish automatic module names (#492) @slachiewicz
- Quote javac argument files (#484) @wilx
🐛 Bug Fixes
- Forward javac notes, including the multi-line ones (#496) @slachiewicz
- Report javac output that no classifier recognised (#494) @slachiewicz
- Fix off by one column in diagnostic when using "forked" execution of javac. (#483) @wilx
👻 Maintenance
- Bump remoting in the MCOMPILER-346 reproducer (#501) @slachiewicz
- Remove the Maven and commons-lang dependencies from the compiler TCK (#499) @slachiewicz
- Depend on the resolver directly instead of maven-core (#498) @slachiewicz
- Count warnings by kind, not by subtraction (#497) @slachiewicz
- Drop two properties the build does not need (#495) @slachiewicz
- Drop the managed plexus-component-annotations entry (#493) @slachiewicz
- Rewrite README with usage, status and version guidance (#491) @slachiewicz
- Restore the document metadata dropped when the page was ported (#489) @slachiewicz
- Format the converted site page to the project's spotless rules (#488) @slachiewicz
- Port the site documentation from APT to Markdown (#487) @slachiewicz
- Remove Hamcrest dependency and replace with JUnit assertions (#477) @slachiewicz
🔧 Build
- Update parent to plexus 27 (#502) @slachiewicz
📦 Dependency updates
17 changes
- Bump plexus-utils to 4.1.0 (#504) @slachiewicz
- Bump the plexus dependencies released today (#503) @slachiewicz
- Remove the Maven and commons-lang dependencies from the compiler TCK (#499) @slachiewicz
- Depend on the resolver directly instead of maven-core (#498) @slachiewicz
- Update parent POM to 26 (#490) @slachiewicz
- Bump org.apache.maven:maven-core from 3.6.3 to 3.8.1 in /plexus-compiler-test (#486) @dependabot[bot]
- Bump eclipse.sisu.version from 1.0.1 to 1.1.0 (#485) @dependabot[bot]
- Bump org.eclipse.jdt:ecj from 3.45.0 to 3.46.0 (#481) @dependabot[bot]
- Bump eclipse.sisu.version from 1.0.0 to 1.0.1 (#482) @dependabot[bot]
- Bump org.apache.maven.plugins:maven-invoker-plugin from 3.10.0 to 3.10.1 (#480) @dependabot[bot]
- Bump org.apache.maven.plugins:maven-invoker-plugin from 3.9.1 to 3.10.0 (#479) @dependabot[bot]
- Bump com.google.guava:guava from 33.5.0-jre to 33.6.0-jre (#478) @dependabot[bot]
- Bump commons-lang:commons-lang from 2.0 to 2.6 (#476) @dependabot[bot]
- Bump org.eclipse.jdt:ecj from 3.44.0 to 3.45.0 (#473) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-utils from 4.0.2 to 4.0.3 in /plexus-compiler-manager (#475) @dependabot[bot]
- Bump eclipse.sisu.version from 0.9.0.M4 to 1.0.0 (#472) @dependabot[bot]
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.14.1 to 3.15.0 (#471) @dependabot[bot]
2.16.2
🐛 Bug Fixes
- Fixed ConcurrentModificationException on compilerArguments (#466) @slachiewicz
📦 Dependency updates
- Bump org.codehaus.plexus:plexus from 24 to 25 (#468) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-testing from 2.0.2 to 2.1.0 (#469) @dependabot[bot]
- Bump actions/checkout from 4 to 6 (#467) @dependabot[bot]
- Bump org.eclipse.jdt:ecj from 3.43.0 to 3.44.0 (#465) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-testing from 2.0.1 to 2.0.2 (#464) @dependabot[bot]
2.16.1
🐛 Bug Fixes
- Fix detecting java version for JDK 1.8 (#462) @slawekjaranowski
- #420: fix detection of java version when JAVA_TOOL_OPTIONS is set (#426) @glhez
📦 Dependency updates
- Bump actions/checkout from 5 to 6 (#463) @dependabot[bot]
2.16.0
🚀 New features and improvements
- Added 3 MSVC csharp compiler options (#436) @MarcMazas
- Bump ErrorProne to 2.37.0 - requires Java 17 (#432) @slachiewicz
🐛 Bug Fixes
- Fix Zip Slip vulnerability in JAR extraction (#453) @copilot-swe-agent[bot]
- Fixed wrong excludes management (#444) @pzygielo
👻 Maintenance
- Replace
FileUtils.deleteDirectory(File)with JDK provided API (#461) @slachiewicz - chore: remove junit3 references (#458) @sparsick
- Update Java version checks to include JDK 25 (#452) @slachiewicz
- Include JDK 24 in CI (#433) @slachiewicz
- Apply spotless re-formatting (#429) @ascheman
- Create codeql.yml (#402) @slachiewicz
- Pass tests with Java 22 and 23 (#401) @slachiewicz
📦 Dependency updates
- Bump ErrorProne to 2.37.0 - requires Java 17 (#432) @slachiewicz
- Bump com.google.guava:guava to 33.5.0-jre (#449) @dependabot[bot]
- Bump eclipse.sisu.version from 0.9.0.M3 to 0.9.0.M4 (#438) @dependabot[bot]
- Bump org.codehaus.plexus:plexus to 24 (#456) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-testing to 2.0.1 (#460) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-utils to 4.0.2 (#414) @dependabot[bot]
- Bump org.codehaus.plexus:plexus-xml from 3.0.0 to 3.0.1 (#387) @dependabot[bot]
- Bump org.eclipse.jdt:ecj to 3.43.0 (#448) @dependabot[bot]
- Bump org.hamcrest:hamcrest from 2.2 to 3.0 (#399) @dependabot[bot]
2.15.0
🚀 New features and improvements
- Allow to override useUnsharedTable compiler argument (#373) @slawekjaranowski
- Lazy providers and better error reporting (#361) @kriegaex
- Only use "-release" parameter with javac 9+ (#362) @kwin
- Correctly determine the version of the underlying javac tool (#357) @kwin
- Use a TreeSet instead of HashSet to get consistent ordering of results (#352) @laeubi
🐛 Bug Fixes
- Cleanup dependencies (#369) @slachiewicz
- Path.relativize() may throw exception if source and build directories are on different Windows drives (#368) @slachiewicz
- Fix ECJ not using annotation processor when defined via processorpath (#350) @famod
- Report "Error occurred during initialization of VM" as error (#343) @olamy
📦 Dependency updates
- Bump org.codehaus.plexus:plexus from 16 to 17 (#372) @dependabot
- Bump com.google.errorprone:error_prone_core from 2.24.1 to 2.25.0 (#367) @dependabot
- Require Maven 3.6.3+ (#353) @slachiewicz
- Bump com.google.errorprone:error_prone_core from 2.24.0 to 2.24.1 (#348) @dependabot
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.12.0 to 3.12.1 (#345) @dependabot
- Bump com.google.errorprone:error_prone_core from 2.23.0 to 2.24.0 (#341) @dependabot
- Bump org.codehaus.plexus:plexus-component-annotations from 2.1.1 to 2.2.0 (#344) @dependabot
👻 Maintenance
- Bump project version to 2.15.0-SNAPSHOT (#370) @slawekjaranowski
- Use LocalRepositoryManager for resolving artifacts paths in tests (#366) @slawekjaranowski
2.14.2
🐛 Bug Fixes
- Return empty list for not existing source root location (#338) @slawekjaranowski
- Improve javac error output parsing - Fix #336 (#337) @kriegaex
📦 Dependency updates
- Bump org.apache.maven.plugins:maven-compiler-plugin from 3.11.0 to 3.12.0 (#339) @dependabot
- Bump com.google.guava:guava from 32.1.3-jre to 33.0.0-jre (#340) @dependabot
- Bump org.codehaus.plexus:plexus-testing from 1.2.0 to 1.3.0 (#335) @dependabot
2.14.1
🐛 Bug Fixes
- Restore AbstractCompiler#getLogger() method (#334) @slawekjaranowski