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 for building and deploying bundles (http://maven.apache.org/guides/index.html)
Building Weasis from released plug-ins
| Not yet available This method will available after the 1.0.6 release. |
Check out the last tag version (below it is 1.0.6). "weasis-framework-builder" builds a web distribution (weasis.war and weasis.zip, to be placed on a web server).
svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/weasis/weasis_framework/tags/weasis-framework-1.0.6/weasis-builder/weasis-framework-builder
- For using Weasis through Java Webstart, it is required to sign jar files with your own certificate. You can generate one with keytool.
cd weasis-framework-builder mvn clean package -Djarsigner.alias="your_alias" -Djarsigner.storepass="your_pwd" -Djarsigner.keystore="/etc/keystore"
- The distribution files are located in the target/dist folder.
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
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).
- For using Weasis through Java Webstart, it is required to sign jar files with your own certificate. You can generate one with keytool.
cd weasis-framework-builder mvn clean package -Djarsigner.alias="your_alias" -Djarsigner.storepass="your_pwd" -Djarsigner.keystore="/etc/keystore"
- The distribution files are located in the target/dist folder.