Skip to content

Commit

Permalink
refactor: change pom.xml groupId from com.x9x.radp to space.x9x.radp
Browse files Browse the repository at this point in the history
  • Loading branch information
x9x committed Dec 18, 2024
1 parent 30d6d1f commit a2e38a8
Show file tree
Hide file tree
Showing 295 changed files with 445 additions and 465 deletions.
6 changes: 3 additions & 3 deletions Writerside/topics/9_faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ org.junit.platform.commons.JUnitException: TestEngine with ID 'spock' failed to
at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:35)
at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:232)
at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:55)
Caused by: org.junit.platform.commons.JUnitException: ClassSelector [className = 'com.x9x.radp.extension.ExtensionLoaderSpec'] resolution failed
Caused by: org.junit.platform.commons.JUnitException: ClassSelector [className = 'space.x9x.radp.extension.ExtensionLoaderSpec'] resolution failed
at org.junit.platform.launcher.listeners.discovery.AbortOnFailureLauncherDiscoveryListener.selectorProcessed(AbortOnFailureLauncherDiscoveryListener.java:39)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:102)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.run(EngineDiscoveryRequestResolution.java:82)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolver.resolve(EngineDiscoveryRequestResolver.java:113)
at org.spockframework.runtime.SpockEngine.discover(SpockEngine.java:28)
at org.junit.platform.launcher.core.EngineDiscoveryOrchestrator.discoverEngineRoot(EngineDiscoveryOrchestrator.java:152)
... 13 more
Caused by: org.junit.platform.commons.PreconditionViolationException: Could not load class with name: com.x9x.radp.extension.ExtensionLoaderSpec
Caused by: org.junit.platform.commons.PreconditionViolationException: Could not load class with name: space.x9x.radp.extension.ExtensionLoaderSpec
at org.junit.platform.engine.discovery.ClassSelector.lambda$getJavaClass$0(ClassSelector.java:75)
at org.junit.platform.commons.function.Try$Failure.getOrThrow(Try.java:335)
at org.junit.platform.engine.discovery.ClassSelector.getJavaClass(ClassSelector.java:74)
Expand All @@ -109,7 +109,7 @@ Caused by: org.junit.platform.commons.PreconditionViolationException: Could not
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolve(EngineDiscoveryRequestResolution.java:125)
at org.junit.platform.engine.support.discovery.EngineDiscoveryRequestResolution.resolveCompletely(EngineDiscoveryRequestResolution.java:91)
... 17 more
Caused by: java.lang.ClassNotFoundException: com.x9x.radp.extension.ExtensionLoaderSpec
Caused by: java.lang.ClassNotFoundException: space.x9x.radp.extension.ExtensionLoaderSpec
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.12</version>
</parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp</artifactId>
<version>${revision}</version>
<packaging>pom</packaging>
Expand Down
2 changes: 1 addition & 1 deletion radp-agents/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp</artifactId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
Expand Down
2 changes: 1 addition & 1 deletion radp-archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-parent</artifactId>
<version>${revision}</version>
<relativePath>../radp-components/radp-parent/pom.xml</relativePath>
Expand Down
10 changes: 5 additions & 5 deletions radp-archetypes/radp-archetype-lite/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetypes</artifactId>
<version>${revision}</version>
</parent>
Expand All @@ -27,22 +27,22 @@
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-domain</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-infrastructure</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-trigger</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-types</artifactId>
<version>${project.version}</version>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite</artifactId>
<version>${revision}</version>
</parent>
<artifactId>radp-archetype-lite-app</artifactId>

<properties>
<start-class>com.x9x.radp.Application</start-class>
<start-class>space.x9x.radp.Application</start-class>
<build.jib.enabled>true</build.jib.enabled>
<build.layers.enabled>true</build.layers.enabled> <!-- 是否激活分层构建 -->
<docker.build.image_name>${docker.build.registry}/x9x/radp-archetype-lite-app</docker.build.image_name>
</properties>

<dependencies>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-jasypt-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-logging-spring-boot-starter</artifactId>
</dependency>
<dependency>
Expand All @@ -32,18 +32,18 @@
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-spring-boot-test</artifactId>
<scope>test</scope>
</dependency>

<!-- 自身模块 -->
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-trigger</artifactId>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-infrastructure</artifactId>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<include>*:*:*SNAPSHOT</include>
</into>
<into layer="modules-dependencies">
<include>com.x9x.demo:*:*</include>
<include>space.x9x.demo:*:*</include>
</into>
<into layer="organization-dependencies">
<include>com.x9x*:*:*</include>
<include>space.x9x*:*:*</include>
</into>
<into layer="dependencies"/>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x9x.radp;
package space.x9x.radp;

import space.x9x.radp.spring.framework.web.rest.annotation.EnableRestExceptionHandler;
import org.springframework.beans.factory.annotation.Configurable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
* 1. 用于管理引入的Jar所需的资源启动或者初始化处理
* 2. 如果有AOP切面,可以再建一个aop包,来写切面逻辑
*/
package com.x9x.radp.config;
package space.x9x.radp.config;

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 应用启动层,注意Application所在的包路径,是在上一层。这样才能扫描到其他 module
* */
package com.x9x.radp;
package space.x9x.radp;
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ logging:
file:
path: logs/${spring.application.name}
level:
com.x9x.radp: debug
com.x9x: debug
space.x9x.radp: debug
space.x9x: debug
--- # database
spring:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@ logging:
level:
root: info
com.ulisesbocchio.jasyptspringboot: warn
com.x9x.radp: info
com.x9x: info
space.x9x.radp: info
space.x9x: info
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x9x.radp.test
package space.x9x.radp.test


import spock.lang.Specification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.x9x.radp.test;
package space.x9x.radp.test;

import space.x9x.radp.jasypt.spring.boot.util.JasyptUtils;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite</artifactId>
<version>${revision}</version>
</parent>
Expand All @@ -13,7 +13,7 @@
<dependencies>
<!-- 自身模块 -->
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-types</artifactId>
</dependency>
</dependencies>
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
* 那么也就是基础设施层负责对接 数据库, 缓存, 配置中心, RPC接口, HTTP接口, MQ推送等各项资源, 并承接领域服务的接口调用各项服务为领域层提供数据能力. <br/>
* 同时这也会体现出, 领域层的实现是具有业务语义的, 而到了基础设施层则没有业务语义, 都是原子的方法, 通过原子方法的组合为领域业务语义提供支撑. <br/>
*/
package com.x9x.radp.domain.xxx.adapter;
package space.x9x.radp.domain.xxx.adapter;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 外部接口适配器层;当需要调用外部接口时,则创建出这一层,并定义接口,之后由基础设施层的 adapter 层具体实现
*/
package com.x9x.radp.domain.xxx.adapter.port;
package space.x9x.radp.domain.xxx.adapter.port;
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* 仓储服务
* 1. 定义仓储接口,之后由基础设施层做具体实现
*/
package com.x9x.radp.domain.yyy.adapter.repository;
package space.x9x.radp.domain.xxx.adapter.repository;
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
* <li><strong>持久化:</strong>聚合根通常与数据持久化层交互,以保存聚合的状态。这通常涉及到对象-关系映射(ORM)或其他数据映射技术。</li>
* </ul>
*/
package com.x9x.radp.domain.xxx.model.aggregate;
package space.x9x.radp.domain.xxx.model.aggregate;
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
* <li><strong>使用领域事件:</strong>当实体的状态发生变化时,可以发布领域事件。这样可以通知其它部分的系统进行相应的处理。</li>
* </ul>
*/
package com.x9x.radp.domain.xxx.model.entity;
package space.x9x.radp.domain.xxx.model.entity;
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
* <li><strong>考虑序列化支持:</strong>如果值对象需要在网络上传输或存储到数据库中,需要提供序列化和反序列化的支持。</li>
* </ul>
*/
package com.x9x.radp.domain.xxx.model.valobj;
package space.x9x.radp.domain.xxx.model.valobj;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package space.x9x.radp.domain.xxx.service;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 外部接口适配器层;当需要调用外部接口时,则创建出这一层,并定义接口,之后由基础设施层的 adapter 层具体实现
*/
package com.x9x.radp.domain.yyy.adapter;
package space.x9x.radp.domain.yyy.adapter;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 外部接口适配器层;当需要调用外部接口时,则创建出这一层,并定义接口,之后由基础设施层的 adapter 层具体实现
*/
package com.x9x.radp.domain.yyy.adapter.port;
package space.x9x.radp.domain.yyy.adapter.port;
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* 仓储服务
* 1. 定义仓储接口,之后由基础设施层做具体实现
*/
package com.x9x.radp.domain.xxx.adapter.repository;
package space.x9x.radp.domain.yyy.adapter.repository;
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
* 2. 聚合是聚合的对象,和提供基础处理对象的方法。但不建议在聚合中引入仓储和接口来做过大的逻辑。而这些复杂的操作应该放到service中处理
* 3. 对象名称 XxxAggregate
*/
package com.x9x.radp.domain.yyy.model.aggregate;
package space.x9x.radp.domain.yyy.model.aggregate;
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
* 3. 对象名称 <code>XxxEntity</code> <br/>
* 4. 实体对象唯一标识, 一般不使用数据库自增ID, 而是使用业务唯一标识。
*/
package com.x9x.radp.domain.yyy.model.entity;
package space.x9x.radp.domain.yyy.model.entity;
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
* 1. 用于描述对象属性的值,如一个库表中有json后者一个字段多个属性信息的枚举对象
* 2. 对象名称如;XxxVO
*/
package com.x9x.radp.domain.yyy.model.valobj;
package space.x9x.radp.domain.yyy.model.valobj;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package space.x9x.radp.domain.yyy.service;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite</artifactId>
<version>${revision}</version>
</parent>
Expand All @@ -17,21 +17,21 @@
</dependency>

<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-mybatis-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-liquibase-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-redis-spring-boot-starter</artifactId>
</dependency>

<!-- 自身模块 -->
<dependency>
<groupId>com.x9x.radp</groupId>
<groupId>space.x9x.radp</groupId>
<artifactId>radp-archetype-lite-domain</artifactId>
</dependency>
</dependencies>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 实现对外部的api调用,类的名称为 XxxPort 接口定义在 domain 中
*/
package com.x9x.radp.infrastructure.adapter.port;
package space.x9x.radp.infrastructure.adapter.port;
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
* 仓储实现;用于实现 domain 中定义的仓储接口,如;IXxxRepository 在 Repository 中调用服务
*/
package com.x9x.radp.infrastructure.adapter.repository;
package space.x9x.radp.infrastructure.adapter.repository;
Loading

0 comments on commit a2e38a8

Please sign in to comment.