|
@@ -0,0 +1,75 @@
|
|
|
|
|
+<?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.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
|
+ <version>2.7.18</version>
|
|
|
|
|
+ <relativePath/>
|
|
|
|
|
+ </parent>
|
|
|
|
|
+
|
|
|
|
|
+ <groupId>com.demo</groupId>
|
|
|
|
|
+ <artifactId>mf-backend</artifactId>
|
|
|
|
|
+ <version>1.0.0</version>
|
|
|
|
|
+ <packaging>war</packaging>
|
|
|
|
|
+ <name>mf-backend</name>
|
|
|
|
|
+ <description>微前端平台后端服务(兼容东方通 TongWeb 部署)</description>
|
|
|
|
|
+
|
|
|
|
|
+ <properties>
|
|
|
|
|
+ <java.version>1.8</java.version>
|
|
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
+ </properties>
|
|
|
|
|
+
|
|
|
|
|
+ <dependencies>
|
|
|
|
|
+ <!-- Web 依赖:排除内嵌 Tomcat,便于在东方通等外置容器部署 -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
|
+ <exclusions>
|
|
|
|
|
+ <exclusion>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
+ </exclusion>
|
|
|
|
|
+ </exclusions>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 内嵌 Tomcat 作为 provided:开发/本地以 java -jar 运行时生效;
|
|
|
|
|
+ 打进 WAR 时不包含,避免与东方通 Servlet 容器冲突 -->
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
|
+ <scope>provided</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <dependency>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-starter-test</artifactId>
|
|
|
|
|
+ <scope>test</scope>
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+ </dependencies>
|
|
|
|
|
+
|
|
|
|
|
+ <build>
|
|
|
|
|
+ <!-- WAR 包名称(部署到东方通时的应用名) -->
|
|
|
|
|
+ <finalName>mf-backend</finalName>
|
|
|
|
|
+ <plugins>
|
|
|
|
|
+ <!-- 无 web.xml 也可打 WAR(Servlet 3.0 注解方式,由 SpringBootServletInitializer 引导) -->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
|
|
+ <configuration>
|
|
|
|
|
+ <failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
|
+ </configuration>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ <!-- 打包为可执行 WAR:既可用 java -jar 本地运行,也可部署到东方通 -->
|
|
|
|
|
+ <plugin>
|
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
|
|
+ </plugin>
|
|
|
|
|
+ </plugins>
|
|
|
|
|
+ </build>
|
|
|
|
|
+</project>
|