101 lines
4.0 KiB
XML
101 lines
4.0 KiB
XML
<?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">
|
||
<parent>
|
||
<groupId>com.ensign</groupId>
|
||
<artifactId>ensign</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<artifactId>ensign-server</artifactId>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>
|
||
后端 Server 的主项目,通过引入需要 ensign-module-xxx 的依赖,
|
||
从而实现提供 RESTful API 给 ensign-ui-admin、ensign-ui-user 等前端项目。
|
||
本质上来说,它就是个空壳(容器)!
|
||
</description>
|
||
<url>https://github.com/YunaiV/ruoyi-vue-pro</url>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.ensign</groupId>
|
||
<artifactId>ensign-module-system-biz</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.ensign</groupId>
|
||
<artifactId>ensign-module-infra-biz</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<!-- spring boot 配置所需依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||
<optional>true</optional>
|
||
</dependency>
|
||
|
||
<!-- 服务保障相关 -->
|
||
<dependency>
|
||
<groupId>com.ensign</groupId>
|
||
<artifactId>ensign-spring-boot-starter-protection</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.ensign</groupId>
|
||
<artifactId>ensign-module-crm-biz</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<!-- 设置构建的 jar 包名 -->
|
||
<plugins>
|
||
<!-- 指定启动类,将依赖打成外部jar包 -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<configuration>
|
||
<archive>
|
||
<!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
|
||
<addMavenDescriptor>false</addMavenDescriptor>
|
||
<manifest>
|
||
<!-- 是否要把第三方jar加入到类构建路径 -->
|
||
<addClasspath>true</addClasspath>
|
||
<!-- 外部依赖jar包的最终位置 -->
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<!-- 项目启动类 -->
|
||
<mainClass>com.ensign.crm.server.EnsignServerApplication</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
<finalName>${project.artifactId}</finalName>
|
||
</configuration>
|
||
</plugin>
|
||
<!--拷贝依赖到jar外面的lib目录-->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-lib</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-dependencies</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>target/lib</outputDirectory>
|
||
<excludeTransitive>false</excludeTransitive>
|
||
<stripVersion>false</stripVersion>
|
||
<includeScope>runtime</includeScope>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|