欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Moqui
小 (→MySQL) |
小 (→MySQL) |
||
第92行: | 第92行: | ||
classpath 'mysql:mysql-connector-java:8.0.24' | classpath 'mysql:mysql-connector-java:8.0.24' | ||
} | } | ||
+ | |||
+ | 把 mysql-connector-java-8.0.24.jar 放在 runtime/lib/ 目录下 | ||
再重新编译 | 再重新编译 |
2021年6月26日 (六) 13:53的版本
Moqui Ecosystem,Apache OFBiz 的新一代产品和下一代框架。
目录 |
Ecosystem
- Moqui Framework: 核心 Core
- Moqui Mantle: 基础 Foundation 以下数字随版本会有所不同
-Universal Data Model (UDM): 360 entities
-Universal Service Library (USL): 256 view entities, 718 services, and a REST API with 415 services
-Universal Business Process Library (UBPL)
-Simple Screens: 226 screens, 690 forms, and 23 document templates
- Moqui Crust: 扩展 Add-on
- Moqui Application: POP Commerce (Retail and Wholesale ERP and eCommerce ), HiveMind (Project Management and Service ERP)
框架
功能
包含和集成的一些功能框架:
- AWS Amazon Web Services
- Apache Camel Apache Camel
- Apache POI Apache POI
- Apache FOP
- Atomikos
- Elasticsearch Elasticsearch
- Hazelcast Hazelcast
- JBoss KIE JBoss KIE
- OrientDB OrientDB
- SFTP
- WikiText
迁移
Migration from Apache OFBiz to Moqui
安装
下载类似 MoquiDemo-2.1.3.war 的文件
$ java -jar MoquiDemo-2.1.3.war load $ java -jar MoquiDemo-2.1.3.war http://localhost:8080/ john.doe/moqui
快速启动
$ git clone https://github.com/moqui/moqui-framework.git moqui $ cd moqui $ ./gradlew getComponent -Pcomponent=PopCommerce $ ./gradlew getComponent -Pcomponent=HiveMind $ ./gradlew downloadElasticSearch $ ./gradlew load // 编译生成 moqui.war $ ./gradlew cleanAll gitPullAll load // 以后代码更新和重构数据库 $ java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 装入数据,修改 runtime/conf/MoquiProductionConf.xml,参考更多配置Sample $ java -jar moqui.war http://localhost:8080/popc 和 http://localhost:8080/
可能的错误:17:34:39.373 WARN gement][T#2] o.elasticse.c.r.a.DiskThresholdMonitor high disk watermark [90%] exceeded on [uaHAW-oSTs2in1lXcIfcXw][MoquiLocal][/Users/huihoo/Software/e3.net/moqui/runtime/elasticsearch/data/nodes/0] free: 16.1gb[3.4%], shards will be relocated away from this node
或者获得moqui安装包
java -jar moqui-<version>.war -load // 创建演示Derby库和表 java -jar moqui-<version>.war // 运行 with 嵌入 Servlet, JTA/CP,DB http://localhost:8080/
git clone https://github.com/moqui/moqui 编译源代码
gradle build gradle load gradle run gradle clean gradle cleanAll
更多细节:Running and Deployment Instructions
framework > build > resources > MoquiDefaultConf.xml 配置 datasource
gradle loadProduction gradle runProduction
MySQL
一、提供了以 Docker 的方式运行 MySQL
二、配置 MoquiDevConf.xml 或 MoquiProductionConf.xml 使用 MySQL 或 MariaDB
<entity-facade crypt-pass="MoquiDefaultPassword:CHANGEME"> <datasource group-name="transactional" database-conf-name="mysql" schema-name=""> <inline-jdbc jdbc-uri="jdbc:mysql://127.0.0.1:3306/moqui?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8" jdbc-username="moqui" jdbc-password="moqui" pool-minsize="2" pool-maxsize="50"/> </datasource> </entity-facade>
若出现 Class [com.mysql.jdbc.Driver] not found 错误。
修改 build.gradle,加入
dependencies{ classpath 'mysql:mysql-connector-java:8.0.24' }
把 mysql-connector-java-8.0.24.jar 放在 runtime/lib/ 目录下
再重新编译
./gradlew cleanAll gitPullAll load // 下载依赖
然后运行
java -jar moqui.war load conf=conf/MoquiProductionConf.xml
Kotlin
Moqui 的主要开发语言是:Groovy、Java,可引入 Kotlin,带来 Gradle + Kotlin 的强力组合、DSL、灵活性和生产力。
项目
API
集成
- Mantle OAGIS Integrations
- Mantle EDI Integrations
- Moqui AWS Integrations
- Mantle YotPo Integration
- Mantle Shippo Integration
- Mantle Authorize.NET Integration
- Mantle PayTrace Integration
- Braintree Payment Processor
- Mantle RSIS Core REST API Integration
应用
- POP REST Store - eCommerce REST API and Web App
- POP (Plain-Old-Product) Commerce - Retail and Wholesale ERP and eCommerce
- Moqui Marble ERP
- HiveMind Project Management and Service ERP
PostgreSQL
Elasticsearch
Elasticsearch 是 Moqui 一个重要的部件
可能存在的问题:
Error logging to ElasticSearch: org.moqui.BaseException: Error calling HTTP request to http://127.0.0.1:9200/moqui_logs/_bulk
重启一下 java -jar moqui.war
中文
图书
图集
链接
- Mogui官网
- Moqui @ GitHub
- Moqui开放文档
- Moqui Javadoc
- 在线Demo
- Port of Apache OFBiz 10.04 to Moqui Framework
- David E. Jones Founder and PMC Member, Apache OFBiz + Founder and Moderator, Moqui
- Moqui背后的公司Hemagenesis