init:增加common模块

This commit is contained in:
zhangzq
2026-04-02 11:02:32 +08:00
parent ffd7bbfe72
commit be792ff35d
3 changed files with 52 additions and 0 deletions

38
oms-common/pom.xml Normal file
View File

@@ -0,0 +1,38 @@
<?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>
<groupId>org.nl</groupId>
<artifactId>omsCloud</artifactId>
<version>0.0.1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>oms-common</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>oms-common</name>
<properties>
<java.version>17</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<!--不生成spring启动器-->
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</project>

View File

@@ -0,0 +1,13 @@
package org.nl.common;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class OmsCommonApplication {
public static void main(String[] args) {
SpringApplication.run(OmsCommonApplication.class, args);
}
}

View File

@@ -28,6 +28,7 @@
<module>oms-gateway</module> <!-- 注意:这里只聚合父模块 -->
<module>oms-masterdata</module> <!-- 注意:这里只聚合父模块 -->
<module>oms-user</module> <!-- 注意:这里只聚合父模块 -->
<module>oms-common</module> <!-- 注意:这里只聚合父模块 -->
</modules>
<dependencyManagement>
<dependencies>