1> 编译步骤参见官方 http://www.dcm4che.org/confluence/display/ee2/Building+dcm4chee
2> 为 ant 指定环境变量 ANT_HOME , 如 D:\yourPath\apache-ant-1.8.1
3> 在PATH中增加 ant 和 maven 的bin目录 ,如:D:\yourPath\apache-ant-1.8.1\bin;D:\yourPath\apache-maven-2.2.1\bin;
4> 编译工具最好使用指定版本,特别是FOP 必须是0.95,否则报错。
5> 编辑dcm4jboss-all下的 build.properties.default 另存为 build.properties。
5.1> 把${user.home}变量指定到自己工具的路径
5.2> docstore-version和infoset-version分别参看各自工程目录下的pom.xml文件
修改后的部分内容如下:
6> 先按步骤1编译其他工程,编译dcm4jboss-all前, 修改 dcm4jboss-all\dcm4jboss-build\build.xml 指定 dcm4che2-version 的值,要查看你支持哪些版本值,去 ${user.home}\.m2\repository\dcm4che\dcm4che-net 目录下查看,我用的是 2.0.26#Override with your dcm4che-1.4.x dist location
#dcm4che14.home=${user.home}/dcm4che14/build/dcm4che-1.4.30
dcm4che14.home=D:/yourPath/dcm4chee/dcm4che14/build/dcm4che-1.4.31
#Override with your XDoclet dist location
#xdoclet.home=${user.home}/xdoclet-1.2.3
xdoclet.home=D:/yourPath/xdoclet-1.2.3
#Override with your Cactus dist location
#cactus.home=${user.home}/cactus-1.8.1-bin
cactus.home=D:/yourPath/cactus-1.8.1-bin
#Override with your local Maven2 repository
m2.repos=${user.home}/.m2/repository
#Override with your JBoss dist location
#jboss.home=${user.home}/jboss-4.2.3.GA
jboss.home=D:/yourPath/jboss-4.2.3.GA
#Override with your FOP dist location
#fop.home=${user.home}/fop-0.95
fop.home=D:/yourPath/fop-0.95
#Override with the version of dcm4chee-docstore to use.
#docstore-version=1.0.2
docstore-version=1.0.3
#Override with the version of dcm4chee-infoset to use.
#infoset-version=1.0.2
infoset-version=1.0.3