These instructions describe how to build Weasis directly from the Git repository on any platform. For building Weasis from an IDE, see Weasis plug-in development guidelines.
To clone the repository, first install GIT and either clone using a graphical GIT client or directly from the command line using the command:
$ git clone https://github.com/nroduit/Weasis.git
The trunk is not a stable version and snapshot version is not retained in the cache for the web distribution (it means the files will be downloaded every time)
Check out a tag version to build a stable version, see the tag list.
$ git checkout <TAG_NAME>
$ mvn clean install
$ cd weasis-distributions $ mvn clean package -Dportable=true -P pack200
-P pack200: From 1.1.2 it is possible to use the compression pack200 that reduces jar size considerably. It is recommended to use the Oracle jdk with this option (openjdk can throw packging errors).
-Dportable=true: option for building the portable distribution (multi-platform standalone launchers)
For the WEB distribution using Java Webstart, it is required to sign jar files with your own certificate (by replacing values in the command below with your own values). A trust-worthy certificate from a certificate authority is now required to run Java Web Start applications. A self-signed certificate generate by keytool will always display a security warning message.
$ mvn clean package -Djarsigner.alias="your_alias" -Djarsigner.storepass="your_pwd" -Djarsigner.keystore="your_path/keystore" -Dportable=true -P pack200
Options for building the portable distribution.
$ mvn clean package -Dportable=true -DwindowsName=
Do not place the sources in a path that contains directories with blanks or national characters, the compilation of the win32 executable can fail.
The distribution files are located in: