Skip to content

Bash script for generating a custom jlink JRE from a maven project.

Notifications You must be signed in to change notification settings

t-burch/build-jre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

BuildJRE Usage Guide

The following steps will guide you on how to use BuildJRE to create a customized slim version of the JRE for your Maven-based project:

  1. Download the BuildJRE script.
  2. Place the script in the root directory of your Maven project, alongside the pom.xml file.
  3. Add the property <java.version>Your Version</java.version> to the properties section of your pom.xml.
    Note that maven.compiler.source/target can also use the value of java.versionthrough ${java.version}.
  4. Build your project using the mvn package command or any similar command that generates a single JAR file in the /target/ directory.
  5. Run the BuildJRE script. It will create a customized slim version of the JRE, which will be located in the /custom-jre/ directory.
  6. If execution of your project using the custom JRE fails, add the unresolved dependencies to a file named .unresolvable.deps, with each dependency (e.g., jdk.management.agent) on a separate line.
  7. After modifying the .unresolvable.deps file, rerun the BuildJRE script.

By following these steps, you can easily create a customized slim version of the JRE for your Maven project, which can improve the performance of your application and reduce its overall size.

About

Bash script for generating a custom jlink JRE from a maven project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages