Build Requirements
In order to build the components of the dcm4chee archive application you will need to download and install:
- Ant 1.7.x http://ant.apache.org/
- XDoclet 1.2.3 http://xdoclet.sourceforge.net/
- Apache FOP 0.20.5 http://xmlgraphics.apache.org/fop/ (use 0.20.5 version, not newer)
- Jakarta Cactus 1.8.0 http://jakarta.apache.org/cactus/ (only needed to build the test suite for dcm4jboss-ejb, not needed to build the application)
- JBoss 4.2.3 GA http://labs.jboss.com/jbossas/downloads/
- Maven 2.0.9 http://maven.apache.org/
In addition, you'll need the dcm4chee source code. In order to create the dcm4chee source directories, check out dcm4jboss-all from SVN:
svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4che14/trunk dcm4che14 svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/dcm4chee-arr/trunk dcm4chee-arr svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/dcm4chee-audit/trunk dcm4chee-audit svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/dcm4chee-docstore/tags/DCM4CHEE_XDS_1_0_0 dcm4chee-docstore svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/dcm4chee-xds-infoset/tags/DCM4CHEE_XDS_1_0_0 dcm4chee-xds-infoset svn co https://dcm4che.svn.sourceforge.net/svnroot/dcm4che/dcm4chee/dcm4chee-arc/trunk dcm4jboss-all
Build Dcm4che14
cd to the dcm4che14 checkout directory
ant
Build Dcm4chee-arr
cd to the dcm4chee-arr checkout directory
mvn install
Build Dcm4chee-audit
cd to the dcm4chee-audit checkout directory
mvn install
Build Dcm4chee-docstore
cd to the dcm4chee-docstore checkout directory
mvn install
Build Dcm4chee-xds-infoset
cd to the dcm4chee-xds-infoset checkout directory
mvn install
Build Instructions
Create an environment variable pointing to the Ant home directory (ANT_HOME) and add the $ANT_HOME/bin directory to your PATH.
The build scripts dcm4jboss-all/dcm4jboss-xxx/build.xml assumes following locations of XDoclet, JBoss, Apache FOP, Jakarta Cactus and dcm4che14:
xdoclet.home=${user.home}/xdoclet-1.2.3
jboss.home=${user.home}/jboss-4.2.3.GA
fop.home=${user.home}/fop-0.20.5
cactus.home=${user.home}/cactus-1.8.0-bin
m2.repos=${user.home}/.m2/repository
dcm4che14.home=${user.home}/dcm4che14/build/dcm4che-1.4.22
| 3rd Party Dependency Paths Each of the dcm4chee projects contains a file called build.properties.default in its root directory. These files contain the paths to dependencies to third party libraries that the projects need in order to compile. Copy each build.properties.default file to build.properties in the same directory. Edit these files and put in the necessary path information so that the compilation process can find the dependencies. The build scripts will automatically look for the build.properties files. Alternatively, you may combine all of the build.properties entries into a single build.properties file in the root dcm4jboss-all directory in order to avoid editing so many files. |
Change to the working build directory:
cd dcm4jboss-all/dcm4jboss-build
and invoke:
ant dist
to build all components and pack them in binary distribution packages:
target/dcm4chee-db2-%version%.zip
target/dcm4chee-firebird-%version%.zip
target/dcm4chee-hsql-%version%.zip
target/dcm4chee-mssql-%version%.zip
target/dcm4chee-mysql-%version%.zip
target/dcm4chee-oracle-%version%.zip
target/dcm4chee-psql-%version%.zip
Comments (3)
Feb 11, 2009
teknoGeek says:
I've followed your instructions and I keep trying to invoke ant dist and keep ge...I've followed your instructions and I keep trying to invoke ant dist and keep getting the error
# ant dist
... <snip>
ejb-jdbc-jar:
[jar] Building jar: /root/dcm4jboss-all/dcm4jboss-ejb/target/firebird/lib/dcm4chee-jdbc-firebird.jar
init:
prepare:
compile:
jar:
init:
compile:
jar:
compile:
jar:
compile:
[javac] Compiling 36 source files to /root/dcm4jboss-all/dcm4jboss-rid/target/classes
BUILD FAILED
/root/dcm4jboss-all/dcm4jboss-build/build.xml:46: The following error occurred while executing this line:
/root/dcm4jboss-all/dcm4jboss-rid/build.xml:105: /root/.m2/repository/dcm4che/dcm4chee-docstore-store/0.0.2 not found.
Total time: 9 seconds
Any hints on how to rectify?
Apr 11, 2009
Adrian Blakey says:
To fix this: BUILD FAILED /root/dcm4jboss-all/dcm4jboss-build/build.xml:46: The...To fix this:
BUILD FAILED
/root/dcm4jboss-all/dcm4jboss-build/build.xml:46: The following error occurred while executing this line:
/root/dcm4jboss-all/dcm4jboss-rid/build.xml:105: /root/.m2/repository/dcm4che/dcm4chee-docstore-store/0.0.2 not found.
cd /root/dcm4jboss-all/dcm4jboss-rid
cp build.properties.default build.properties
edit build.properties
add a line that looks like "docstore-version=0.0.3-SNAPSHOT"
You'll find it also gives up later in dcm4jboss-web - do something similar and add the line "infoset-version=0.0.3-SNAPSHOT"
May 08, 2009
Damien Evans says:
I added those properties to the build.properties.default files. See http://www....I added those properties to the build.properties.default files. See http://www.dcm4che.org/jira/browse/DCMEE-1176