准备工作:
1.apache-ofbiz-10.04 下载地址:http://ofbiz.apache.org/;
2.JDK安装,设置$JAVA_HOME为JDK的地址;
3.安装Ant;
开始:
1.解压ofbiz
apache-ofbiz-10.04解压到一个目录,例如在/home/nie/ofbiz/下;
2.编译ofbiz
打开终端,进入到目录/home/nie/ofbiz/下,
cd /home/nie/ofbiz/apache-ofbiz-10.04/
* 执行ant脚本
./ant run-install
因为在目录之下有一个build.xml文件,其编译过程基本上要调用所有的目录下的ant文件,整体上达到全部编译的效果,内容如下:
<target name="build" depends="ofbiz-init"> <echo message="[build] ========== Start Building (Compile) =========="/> <subant inheritall="false"> <filelist dir="." files="framework/build.xml"/> </subant> <subant inheritall="false" failonerror="${applications.present}"> <filelist dir="." files="applications/build.xml"/> </subant> <subant inheritall="false" failonerror="${specialpurpose.present}"> <filelist dir="." files="specialpurpose/build.xml"/> </subant> <subant inheritall="false"> <fileset dir="${basedir}/hot-deploy" casesensitive="no"> <exclude name="disabled/**"/> <include name="*/build.xml"/> </fileset> </subant> <antcall target="clean-svninfo"></antcall> <echo message="[build] ========== Done Building (Compile) =========="/> </target>
3. 使用内置tomcat,内置apache Derby(java database)运行ofbiz:
./startofbiz.sh
4.打开浏览器访问地址:
ofbiz电子商务网址:http://127.0.0.1:8080/ecommerce/
ofbiz webtool:https://127.0.0.1:8443/webtools
http://www.qi788.com推荐的
5.可以研究了,在线问答平台万里长征迈出了第一步~