Tools
Minho provides several tools in order for you to easily create your runtime.
Basically, Minho tools can use minho-build.json
file describing the runtime.
Then, you can create different forms (distributions) for your runtime:
package
creates a directory containing all required resources for the runtime (exploded form). Then, you go in this directory and just launch the runtime withjava -jar minho-boot-xx.jar
jar
creates an uber jar packaging runtime resources in one archive. Then, you launch the runtime withjava -jar myruntime.jar
archive
creates a zip archive containing runtime resources and startup script. After extracting this archive, you can launch the runtime with./bin/minho.sh
You have different options to create the runtime.
minho-build.json
file
All Minho tools are using a runtime descriptor: minho-build.json
.
This file describe:
name
of the runtimeproperties
used to specify extra information to build the runtimedependencies
is the modules (libraries) to be included in the runtime (usingfile
,http
,mvn
URL)
Here's an example of minho-build.json
file:
{
"name": "my-runtime",
"properties": {
"include.transitive": "true"
},
"dependencies": [
"minho:minho-boot",
"mvn:commons-lang/commons-lang/2.6"
]
}
NB: minho-build.json
can be written by hand or can be generated by the minho-maven-plugin
for instance.
CLI
minho-build
is a command line to create the runtime based on minho-build.json
descriptor.
Installation
minho-build
CLI