This repository builds artifacts for the standalone jdk.compiler, specifically contents of arbitrary java.home directories, specifically the contents of lib/modules and lib/ct.sym, which are required by the standalone compiler.
This allows a very simple packaging of all compiler resources as simple Maven artifacts.
By default, the require build utilities are built, and a rather empty main jar is created:
mvn clean install
Run the following commands to build a jar containing all required contents from a given java.home directory:
mvn clean install -Dclassifier=custom -Djavahome.dir=/Library/Java/JavaVirtualMachines/jdk-11.0.20.1+1/Contents/Home
(adjust the path accordingly, and change the value for "classifier" as well)
To release "jdk11" and "jdk21" artifacts (for jdk.compiler.standalone
), use the following:
mvn clean install -Djdk11.home=/path/to/java11home -Djdk21.home=/path/to/java21home
When working in Eclipse, close the project "standalone-home", otherwise workspace resolution may not find the right jar.
- Provide both
jdk11
andjdk21
artifacts - Add GraalVM native-image support
- Initial release
This repository has been packaged by Christian Kohlschütter.
The code itself carries the original license, GNU General Public License version 2 only, subject to the "Classpath" exception as provided in he LICENSE file that accompanies the original code.