Prechádzať zdrojové kódy

把 4 个模块放到同一个父模块下, 便于自动化构建

reghao 1 rok pred
rodič
commit
484bf0d08a
5 zmenil súbory, kde vykonal 45 pridanie a 4 odobranie
  1. 5 1
      oss-api/pom.xml
  2. 5 1
      oss-console/pom.xml
  3. 5 1
      oss-sdk/pom.xml
  4. 6 1
      oss-store/pom.xml
  5. 24 0
      pom.xml

+ 5 - 1
oss-api/pom.xml

@@ -3,8 +3,12 @@
          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">
     <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>oss</artifactId>
+        <groupId>cn.reghao.oss</groupId>
+        <version>1.0.0</version>
+    </parent>
 
-    <groupId>cn.reghao.oss</groupId>
     <artifactId>oss-api</artifactId>
     <version>1.0.0-SNAPSHOT</version>
 

+ 5 - 1
oss-console/pom.xml

@@ -3,8 +3,12 @@
          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">
     <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>oss</artifactId>
+        <groupId>cn.reghao.oss</groupId>
+        <version>1.0.0</version>
+    </parent>
 
-    <groupId>cn.reghao.oss</groupId>
     <artifactId>oss-console</artifactId>
     <version>1.0.0</version>
     <packaging>jar</packaging>

+ 5 - 1
oss-sdk/pom.xml

@@ -3,8 +3,12 @@
          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">
     <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>oss</artifactId>
+        <groupId>cn.reghao.oss</groupId>
+        <version>1.0.0</version>
+    </parent>
 
-    <groupId>cn.reghao.oss</groupId>
     <artifactId>oss-sdk</artifactId>
     <version>1.0.0-SNAPSHOT</version>
 

+ 6 - 1
oss-store/pom.xml

@@ -3,10 +3,15 @@
          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">
     <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>oss</artifactId>
+        <groupId>cn.reghao.oss</groupId>
+        <version>1.0.0</version>
+    </parent>
 
-    <groupId>cn.reghao.oss</groupId>
     <artifactId>oss-store</artifactId>
     <version>1.0.0</version>
+    <packaging>jar</packaging>
 
     <properties>
         <maven.compiler.source>11</maven.compiler.source>

+ 24 - 0
pom.xml

@@ -0,0 +1,24 @@
+<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>cn.reghao.oss</groupId>
+    <artifactId>oss</artifactId>
+    <version>1.0.0</version>
+    <packaging>pom</packaging>
+    <modules>
+        <module>oss-api</module>
+        <module>oss-sdk</module>
+        <module>oss-console</module>
+        <module>oss-store</module>
+    </modules>
+
+    <properties>
+        <maven.compiler.source>11</maven.compiler.source>
+        <maven.compiler.target>11</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+    </properties>
+</project>