Moqui

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(链接)
(MySQL)
 
(未显示1个用户的16个中间版本)
第3行: 第3行:
 
==Ecosystem==
 
==Ecosystem==
 
*Moqui Framework: 核心 Core
 
*Moqui Framework: 核心 Core
*Moqui Mantle: 基础 Foundation
+
*Moqui Mantle: [https://moqui.org/mantle.html 基础 Foundation] 以下数字随版本会有所不同
-Universal Data Model (UDM)
+
-Universal Data Model (UDM): 360 entities
  
-Universal Service Library (USL)
+
-Universal Service Library (USL):  256 view entities, 718 services, and a REST API with 415 services
 +
 
 +
-Universal Business Process Library ([https://github.com/moqui/mantle-ubpl UBPL])
 +
 
 +
-Simple Screens: 226 screens, 690 forms, and 23 document templates
  
-Universal Business Process Library (UBPL)
 
 
*Moqui Crust: 扩展 Add-on
 
*Moqui Crust: 扩展 Add-on
 +
*Moqui Application: POP Commerce (Retail and Wholesale ERP and eCommerce ), HiveMind (Project Management and Service ERP)
  
==功能==
+
==框架==
 
[[moqui/features]]
 
[[moqui/features]]
 +
*[https://moqui.org/javadoc/index.html Moqui Framework API]
 +
*[https://github.com/moqui/moqui-framework Moqui Framework]
 +
*[https://github.com/moqui/moqui-runtime Moqui Runtime]
 +
 +
===功能===
 +
包含和集成的一些功能框架:
 +
*[https://github.com/moqui/moqui-aws AWS] [[Amazon Web Services]]
 +
*[https://github.com/moqui/moqui-camel Apache Camel] [[Apache Camel]]
 +
*[https://github.com/moqui/moqui-poi Apache POI] [[Apache POI]]
 +
*[https://github.com/moqui/moqui-fop Apache FOP]
 +
*[https://github.com/moqui/moqui-atomikos Atomikos]
 +
*[https://github.com/moqui/moqui-elasticsearch Elasticsearch] [[Elasticsearch]]
 +
*[https://github.com/moqui/moqui-hazelcast Hazelcast] [[Hazelcast]]
 +
*[https://github.com/moqui/moqui-kie JBoss KIE] [[JBoss BPM|JBoss KIE]]
 +
*[https://github.com/moqui/moqui-orientdb OrientDB] [[OrientDB]]
 +
*[https://github.com/moqui/moqui-sftp SFTP]
 +
*[https://github.com/moqui/moqui-wikitext WikiText]
  
 
==迁移==
 
==迁移==
第29行: 第50行:
 
  $ ./gradlew getComponent -Pcomponent=HiveMind
 
  $ ./gradlew getComponent -Pcomponent=HiveMind
 
  $ ./gradlew downloadElasticSearch
 
  $ ./gradlew downloadElasticSearch
  $ ./gradlew load  
+
  $ ./gradlew load // 编译生成 moqui.war
 
  $ ./gradlew cleanAll gitPullAll load // 以后代码更新和重构数据库
 
  $ ./gradlew cleanAll gitPullAll load // 以后代码更新和重构数据库
 
  $ java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 装入数据,修改 runtime/conf/MoquiProductionConf.xml,[https://github.com/moqui/moqui-framework/blob/master/framework/src/main/resources/MoquiDefaultConf.xml 参考更多配置Sample]
 
  $ java -jar moqui.war load conf=conf/MoquiProductionConf.xml // 装入数据,修改 runtime/conf/MoquiProductionConf.xml,[https://github.com/moqui/moqui-framework/blob/master/framework/src/main/resources/MoquiDefaultConf.xml 参考更多配置Sample]
第52行: 第73行:
 
  gradle loadProduction
 
  gradle loadProduction
 
  gradle runProduction
 
  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&amp;useUnicode=true&amp;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 // 创建数据库表和导入初始化数据
 +
java -jar moqui.war conf=conf/MoquiProductionConf.xml
 +
http://localhost:8080/
  
 
==Kotlin==
 
==Kotlin==
第61行: 第111行:
 
*[https://github.com/moqui/PopRestStore POP REST Store] 使用了 [[Vue.js]]
 
*[https://github.com/moqui/PopRestStore POP REST Store] 使用了 [[Vue.js]]
 
*[https://github.com/moqui/moqui-elasticsearch moqui-elasticsearch] [[Elasticsearch]]
 
*[https://github.com/moqui/moqui-elasticsearch moqui-elasticsearch] [[Elasticsearch]]
 +
 +
==API==
 +
Full [[REST]] [[API]]
 +
[[文件:Moqui-REST-API-Swagger-UI.png]]
 +
 +
==集成==
 +
*[https://github.com/moqui/mantle-oagis Mantle OAGIS Integrations]
 +
*[https://github.com/moqui/mantle-edi Mantle EDI Integrations]
 +
*[https://github.com/moqui/moqui-aws Moqui AWS Integrations]
 +
*[https://github.com/moqui/mantle-yotpo Mantle YotPo Integration]
 +
*[https://github.com/moqui/mantle-shippo Mantle Shippo Integration]
 +
*[https://github.com/moqui/AuthorizeDotNet Mantle Authorize.NET Integration]
 +
*[https://github.com/moqui/mantle-paytrace Mantle PayTrace Integration]
 +
*[https://github.com/moqui/mantle-braintree Braintree Payment Processor]
 +
*[https://github.com/moqui/mantle-rsis Mantle RSIS Core REST API Integration]
 +
 +
==应用==
 +
*[https://github.com/moqui/PopRestStore POP REST Store] - eCommerce REST API and Web App
 +
*[https://github.com/moqui/PopCommerce POP (Plain-Old-Product) Commerce] - Retail and Wholesale ERP and eCommerce
 +
*[https://github.com/moqui/MarbleERP Moqui Marble ERP]
 +
*[https://github.com/moqui/HiveMind HiveMind] Project Management and Service ERP
  
 
==PostgreSQL==
 
==PostgreSQL==
第70行: 第141行:
  
 
Error logging to ElasticSearch: org.moqui.BaseException: Error calling HTTP request to http://127.0.0.1:9200/moqui_logs/_bulk
 
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
  
java -jar moqui.war load
+
==中文==
java -jar moqui.war
+
  
 
==图书==
 
==图书==
第96行: 第167行:
 
==链接==
 
==链接==
 
*[http://moqui.org Mogui官网]
 
*[http://moqui.org Mogui官网]
*[https://github.com/moqui/moqui Moqui @ GitHub]
+
*[https://github.com/moqui Moqui @ GitHub]
 
*[http://docs.huihoo.com/moqui Moqui开放文档]
 
*[http://docs.huihoo.com/moqui Moqui开放文档]
 
*[http://docs.huihoo.com/javadoc/moqui/ Moqui Javadoc]
 
*[http://docs.huihoo.com/javadoc/moqui/ Moqui Javadoc]

2021年6月26日 (六) 14:16的最后版本

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)

[编辑] 框架

moqui/features

[编辑] 功能

包含和集成的一些功能框架:

[编辑] 迁移

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/popchttp://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 使用 MySQLMariaDB

<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 // 创建数据库表和导入初始化数据
java -jar moqui.war conf=conf/MoquiProductionConf.xml
http://localhost:8080/

[编辑] Kotlin

Moqui 的主要开发语言是:GroovyJava,可引入 Kotlin,带来 Gradle + Kotlin 的强力组合、DSL、灵活性和生产力。

[编辑] 项目

[编辑] API

Full REST API Moqui-REST-API-Swagger-UI.png

[编辑] 集成

[编辑] 应用

[编辑] 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

[编辑] 中文

[编辑] 图书

[编辑] 图集

[编辑] 链接

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱