Skip to content

Commit 31ca994

Browse files
committed
调整 Maven 项目组织结构,为本项目设置父模块 io.github.entropy-cloud:nop-extensions 以便于做整体构建并新增其他扩展模块;将 ReportDemoBizModel 提取到独立的 nop-demo 子模块中,并以依赖形式引入到 nop-solon 等模块的演示中,从而实现代码复用,避免重复 copy 文件;
1 parent 9c9b8ce commit 31ca994

29 files changed

+139
-214
lines changed

nop-demo/pom.xml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>io.github.entropy-cloud</groupId>
8+
<artifactId>nop-extensions</artifactId>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
11+
</parent>
12+
13+
<groupId>io.github.entropy-cloud.extensions</groupId>
14+
<artifactId>nop-demo</artifactId>
15+
16+
<dependencies>
17+
<!-- 引入报表服务 -->
18+
<dependency>
19+
<groupId>io.github.entropy-cloud</groupId>
20+
<artifactId>nop-report-core</artifactId>
21+
</dependency>
22+
23+
<dependency>
24+
<groupId>io.github.entropy-cloud</groupId>
25+
<artifactId>nop-report-service</artifactId>
26+
</dependency>
27+
28+
<dependency>
29+
<groupId>io.github.entropy-cloud</groupId>
30+
<artifactId>nop-report-web</artifactId>
31+
</dependency>
32+
</dependencies>
33+
</project>

nop-solon/nop-solon-demo/src/main/java/io/nop/solon/demo/biz/ReportDemoBizModel.java nop-demo/src/main/java/io/nop/extensions/demo/biz/ReportDemoBizModel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Gitee: https://gitee.com/canonical-entropy/nop-entropy
66
* Github: https://github.com/entropy-cloud/nop-entropy
77
*/
8-
package io.nop.solon.demo.biz;
8+
package io.nop.extensions.demo.biz;
99

1010
import io.nop.api.core.annotations.biz.BizModel;
1111
import io.nop.api.core.annotations.biz.BizQuery;

nop-solon/nop-solon-service-demo/src/main/resources/demo/beans/app-demo.beans.xml nop-demo/src/main/resources/_vfs/nop/demo/beans/app-demo.beans.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66
xsi:schemaLocation="http://www.springframework.org/schema/beans
77
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd" xmlns:ioc="ioc">
8-
<bean id="io.nop.solon.demo.biz.ReportDemoBizModel" ioc:type="@bean:id" />
9-
</beans>
8+
<bean id="io.nop.extensions.demo.biz.ReportDemoBizModel" ioc:type="@bean:id" />
9+
</beans>

nop-solon/nop-solon-demo/pom.xml

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>io.github.entropy-cloud.extensions</groupId>
88
<artifactId>nop-solon</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>nop-solon-demo</artifactId>
@@ -16,13 +17,16 @@
1617
<dependency>
1718
<groupId>org.noear</groupId>
1819
<artifactId>solon-api</artifactId>
19-
<version>${solon.version}</version>
2020
</dependency>
2121

2222
<dependency>
2323
<groupId>io.github.entropy-cloud.extensions</groupId>
2424
<artifactId>nop-solon-plugin</artifactId>
25-
<version>1.0-SNAPSHOT</version>
25+
</dependency>
26+
27+
<dependency>
28+
<groupId>io.github.entropy-cloud.extensions</groupId>
29+
<artifactId>nop-demo</artifactId>
2630
</dependency>
2731

2832
<!-- 以下所有包都是可选的 -->
@@ -146,4 +150,4 @@
146150
</plugin>
147151
</plugins>
148152
</build>
149-
</project>
153+
</project>

nop-solon/nop-solon-demo/src/main/resources/_vfs/nop/demo/beans/app-demo.beans.xml

-9
This file was deleted.

nop-solon/nop-solon-plugin/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>io.github.entropy-cloud.extensions</groupId>
88
<artifactId>nop-solon</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>nop-solon-plugin</artifactId>
@@ -15,7 +16,6 @@
1516
<dependency>
1617
<groupId>org.noear</groupId>
1718
<artifactId>solon.web.staticfiles</artifactId>
18-
<version>${solon.version}</version>
1919
</dependency>
2020

2121
<dependency>
@@ -49,4 +49,4 @@
4949
</dependency>
5050

5151
</dependencies>
52-
</project>
52+
</project>

nop-solon/nop-solon-service-demo/pom.xml

+8-4
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<parent>
77
<groupId>io.github.entropy-cloud.extensions</groupId>
88
<artifactId>nop-solon</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.0.0-SNAPSHOT</version>
10+
<relativePath>../pom.xml</relativePath>
1011
</parent>
1112

1213
<artifactId>nop-solon-service-demo</artifactId>
@@ -15,13 +16,11 @@
1516
<dependency>
1617
<groupId>org.noear</groupId>
1718
<artifactId>solon-api</artifactId>
18-
<version>${solon.version}</version>
1919
</dependency>
2020

2121
<dependency>
2222
<groupId>io.github.entropy-cloud.extensions</groupId>
2323
<artifactId>nop-solon-plugin</artifactId>
24-
<version>1.0-SNAPSHOT</version>
2524
<exclusions>
2625
<exclusion>
2726
<artifactId>antlr4</artifactId>
@@ -30,6 +29,11 @@
3029
</exclusions>
3130
</dependency>
3231

32+
<dependency>
33+
<groupId>io.github.entropy-cloud.extensions</groupId>
34+
<artifactId>nop-demo</artifactId>
35+
</dependency>
36+
3337
<!-- 以下所有包都是可选的 -->
3438

3539
<dependency>
@@ -112,4 +116,4 @@
112116
</plugin>
113117
</plugins>
114118
</build>
115-
</project>
119+
</project>

nop-solon/nop-solon-service-demo/src/main/java/io/nop/solon/demo/biz/ReportDemoBizModel.java

-136
This file was deleted.

nop-solon/nop-solon-service-demo/src/main/resources/demo/_module

Whitespace-only changes.

nop-solon/nop-solon-service-demo/src/main/resources/demo/app.action-auth.xml

-20
This file was deleted.

nop-solon/nop-solon-service-demo/src/main/resources/demo/app.data-auth.xml

-7
This file was deleted.

0 commit comments

Comments
 (0)