子模块获取父模块的revision一直报错,调整相对路径

This commit is contained in:
mianbin 2024-12-28 18:45:21 +08:00
parent 4e8d5e0ecc
commit 258f6e823f
2 changed files with 59 additions and 30 deletions

29
framework/pom.xml Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>ops-pro</artifactId>
<groupId>cd.casic.boot</groupId>
<version>${revision}</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>framework</artifactId>
<groupId>cd.casic.boot</groupId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>
该包是技术组件,每个子包,代表一个组件。每个组件包括两部分:
1. core 包:是该组件的核心封装
2. config 包:是该组件基于 Spring 的配置
技术组件,也分成两类:
1. 框架组件如MyBatis、Redis 等等的拓展
2. 业务组件和业务相关的组件的封装,例如说数据字典、操作日志等等。
如果是业务组件Maven 名字会包含 biz
</description>
</project>

60
pom.xml
View File

@ -4,15 +4,15 @@
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>
<groupId>cd.casic.ops</groupId>
<artifactId>ops-pro</artifactId>
<groupId>cd.casic.boot</groupId>
<version>${revision}</version>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<modules>
<module>dependencies</module>
<!-- <module>ops-framework</module>-->
<module>framework</module>
<!-- <module>ops-module-infra</module>-->
<!-- <module>ops-module-system</module>-->
<!-- <module>ops-module-plugins</module>-->
@ -128,35 +128,35 @@
</build>
<!-- 使用 huawei / aliyun 的 Maven 源,提升下载速度 -->
<!-- <repositories>-->
<!-- <repository>-->
<!-- <id>huaweicloud</id>-->
<!-- <name>huawei</name>-->
<!-- <url>https://mirrors.huaweicloud.com/repository/maven/</url>-->
<!-- </repository>-->
<!-- <repository>-->
<!-- <id>aliyunmaven</id>-->
<!-- <name>aliyun</name>-->
<!-- <url>https://maven.aliyun.com/repository/public</url>-->
<!-- </repository>-->
<repositories>
<repository>
<id>huaweicloud</id>
<name>huawei</name>
<url>https://mirrors.huaweicloud.com/repository/maven/</url>
</repository>
<repository>
<id>aliyunmaven</id>
<name>aliyun</name>
<url>https://maven.aliyun.com/repository/public</url>
</repository>
<!-- <repository>-->
<!-- <id>spring-milestones</id>-->
<!-- <name>Spring Milestones</name>-->
<!-- <url>https://repo.spring.io/milestone</url>-->
<!-- <snapshots>-->
<!-- <enabled>false</enabled>-->
<!-- </snapshots>-->
<!-- </repository>-->
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<!-- <repository>-->
<!-- <id>spring-snapshots</id>-->
<!-- <name>Spring Snapshots</name>-->
<!-- <url>https://repo.spring.io/snapshot</url>-->
<!-- <releases>-->
<!-- <enabled>false</enabled>-->
<!-- </releases>-->
<!-- </repository>-->
<!-- </repositories>-->
<repository>
<id>spring-snapshots</id>
<name>Spring Snapshots</name>
<url>https://repo.spring.io/snapshot</url>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
</project>