These instructions describe how to build Weasis directly from the Subversion source repository on any platform. For building Weasis with an IDE, see Plug-in Development Guidelines.
Prerequisites
- Subversion (SVN), one of the following client:
- Subversion - The core system (server, cli client, libs)
- Subversive - SVN Team Client (Eclipse plugin)
- TortoiseSVN - Handy SVN client for Windows systems
- JDK 6 or higher (Sun or OpenJDK)
- Maven 2.2 or higher (http://maven.apache.org/guides/index.html)
| If your computer is behind a proxy server, configure maven. |
Building Weasis from released plug-ins
Check out the last tag version (below it is 1.1.1). "weasis-distributions" allows to build the different distributions. This method does not compile the plug-ins from source, but only downloads through Maven the necessary plug-ins (binaries). For building Weasis from source see next item.
svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/weasis/weasis_framework/tags/weasis-framework-1.1.1/weasis-distributions
Then follow the instructions [Building Weasis Distributions].
Building Weasis from source
Getting the Source
To check out the code, first install Subversion and either checkout the trunk branch using a graphical Subversion client (such as TortoiseSVN) or directly from the command line using the command:
svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/weasis/weasis_framework/trunk weasis-framework
This command will copy the current development code (the "trunk") into a local directory named weasis-framework.
Note: Sources can also be browsed online
| The trunk is not a stable version |
Building all Plug-ins
- Go in the weasis-framework directory
cd weasis-framework
- Compile and install all the plug-ins in the local Maven repository
mvn clean install
Building Weasis Distributions
- Requires to install all the plug-ins in the local Maven repository (see above Building all Plug-ins).
cd weasis-distributions mvn clean package
| For the WEB distribution For using Weasis through Java Webstart, it is required to sign jar files with your own certificate (replace values in the command below by your own values). You can generate one with keytool. The parameters must be placed in the maven user setting or has to be the options in the Maven command: mvn clean package -Djarsigner.alias="your_alias" -Djarsigner.storepass="your_pwd" -Djarsigner.keystore="/etc/keystore" |
- Add the "-Dportable=true" option for building the portable distribution (cdrom or removable device).
mvn clean package -Dportable=true

Possible issue on 64 bits system
Requires to install the 32 bits compatibility libraries to build the windows executable.
On Linux: ia32-libs
- The distribution files are located in:
- target/web_dist/
- target/portable-dist/