This demo shows how to install a Maven-built Java application from source code using Jeka.
This example uses a Maven multi-module project. Users can install it on their computer as either a JVM application or a native executable.
Install as a JVM application:
jeka app: install repo=https://github.com/jeka-dev/demo-maven-multimoduleInstall as a native application:
jeka app: install repo=https://github.com/jeka-dev/demo-maven-multimodule runtime=NATIVERun the application:
demo-maven-multimoduleJust add the jeka.properties file to your project. This file tells Jeka which JDK to use and the build commands to run.
- app: Main application module
- share: Shared library module
To make this work, you need:
- Fat JAR support: The app/pom.xml uses the maven-shade-plugin to create a fat JAR for JVM mode
- Native image support: The app/pom.xml includes the native-maven-plugin to build native executables
- Maven wrapper: Included so the app can build on any computer, even without Maven installed