gradle ofbiz 16 开发环境搭建
来源:互联网 发布:pano2vr player.js 编辑:程序博客网 时间:2024/06/01 09:20
1.安装jdk
2.配置jdk环境变量
3.eclipse 安装svn 插件
4.svn下载Apache OFBiz 16.11.01 源码
5.下载gradle3.3 插件 存放目录C:\Users\Administrator\.gradle\wrapper\dists
6.配置mysql 数据库所需jar包 修改build.gradle 加入compile 'mysql:mysql-connector-java:5.1.24'
7.修改数据库文件默认配置
<delegator name="default" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" distributed-cache-clear-enabled="false"> <group-map group-name="org.apache.ofbiz" datasource-name="localmysql"/> <group-map group-name="org.apache.ofbiz.olap" datasource-name="localmysqlolap"/> <group-map group-name="org.apache.ofbiz.tenant" datasource-name="localmysqltenant"/> </delegator> <delegator name="default-no-eca" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main" entity-eca-enabled="false" distributed-cache-clear-enabled="false"> <group-map group-name="org.apache.ofbiz" datasource-name="localmysql"/> <group-map group-name="org.apache.ofbiz.olap" datasource-name="localmysqlolap"/> <group-map group-name="org.apache.ofbiz.tenant" datasource-name="localmysqltenant"/> </delegator> <!-- be sure that your default delegator (or the one you use) uses the same datasource for test. You must run "gradlew loadDefault" before running "gradlew testIntegration" --> <delegator name="test" entity-model-reader="main" entity-group-reader="main" entity-eca-reader="main"> <group-map group-name="org.apache.ofbiz" datasource-name="localmysql"/> <group-map group-name="org.apache.ofbiz.olap" datasource-name="localmysqlolap"/> <group-map group-name="org.apache.ofbiz.tenant" datasource-name="localmysqltenant"/> </delegator>
<datasource name="localmysql" helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO" field-type-name="mysql" check-on-start="true" add-missing-on-start="true" check-pks-on-start="false" use-foreign-keys="true" join-style="ansi-no-parenthesis" alias-view-columns="false" drop-fk-use-foreign-key-keyword="true" table-type="InnoDB" character-set="utf8" collate="utf8_general_ci"> <read-data reader-name="tenant"/> <read-data reader-name="seed"/> <read-data reader-name="seed-initial"/> <read-data reader-name="demo"/> <read-data reader-name="ext"/> <read-data reader-name="ext-test"/> <read-data reader-name="ext-demo"/> <inline-jdbc jdbc-driver="com.mysql.jdbc.Driver" jdbc-uri="jdbc:mysql://127.0.0.1/ofbiz?characterEncoding=utf-8&autoReconnect=true" jdbc-username="root" jdbc-password="root" isolation-level="ReadCommitted" pool-minsize="2" pool-maxsize="250" time-between-eviction-runs-millis="600000"/><!-- Please note that at least one person has experienced a problem with this value with MySQL and had to set it to -1 in order to avoid this issue. For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html--> <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> --> </datasource> <datasource name="localmysqlolap" helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO" field-type-name="mysql" check-on-start="true" add-missing-on-start="true" check-pks-on-start="false" use-foreign-keys="true" join-style="ansi-no-parenthesis" alias-view-columns="false" drop-fk-use-foreign-key-keyword="true" table-type="InnoDB" character-set="utf8" collate="utf8_general_ci"> <read-data reader-name="tenant"/> <read-data reader-name="seed"/> <read-data reader-name="seed-initial"/> <read-data reader-name="demo"/> <read-data reader-name="ext"/> <read-data reader-name="ext-test"/> <read-data reader-name="ext-demo"/> <inline-jdbc jdbc-driver="com.mysql.jdbc.Driver" jdbc-uri="jdbc:mysql://127.0.0.1/ofbizolap?characterEncoding=utf-8&autoReconnect=true" jdbc-username="root" jdbc-password="root" isolation-level="ReadCommitted" pool-minsize="2" pool-maxsize="250" time-between-eviction-runs-millis="600000"/><!-- Please note that at least one person has experienced a problem with this value with MySQL and had to set it to -1 in order to avoid this issue. For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html--> <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> --> </datasource> <datasource name="localmysqltenant" helper-class="org.apache.ofbiz.entity.datasource.GenericHelperDAO" field-type-name="mysql" check-on-start="true" add-missing-on-start="true" check-pks-on-start="false" use-foreign-keys="true" join-style="ansi-no-parenthesis" alias-view-columns="false" drop-fk-use-foreign-key-keyword="true" table-type="InnoDB" character-set="utf8" collate="utf8_general_ci"> <read-data reader-name="tenant"/> <read-data reader-name="seed"/> <read-data reader-name="seed-initial"/> <read-data reader-name="demo"/> <read-data reader-name="ext"/> <read-data reader-name="ext-test"/> <read-data reader-name="ext-demo"/> <inline-jdbc jdbc-driver="com.mysql.jdbc.Driver" jdbc-uri="jdbc:mysql://127.0.0.1/ofbiztenant?characterEncoding=utf-8&autoReconnect=true" jdbc-username="root" jdbc-password="root" isolation-level="ReadCommitted" pool-minsize="2" pool-maxsize="250" time-between-eviction-runs-millis="600000"/><!-- Please note that at least one person has experienced a problem with this value with MySQL and had to set it to -1 in order to avoid this issue. For more look at http://markmail.org/thread/5sivpykv7xkl66px and http://commons.apache.org/dbcp/configuration.html--> <!-- <jndi-jdbc jndi-server-name="localjndi" jndi-name="java:/MySqlDataSource" isolation-level="Serializable"/> --> </datasource>8.本地数据库创建MySQL数据库
ofbiz ofbizolap ofbiztenant三个库设置编码格式字符集utf8 -- UTF-8 排序规则Unicode utf8_general_ci
9.命令行gradlew loadDefault 加载默认数据
10.命令行 gradlew ofbiz启动
https://127.0.0.1:8443/ecommerce/control/main 前台访问
https://127.0.0.1:8443/accounting/control/setUserPreference 后台 账号admin密码ofbiz
1 0
- gradle ofbiz 16 开发环境搭建
- Ofbiz环境搭建配置
- OFBiz系统环境搭建
- eclipse+gradle+springBoot搭建开发环境
- OFBiz开发环境的配置
- Eclipse搭建Gradle环境
- gradle简单环境搭建
- Gradle 环境搭建
- Gradle(ubuntu) 环境搭建
- Eclipse 搭建gradle环境
- Eclipse搭建Gradle环境
- Gradle 环境搭建
- Gradle 环境搭建
- AndroidStudio开发环境搭建之Failed to sync Gradle project
- 使用Intellij Idea+Gradle 搭建Java 本地开发环境
- 使用Intellij Idea+Gradle 搭建Java 本地开发环境
- android搭建开发环境 ---- gradle wrapper出现问题
- Gradle + Spring Boot + Jersey搭建REST开发环境
- redis基础
- 4011: [HNOI2015]落忆枫音
- eclipse中xml文件设置如何变成可编辑模式
- [RK3288][Android6.0] TS-ADC驱动流程小结
- servlet的学习
- gradle ofbiz 16 开发环境搭建
- 哈弗曼树
- C语言中%d,%s,%x,%f,%.100f,%的意思
- Elasticsearch增、删、改、查操作深入详解
- AS导入Library的时候出现问题,依赖库不显示
- NLTK下载
- Power of Two
- eclipse新建几种项目区别
- CSDN博客地址