From 147b444e3b7189f94ee2b340ab557f6a85d77007 Mon Sep 17 00:00:00 2001 From: binking338 Date: Wed, 21 Aug 2024 19:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8C=85=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C1.0.0-alpha-1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 43 ++++++++++++------- cap4j-ddd-codegen-maven-plugin/pom.xml | 8 +--- cap4j-ddd-codegen-template.json | 4 +- cap4j-ddd-starter-jpa-rocketmq/pom.xml | 4 +- ddd-core/pom.xml | 2 +- ddd-distributed-idgenerator-snowflake/pom.xml | 2 +- ddd-distributed-locker-jdbc/pom.xml | 2 +- ddd-domain-event-jpa/pom.xml | 2 +- ddd-domain-event-rocketmq/pom.xml | 2 +- ddd-domain-repo-jpa/pom.xml | 2 +- pom.xml | 2 +- 11 files changed, 40 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 21895ea..5224845 100644 --- a/README.md +++ b/README.md @@ -31,20 +31,20 @@ io.github.netcorepal cap4j-ddd-codegen-maven-plugin - 1.0.0-alpha1 + 1.0.0-alpha-1 - /Users/wangbin/source/my/cap4j/cap4j-ddd-codegen-template.json + https://raw.githubusercontent.com/netcorepal/cap4j/main/cap4j-ddd-codegen-template.json org.netcorepal.cap4j.ddd.example false -adapter -domain -application - + root 123456 - ddd + test
id @@ -326,7 +326,7 @@ CREATE TABLE `order_item` ( > > 如果想要对这套语法有个详细完整的了解,可以通过如下maven指令获取语法帮助。 > ```shell -> mvn io.github.netcorepal:cap4j-ddd-codegen-maven-plugin:1.0.0-alpha1:help +> mvn io.github.netcorepal:cap4j-ddd-codegen-maven-plugin:1.0.0-alpha-1:help > # or > mvn cap4j-ddd-codegen:help > ``` @@ -732,7 +732,7 @@ public class PlaceOrderCmd { ##### 事件定义、订阅、发布 **创建发件箱表** -为了实现Outbox模式,cap4j需要在业务库中创建发件箱表。 +为了实现Outbox模式,cap4j需要在业务库中创建发件箱表。脚手架初始化后,`resources/ddl.sql`包含完整的发件箱表建表语句 ```sql -- Create syntax for TABLE '__event' CREATE TABLE `__event` ( @@ -763,7 +763,7 @@ CREATE TABLE `__event` ( KEY `idx_create_at` (`create_at`), KEY `idx_expire_at` (`expire_at`), KEY `idx_next_try_time` (`next_try_time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='集成事件\n@I;' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事件发件箱 support by cap4j\n@I;' # partition by range(to_days(db_created_at)) # (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB) ; @@ -796,7 +796,7 @@ CREATE TABLE `__achrived_event` ( KEY `idx_create_at` (`create_at`), KEY `idx_expire_at` (`expire_at`), KEY `idx_next_try_time` (`next_try_time`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='集成事件存档\n@I;' +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事件发件箱存档 support by cap4j\n@I;' # partition by range(to_days(db_created_at)) # (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB) ; @@ -814,7 +814,7 @@ CREATE TABLE `__locker` ( KEY `idx_db_created_at` (`db_created_at`), KEY `idx_db_updated_at` (`db_updated_at`), UNIQUE `uniq_name` (`name`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='锁\n@I;'; +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='锁 support by cap4j\n@I;'; ``` @@ -866,15 +866,28 @@ public class OrderPlacedDomainEvent { } ``` -> DomainEvent注解详解 -> - `value()` 如果定义了value字段,则事件会被识别为集成事件,意味着该事件将通过消息队列适配,通知到分布式系统中的其他服务进程。 -> - `subscriber()` 如果是集成事件订阅场景,必须定义该字段,通常该字段的值将会被适配的消息队列应用到消费分组配置中。 -> - `persist()` 如果领域事件并不是集成事件(仅在本服务进程内部有订阅需求),可以通过`persist=true`控制事件进入发件箱表,并脱离事件发布上线文事务中。以避免订阅逻辑影响发布事务的完成。 +> 注解属性详解 +> - `value()` value字段非空,则事件会被识别为集成事件,意味着该事件将通过消息队列适配,通知到分布式系统中的其他服务进程。 +> - `subscriber()` 集成事件订阅场景,必须定义该字段,通常该字段的值将会被适配的消息队列应用到消费分组配置中。 +> - `persist()` 控制事件发布记录持久化。集成事件发布场景,该字段无意义。非集成事件发布场景(仅在本服务进程内部有订阅需求),可以通过`persist=true`控制事件进入发件箱表,并脱离事件发布上下文事务中。以避免订阅逻辑异常影响发布事务的完成。 +> +> 应用场景例子说明 +> - `基于MQ发送方` DomainEvent(value="event-name-used-for-mq-topic") +> - `基于MQ订阅方` DomainEvent(subscriber="consumer-group") +> - `消费方与订阅方事务隔离` DomainEvent(persist=true) +> - `消费方与订阅方同一事务` DomainEvent **领域事件发布** -在实体行为中,发布领域事件。 +通常应在实体行为中,发布领域事件。 + +接口[DomainEventSupervisor.java](ddd-core/src/main/java/org/netcorepal/cap4j/ddd/domain/event/DomainEventSupervisor.java) +> `即时发送` DefaultDomainEventSupervisor.instance.attach(Object eventPayload, Object entity) +> +> `延时发送` DefaultDomainEventSupervisor.instance.attach(Object eventPayload, Object entity, Duration delay) +> +> `定时发送` DefaultDomainEventSupervisor.instance.attach(Object eventPayload, Object entity, LocalDateTime schedule) ```java import org.netcorepal.cap4j.ddd.domain.event.impl.DefaultDomainEventSupervisor; @@ -910,7 +923,7 @@ public class Order { 领域事件订阅定义在应用层(application),通常放置在 subscribers 包中。 -领域事件订阅支持Spring事件的方式来触发。 +领域事件订阅支持Spring注解式声明订阅(监听)的方式。 ```java diff --git a/cap4j-ddd-codegen-maven-plugin/pom.xml b/cap4j-ddd-codegen-maven-plugin/pom.xml index dab1526..14b620a 100644 --- a/cap4j-ddd-codegen-maven-plugin/pom.xml +++ b/cap4j-ddd-codegen-maven-plugin/pom.xml @@ -3,16 +3,10 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - - io.github.netcorepal - cap4j - 1.0.0-alpha1 - ../pom.xml - io.github.netcorepal cap4j-ddd-codegen-maven-plugin - 1.0.0-alpha1 + 1.0.0-alpha-1 maven-plugin diff --git a/cap4j-ddd-codegen-template.json b/cap4j-ddd-codegen-template.json index ee8794b..0b05d43 100644 --- a/cap4j-ddd-codegen-template.json +++ b/cap4j-ddd-codegen-template.json @@ -339,7 +339,7 @@ "type": "file", "name": "ddl.sql", "format": "raw", - "data": "-- Create syntax for TABLE '__event'\nCREATE TABLE `__event` (\n `id` bigint(20) NOT NULL AUTO_INCREMENT,\n `event_uuid` varchar(64) NOT NULL DEFAULT '' COMMENT '事件uuid',\n `svc_name` varchar(255) NOT NULL DEFAULT '' COMMENT '服务',\n `event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',\n `data` text COMMENT '事件数据',\n `data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',\n `exception` text COMMENT '事件发送异常',\n `expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',\n `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态',\n `last_try_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上次尝试时间',\n `next_try_time` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '下次尝试时间',\n `tried_times` int(11) NOT NULL DEFAULT '0' COMMENT '已尝试次数',\n `try_times` int(11) NOT NULL DEFAULT '0' COMMENT '尝试次数',\n `version` int(11) NOT NULL DEFAULT '0',\n `db_created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`\n# , `db_created_at`\n ),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n KEY `idx_event_uuid` (`event_uuid`),\n KEY `idx_event_type` (`event_type`,`svc_name`),\n KEY `idx_create_at` (`create_at`),\n KEY `idx_expire_at` (`expire_at`),\n KEY `idx_next_try_time` (`next_try_time`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='集成事件\\n@I;'\n# partition by range(to_days(db_created_at))\n# (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB)\n;\n-- Create syntax for TABLE '__achrived_event'\nCREATE TABLE `__achrived_event` (\n `id` bigint(20) NOT NULL AUTO_INCREMENT,\n `event_uuid` varchar(64) NOT NULL DEFAULT '' COMMENT '事件uuid',\n `svc_name` varchar(255) NOT NULL DEFAULT '' COMMENT '服务',\n `event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',\n `data` text COMMENT '事件数据',\n `data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',\n `exception` text COMMENT '事件发送异常',\n `expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',\n `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态',\n `last_try_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上次尝试时间',\n `next_try_time` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '下次尝试时间',\n `tried_times` int(11) NOT NULL DEFAULT '0' COMMENT '已尝试次数',\n `try_times` int(11) NOT NULL DEFAULT '0' COMMENT '尝试次数',\n `version` int(11) NOT NULL DEFAULT '0',\n `db_created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`\n# , `db_created_at`\n ),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n KEY `idx_event_uuid` (`event_uuid`),\n KEY `idx_event_type` (`event_type`,`svc_name`),\n KEY `idx_create_at` (`create_at`),\n KEY `idx_expire_at` (`expire_at`),\n KEY `idx_next_try_time` (`next_try_time`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='集成事件存档\\n@I;'\n# partition by range(to_days(db_created_at))\n# (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB)\n;\n\nCREATE TABLE `__locker` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(100) NOT NULL DEFAULT '' COMMENT '锁名称',\n `pwd` varchar(100) NOT NULL DEFAULT '' COMMENT '锁密码',\n `lock_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00' COMMENT '锁获取时间',\n `unlock_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00' COMMENT '锁释放时间',\n `version` bigint(20) unsigned NOT NULL DEFAULT '0',\n `db_created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n UNIQUE `uniq_name` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='锁\\n@I;';" + "data": "-- Create syntax for TABLE '__event'\nCREATE TABLE `__event` (\n `id` bigint(20) NOT NULL AUTO_INCREMENT,\n `event_uuid` varchar(64) NOT NULL DEFAULT '' COMMENT '事件uuid',\n `svc_name` varchar(255) NOT NULL DEFAULT '' COMMENT '服务',\n `event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',\n `data` text COMMENT '事件数据',\n `data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',\n `exception` text COMMENT '事件发送异常',\n `expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',\n `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态',\n `last_try_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上次尝试时间',\n `next_try_time` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '下次尝试时间',\n `tried_times` int(11) NOT NULL DEFAULT '0' COMMENT '已尝试次数',\n `try_times` int(11) NOT NULL DEFAULT '0' COMMENT '尝试次数',\n `version` int(11) NOT NULL DEFAULT '0',\n `db_created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`\n# , `db_created_at`\n ),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n KEY `idx_event_uuid` (`event_uuid`),\n KEY `idx_event_type` (`event_type`,`svc_name`),\n KEY `idx_create_at` (`create_at`),\n KEY `idx_expire_at` (`expire_at`),\n KEY `idx_next_try_time` (`next_try_time`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事件发件箱 support by cap4j\\n@I;'\n# partition by range(to_days(db_created_at))\n# (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB)\n;\n-- Create syntax for TABLE '__achrived_event'\nCREATE TABLE `__achrived_event` (\n `id` bigint(20) NOT NULL AUTO_INCREMENT,\n `event_uuid` varchar(64) NOT NULL DEFAULT '' COMMENT '事件uuid',\n `svc_name` varchar(255) NOT NULL DEFAULT '' COMMENT '服务',\n `event_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件类型',\n `data` text COMMENT '事件数据',\n `data_type` varchar(255) NOT NULL DEFAULT '' COMMENT '事件数据类型',\n `exception` text COMMENT '事件发送异常',\n `expire_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '过期时间',\n `create_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `event_state` int(11) NOT NULL DEFAULT '0' COMMENT '分发状态',\n `last_try_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上次尝试时间',\n `next_try_time` datetime NOT NULL DEFAULT '0001-01-01 00:00:00' COMMENT '下次尝试时间',\n `tried_times` int(11) NOT NULL DEFAULT '0' COMMENT '已尝试次数',\n `try_times` int(11) NOT NULL DEFAULT '0' COMMENT '尝试次数',\n `version` int(11) NOT NULL DEFAULT '0',\n `db_created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`\n# , `db_created_at`\n ),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n KEY `idx_event_uuid` (`event_uuid`),\n KEY `idx_event_type` (`event_type`,`svc_name`),\n KEY `idx_create_at` (`create_at`),\n KEY `idx_expire_at` (`expire_at`),\n KEY `idx_next_try_time` (`next_try_time`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='事件发件箱存档 support by cap4j\\n@I;'\n# partition by range(to_days(db_created_at))\n# (partition p202201 values less than (to_days('2022-02-01')) ENGINE=InnoDB)\n;\n\nCREATE TABLE `__locker` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT,\n `name` varchar(100) NOT NULL DEFAULT '' COMMENT '锁名称',\n `pwd` varchar(100) NOT NULL DEFAULT '' COMMENT '锁密码',\n `lock_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00' COMMENT '锁获取时间',\n `unlock_at` datetime NOT NULL DEFAULT '1970-01-01 00:00:00' COMMENT '锁释放时间',\n `version` bigint(20) unsigned NOT NULL DEFAULT '0',\n `db_created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `db_updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',\n PRIMARY KEY (`id`),\n KEY `idx_db_created_at` (`db_created_at`),\n KEY `idx_db_updated_at` (`db_updated_at`),\n UNIQUE `uniq_name` (`name`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='锁 support by cap4j\\n@I;';" }, { "type": "file", @@ -388,7 +388,7 @@ "name": "pom.xml", "format": "raw", "conflict": "overwrite", - "data": "\n 4.0.0\n\n ${groupId}\n ${artifactId}\n ${version}\n jar\n\n ddd-sample\n\n \n UTF-8\n UTF-8\n 1.8\n\n 1.18.16\n\n 31.1-jre\n 3.12.0\n 4.4\n 1.2.79\n\n 5.1.46\n 1.2.8\n\n 2.7.6\n 2021.0.5\n \n \n\n 1.6.14\n 3.0.3\n 2.2.7\n \n\n \n \n \n org.springframework.boot\n spring-boot-dependencies\n ${spring-boot.version}\n pom\n import\n \n \n org.springframework.cloud\n spring-cloud-dependencies\n ${spring-cloud.version}\n pom\n import\n \n \n \n\n \n \n org.projectlombok\n lombok\n true\n ${org.projectlombok.version}\n \n\n \n io.github.netcorepal\n cap4j-ddd-starter-jpa-rocketmq\n 1.0.0-alpha1\n \n\n \n \n org.springframework.boot\n spring-boot-starter-web\n \n \n org.springframework.boot\n spring-boot-starter-actuator\n \n \n org.springframework.boot\n spring-boot-starter-validation\n \n\n \n \n org.apache.commons\n commons-lang3\n ${commons.lang3.version}\n \n \n org.apache.commons\n commons-collections4\n ${commons.collections4.version}\n \n \n com.google.guava\n guava\n ${guava.version}\n \n \n com.alibaba\n fastjson\n ${fastjson.version}\n \n\n \n \n com.ctrip.framework.apollo\n apollo-client\n 1.7.0\n \n \n \n com.githup.liuyanggithup\n xxl-job-core\n 1.2.1\n \n \n \n org.springframework.cloud\n spring-cloud-starter-openfeign\n \n \n io.github.openfeign\n feign-okhttp\n 11.10\n \n\n \n \n org.springframework.boot\n spring-boot-starter-data-jpa\n \n \n \n org.mybatis.spring.boot\n mybatis-spring-boot-starter\n 2.1.3\n \n \n \n com.alibaba\n druid-spring-boot-starter\n ${spring-boot-druid.version}\n \n \n \n mysql\n mysql-connector-java\n ${mysql-connector.version}\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n org.springdoc\n springdoc-openapi-ui\n ${springdoc.version}\n \n \n com.github.xiaoymin\n knife4j-springdoc-ui\n ${knife4j.version}\n \n \n io.swagger.core.v3\n swagger-annotations\n ${swagger3.version}\n \n\n \n net.logstash.logback\n logstash-logback-encoder\n 6.6\n \n \n junit\n junit\n 3.8.1\n test\n \n \n \n ${project.artifactId}\n \n \n io.github.netcorepal\n cap4j-ddd-codegen-maven-plugin\n 1.0.0-alpha1\n \n ${archTemplate}\n ${basePackage}\n ${multiModule}\n ${moduleNameSuffix4Adapter}\n ${moduleNameSuffix4Domain}\n ${moduleNameSuffix4Application}\n \n \n \n ${user}\n ${pwd}\n ${schema}\n ${table}
\n ${ignoreTable}\n ${idField}\n ${versionField}\n ${deletedField}\n ${readonlyFields}\n ${ignoreFields}\n ${entityBaseClass}\n ${entityMetaInfoClassOutputMode}\n ${entityMetaInfoClassOutputPackage}\n ${fetchMode}\n ${fetchType}\n ${idGenerator}\n ${enumValueField}\n ${enumNameField}\n ${enumUnmatchedThrowException}\n ${datePackage4Java}\n ${typeRemapping}\n ${generateDefault}\n ${generateDbType}\n ${generateSchema}\n ${generateBuild}\n ${aggregateIdentityClass}\n ${aggregateRootAnnotation}\n ${aggregateRepositoryBaseClass}\n ${aggregateRepositoryCustomerCode}\n ${ignoreAggregateRoots}\n
\n
\n \n org.springframework.boot\n spring-boot-maven-plugin\n 2.6.3\n \n \n \n \n repackage\n \n repackage\n \n \n ${basePackage}.StartApplication1\n \n \n \n \n \n \n org.apache.maven.plugins\n maven-compiler-plugin\n 3.8.1\n \n 1.8\n 1.8\n UTF-8\n \n \n \n org.apache.maven.plugins\n maven-archetype-plugin\n 3.2.0\n \n\n
\n
\n
" + "data": "\n 4.0.0\n\n ${groupId}\n ${artifactId}\n ${version}\n jar\n\n ddd-sample\n\n \n UTF-8\n UTF-8\n 1.8\n\n 1.18.16\n\n 31.1-jre\n 3.12.0\n 4.4\n 1.2.79\n\n 5.1.46\n 1.2.8\n\n 2.7.6\n 2021.0.5\n \n \n\n 1.6.14\n 3.0.3\n 2.2.7\n \n\n \n \n \n org.springframework.boot\n spring-boot-dependencies\n ${spring-boot.version}\n pom\n import\n \n \n org.springframework.cloud\n spring-cloud-dependencies\n ${spring-cloud.version}\n pom\n import\n \n \n \n\n \n \n org.projectlombok\n lombok\n true\n ${org.projectlombok.version}\n \n\n \n io.github.netcorepal\n cap4j-ddd-starter-jpa-rocketmq\n 1.0.0-alpha-1\n \n\n \n \n org.springframework.boot\n spring-boot-starter-web\n \n \n org.springframework.boot\n spring-boot-starter-actuator\n \n \n org.springframework.boot\n spring-boot-starter-validation\n \n\n \n \n org.apache.commons\n commons-lang3\n ${commons.lang3.version}\n \n \n org.apache.commons\n commons-collections4\n ${commons.collections4.version}\n \n \n com.google.guava\n guava\n ${guava.version}\n \n \n com.alibaba\n fastjson\n ${fastjson.version}\n \n\n \n \n com.ctrip.framework.apollo\n apollo-client\n 1.7.0\n \n \n \n com.githup.liuyanggithup\n xxl-job-core\n 1.2.1\n \n \n \n org.springframework.cloud\n spring-cloud-starter-openfeign\n \n \n io.github.openfeign\n feign-okhttp\n 11.10\n \n\n \n \n org.springframework.boot\n spring-boot-starter-data-jpa\n \n \n \n org.mybatis.spring.boot\n mybatis-spring-boot-starter\n 2.1.3\n \n \n \n com.alibaba\n druid-spring-boot-starter\n ${spring-boot-druid.version}\n \n \n \n mysql\n mysql-connector-java\n ${mysql-connector.version}\n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n \n \n org.springdoc\n springdoc-openapi-ui\n ${springdoc.version}\n \n \n com.github.xiaoymin\n knife4j-springdoc-ui\n ${knife4j.version}\n \n \n io.swagger.core.v3\n swagger-annotations\n ${swagger3.version}\n \n\n \n net.logstash.logback\n logstash-logback-encoder\n 6.6\n \n \n junit\n junit\n 3.8.1\n test\n \n \n \n ${project.artifactId}\n \n \n io.github.netcorepal\n cap4j-ddd-codegen-maven-plugin\n 1.0.0-alpha-1\n \n ${archTemplate}\n ${basePackage}\n ${multiModule}\n ${moduleNameSuffix4Adapter}\n ${moduleNameSuffix4Domain}\n ${moduleNameSuffix4Application}\n \n \n \n ${user}\n ${pwd}\n ${schema}\n ${table}
\n ${ignoreTable}\n ${idField}\n ${versionField}\n ${deletedField}\n ${readonlyFields}\n ${ignoreFields}\n ${entityBaseClass}\n ${entityMetaInfoClassOutputMode}\n ${entityMetaInfoClassOutputPackage}\n ${fetchMode}\n ${fetchType}\n ${idGenerator}\n ${enumValueField}\n ${enumNameField}\n ${enumUnmatchedThrowException}\n ${datePackage4Java}\n ${typeRemapping}\n ${generateDefault}\n ${generateDbType}\n ${generateSchema}\n ${generateBuild}\n ${aggregateIdentityClass}\n ${aggregateRootAnnotation}\n ${aggregateRepositoryBaseClass}\n ${aggregateRepositoryCustomerCode}\n ${ignoreAggregateRoots}\n
\n
\n \n org.springframework.boot\n spring-boot-maven-plugin\n 2.6.3\n \n \n \n \n repackage\n \n repackage\n \n \n ${basePackage}.StartApplication1\n \n \n \n \n \n \n org.apache.maven.plugins\n maven-compiler-plugin\n 3.8.1\n \n 1.8\n 1.8\n UTF-8\n \n \n \n org.apache.maven.plugins\n maven-archetype-plugin\n 3.2.0\n \n\n
\n
\n
" } ] } \ No newline at end of file diff --git a/cap4j-ddd-starter-jpa-rocketmq/pom.xml b/cap4j-ddd-starter-jpa-rocketmq/pom.xml index 778ce22..c66d885 100644 --- a/cap4j-ddd-starter-jpa-rocketmq/pom.xml +++ b/cap4j-ddd-starter-jpa-rocketmq/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ../pom.xml @@ -72,7 +72,7 @@ io.github.netcorepal ddd-distributed-idgenerator-snowflake - 1.0.0-alpha1 + 1.0.0-alpha-1 compile diff --git a/ddd-core/pom.xml b/ddd-core/pom.xml index 8ffbbd3..b9e2de4 100644 --- a/ddd-core/pom.xml +++ b/ddd-core/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ddd-core diff --git a/ddd-distributed-idgenerator-snowflake/pom.xml b/ddd-distributed-idgenerator-snowflake/pom.xml index ee42d16..5ba532b 100644 --- a/ddd-distributed-idgenerator-snowflake/pom.xml +++ b/ddd-distributed-idgenerator-snowflake/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 io.github.netcorepal diff --git a/ddd-distributed-locker-jdbc/pom.xml b/ddd-distributed-locker-jdbc/pom.xml index 4992e7d..3982b7c 100644 --- a/ddd-distributed-locker-jdbc/pom.xml +++ b/ddd-distributed-locker-jdbc/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ddd-distributed-locker-jdbc diff --git a/ddd-domain-event-jpa/pom.xml b/ddd-domain-event-jpa/pom.xml index 2469e36..dc24447 100644 --- a/ddd-domain-event-jpa/pom.xml +++ b/ddd-domain-event-jpa/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ddd-domain-event-jpa diff --git a/ddd-domain-event-rocketmq/pom.xml b/ddd-domain-event-rocketmq/pom.xml index 7cc09ed..0bfee4a 100644 --- a/ddd-domain-event-rocketmq/pom.xml +++ b/ddd-domain-event-rocketmq/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ddd-domain-event-rocketmq diff --git a/ddd-domain-repo-jpa/pom.xml b/ddd-domain-repo-jpa/pom.xml index f7b420b..3afdf67 100644 --- a/ddd-domain-repo-jpa/pom.xml +++ b/ddd-domain-repo-jpa/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 ddd-domain-repo-jpa diff --git a/pom.xml b/pom.xml index 0703fb0..c8c9d03 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ io.github.netcorepal cap4j - 1.0.0-alpha1 + 1.0.0-alpha-1 pom https://github.com/netcorepal/cap4j cap4j,更方便地实现领域驱动设计