org.codehaus.plexus:plexus-compiler (pom packaging, inheriting the plexus parent) is a uniform
API over several Java compilers that maven-compiler-plugin selects with its <compilerId>. The
reactor contains plexus-compiler-api, plexus-compiler-manager, plexus-compiler-test,
plexus-compilers (the implementations) and plexus-compiler-its.
- Building the reactor needs JDK 17 or newer (an enforcer rule in the root POM). Main code targets
Java 8 (
javaVersion8 from the parent), except the modules that set their ownjavaVersion: the Eclipse and AspectJ compilers use 17, and the Error Prone compiler andplexus-compiler-itsuse 21. Keep the requirements inREADME.mdand the module site pages in step with those values. mvn verifybuilds the reactor. CI calls the sharedcodehaus-plexus/.githubbuild workflow withverify javadoc:javadoc, andmaven.ymlhere excludes JDK 8 and 11 from its matrix and adds several JDK distributions.- Run
mvn spotless:applyon JDK 17 to 21 before pushing, or the formatting check fails. plexus-compiler-itsruns the projects insrc/main/itthroughmaven-invoker-plugin(install,runandverifygoals, averify.groovypost-build hook and its own settings file); each project runsclean test-compile. The projects are test fixtures: keep them as they are unless you are changing what they cover. On GitHub Actions theci-skip-itsprofile setsinvoker.skip, andci-run-itsturns it off for the Linux, JDK 21 cell only, so the ITs run once per build (they download from Central, and running them in every cell got HTTP 429). A local build always runs them.- The parent POM pins the AspectJ, Error Prone and Eclipse Sisu versions used by the compiler implementations in properties; change them there.
A change that users or contributors can notice ships with the documentation it affects, in the same pull request. A refactor with no visible effect needs none.
- A compiler implementation added, removed or given a new JDK or Maven requirement: its
src/site/markdown/index.md, the module list in the rootsrc/site/markdown/index.md, and the Modules and Requirements sections ofREADME.md. - API changes in
plexus-compiler-apiorplexus-compiler-manager: the Javadoc, which the site publishes. ACompilerConfigurationoption, or a change in how a compiler maps it to command-line arguments, is described on the option itself and on that compiler's module page. - A page added or removed: the
site.xmlof that module. - How to build, test or release:
README.md. - A new convention, build gate or IT fixture: this file.