COMPIERE2.5.3b源代码部署步骤

喻昀
2023-12-01

COMPIERE2.5.3b源代码部署步骤

1.把取得的源代码解压缩到一个文件夹里面,比如compiere-all

2.根据下面提供的.project和.classpath文件,把他们拷贝到compiere-all文件夹中
3.在Eclipse里面使用向导新建一个项目,比如compiere-src,并把这个项目的本地目录指向文件夹compiere-all.(创建的项目会有错误提示,这里可以先不管它).
4.进入utils_dev 目录,将myDevEnvTemplate.bat 文件复制一份副本并改为myDevEnv.bat.
! 修改 SET JAVA_HOME= XXXX 为本机的JAVA_HOME路径
!! 修改 SET COMPIERE_SOURCE= XXXXX 为本机的Compiere源代码目录.
5.运行utils_dev 目录下的RUN_build.bat 文件,启动ANT 编译过程.
6.编译程序会在C:盘生成一个Compiere2这个文件夹,把这个文件夹的lib子文件夹覆盖粘贴到compiere-all目录下.
7.在Eclipse中刷新项目,并把lib文件夹中的jar包添加到构建路径中.

用到的两个文件:
.project

 <?xml version="1.0" encoding="UTF-8" ?>

- < projectDescription >
  < name > C-253b </ name >
  < comment />
- < projects >
  < project > base </ project >
  < project > looks </ project >
  < project > client </ project >
  < project > dbPort </ project >
  < project > extend </ project >
  < project > install </ project >
  < project > interfaces </ project >
  < project > jboss </ project >
  < project > print </ project >
  < project > server </ project >
  < project > serverApps </ project >
  < project > serverRoot </ project >
  < project > tools </ project >
  </ projects >
- < buildSpec >
- < buildCommand >
  < name > org.eclipse.jdt.core.javabuilder </ name >
  < arguments />
  </ buildCommand >
  </ buildSpec >
- < natures >
  < nature > org.eclipse.jdt.core.javanature </ nature >
  </ natures >
  </ projectDescription >
 

.classpath

<?xml version="1.0" encoding="UTF-8" ?>
- < classpath >
  < classpathentry kind =" src " path =" base/src " />
  < classpathentry kind =" src " path =" dbPort/src " />
  < classpathentry kind =" src " path =" client/Src " />
  < classpathentry kind =" src " path =" extend/src " />
  < classpathentry kind =" src " path =" install/src " />
  < classpathentry kind =" src " path =" interfaces/src " />
  < classpathentry kind =" src " path =" looks/src " />
  < classpathentry kind =" src " path =" print/src " />
  < classpathentry kind =" src " path =" serverApps/src/main/servlet " />
  < classpathentry kind =" src " path =" serverRoot/src/main/server " />
  < classpathentry kind =" src " path =" sqlj/src " />
  < classpathentry kind =" src " path =" tools/Src " />
  < classpathentry kind =" lib " path =" lib/compiereRoot.jar " />
  < classpathentry kind =" lib " path =" data/seed/Compiere.jar " />
  < classpathentry kind =" lib " path =" jboss/server/compiere/lib/jboss.jar " />
  < classpathentry kind =" lib " path =" lib/jPDF.jar " />
  < classpathentry kind =" lib " path =" tools/lib/activation.jar " />
  < classpathentry kind =" lib " path =" tools/lib/ant.jar " />
  < classpathentry kind =" lib " path =" tools/lib/ant-commons-net.jar " />
  < classpathentry kind =" lib " path =" tools/lib/ant-launcher.jar " />
  < classpathentry kind =" lib " path =" tools/lib/j2ee.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jconn3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jstl.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jTDS3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jtds-1.0.jar " />
  < classpathentry kind =" lib " path =" tools/lib/junit.jar " />
  < classpathentry kind =" lib " path =" tools/lib/log4j.jar " />
  < classpathentry kind =" lib " path =" tools/lib/mail.jar " />
  < classpathentry kind =" lib " path =" tools/lib/ocrs12.jar " />
  < classpathentry kind =" lib " path =" tools/lib/ojdbc14.jar " />
  < classpathentry kind =" lib " path =" tools/lib/standard.jar " />
  < classpathentry kind =" lib " path =" tools/lib/Verisign.jar " />
  < classpathentry kind =" con " path =" org.eclipse.jdt.launching.JRE_CONTAINER " />
  < classpathentry kind =" lib " path =" jboss/server/compiere/lib/jmx-adaptor-plugin.jar " />
  < classpathentry kind =" lib " path =" jboss/server/compiere/lib/jnpserver.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/commons-httpclient.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/commons-logging.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/concurrent.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/getopt.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/gnu-regexp.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/jboss-common.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/jboss-jmx.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/jboss-system.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/log4j-boot.jar " />
  < classpathentry kind =" lib " path =" jboss/lib/webdavlib.jar " />
  < classpathentry kind =" lib " path =" lib/CCTools.jar " />
  < classpathentry kind =" lib " path =" lib/Compiere.jar " />
  < classpathentry kind =" lib " path =" lib/compiereApps.jar " />
  < classpathentry kind =" lib " path =" lib/CSTools.jar " />
  < classpathentry kind =" lib " path =" lib/jboss.jar " />
  < classpathentry kind =" lib " path =" lib/oracle.jar " />
  < classpathentry kind =" lib " path =" lib/ibm.jar " />
  < classpathentry kind =" lib " path =" lib/sqlServer.jar " />
  < classpathentry kind =" lib " path =" lib/sybase.jar " />
  < classpathentry kind =" lib " path =" tools/lib/bsh-1.3.0.jar " />
  < classpathentry kind =" lib " path =" tools/lib/commons-collections-3.1.jar " />
  < classpathentry kind =" lib " path =" tools/lib/commons-logging.jar " />
  < classpathentry kind =" lib " path =" tools/lib/commons-net-1.4.0.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jpayment.jar " />
  < classpathentry kind =" lib " path =" tools/lib/jsp-api.jar " />
  < classpathentry kind =" lib " path =" tools/lib/servlet-api.jar " />
  < classpathentry kind =" lib " path =" tools/lib/xdoclet-1.2.3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/xdoclet-ejb-module-1.2.3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/xdoclet-web-module-1.2.3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/xdoclet-xdoclet-module-1.2.3.jar " />
  < classpathentry kind =" lib " path =" tools/lib/xjavadoc-1.1.jar " />
  < classpathentry kind =" lib " path =" client/lib/Serial.jar " />
  < classpathentry kind =" lib " path =" client/lib/RXTXcomm.jar " />
  < classpathentry kind =" output " path =" bin " />
  </ classpath >
————————————————
版权声明:本文为CSDN博主「compierefans」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/compierefans/article/details/803055

 类似资料: