272 lines
11 KiB
XML
272 lines
11 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>
|
||
<artifactId>common-development-platform</artifactId>
|
||
<groupId>org.dromara</groupId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<packaging>jar</packaging>
|
||
<artifactId>mps-server</artifactId>
|
||
|
||
<description>
|
||
web服务入口
|
||
</description>
|
||
|
||
<dependencies>
|
||
|
||
<!-- Mysql驱动包 -->
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 达梦驱动包 -->
|
||
<dependency>
|
||
<groupId>com.dameng</groupId>
|
||
<artifactId>DmJdbcDriver18</artifactId>
|
||
<version>8.1.2.79</version>
|
||
</dependency>
|
||
|
||
<!-- <!– mp支持的数据库均支持 只需要增加对应的jdbc依赖即可 –>-->
|
||
<!-- <!– Oracle –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.oracle.database.jdbc</groupId>-->
|
||
<!-- <artifactId>ojdbc8</artifactId>-->
|
||
<!-- </dependency>-->
|
||
<!-- <!– 兼容oracle低版本 –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.oracle.database.nls</groupId>-->
|
||
<!-- <artifactId>orai18n</artifactId>-->
|
||
<!-- </dependency>-->
|
||
<!-- <!– PostgreSql –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.postgresql</groupId>-->
|
||
<!-- <artifactId>postgresql</artifactId>-->
|
||
<!-- </dependency>-->
|
||
<!-- <!– SqlServer –>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>com.microsoft.sqlserver</groupId>-->
|
||
<!-- <artifactId>mssql-jdbc</artifactId>-->
|
||
<!-- </dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-common-doc</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-common-social</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-common-ratelimiter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-common-mail</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-system</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-job</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 代码生成-->
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-generator</artifactId>
|
||
</dependency>
|
||
|
||
<!-- demo模块 -->
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-demo</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 工作流模块 -->
|
||
<dependency>
|
||
<groupId>org.dromara</groupId>
|
||
<artifactId>cds-workflow</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>de.codecentric</groupId>
|
||
<artifactId>spring-boot-admin-starter-client</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- skywalking 整合 logback -->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.apache.skywalking</groupId>-->
|
||
<!-- <artifactId>apm-toolkit-logback-1.x</artifactId>-->
|
||
<!-- <version>${与你的agent探针版本保持一致}</version>-->
|
||
<!-- </dependency>-->
|
||
<!-- <dependency>-->
|
||
<!-- <groupId>org.apache.skywalking</groupId>-->
|
||
<!-- <artifactId>apm-toolkit-trace</artifactId>-->
|
||
<!-- <version>${与你的agent探针版本保持一致}</version>-->
|
||
<!-- </dependency>-->
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<finalName>${project.artifactId}</finalName>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
<version>${spring-boot.version}</version>
|
||
<executions>
|
||
<execution>
|
||
<goals>
|
||
<goal>repackage</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<version>${maven-jar-plugin.version}</version>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-war-plugin</artifactId>
|
||
<version>${maven-war-plugin.version}</version>
|
||
<configuration>
|
||
<!--如果想在没有web.xml文件的情况下构建WAR,请设置为false。-->
|
||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||
<warName>${project.artifactId}</warName>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
|
||
<!-- 使用maven-resources-plugin复制配置文件到target/deploy/config -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>3.2.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-config-resources</id>
|
||
<phase>package</phase> <!-- 绑定到package阶段 -->
|
||
<goals>
|
||
<goal>copy-resources</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.parent.basedir}/deploy/config</outputDirectory>
|
||
<overwrite>true</overwrite>
|
||
<resources>
|
||
<resource>
|
||
<!-- 指定配置文件源目录 -->
|
||
<directory>src/main/resources</directory>
|
||
<includes>
|
||
<include>application*.yml</include>
|
||
<include>application*.properties</include>
|
||
<include>logback-plus.xml</include>
|
||
<!-- 包括其他需要的配置文件 -->
|
||
</includes>
|
||
<filtering>true</filtering> <!-- 如果需要替换pom中的属性,则开启 -->
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</execution>
|
||
|
||
<execution>
|
||
<id>copy-scripts</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-resources</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.parent.basedir}/deploy/bin</outputDirectory>
|
||
<overwrite>true</overwrite>
|
||
<resources>
|
||
<resource>
|
||
<!-- 指定启动脚本源目录 -->
|
||
<directory>${project.parent.basedir}/script/bin</directory>
|
||
<includes>
|
||
<include>*.sh</include>
|
||
<!--<include>*.bat</include>-->
|
||
</includes>
|
||
<filtering>false</filtering>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<!-- 使用maven-resources-plugin复制启动脚本到target/deploy/bin -->
|
||
<!--<plugin>
|
||
<artifactId>maven-resources-plugin</artifactId>
|
||
<version>3.2.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>copy-scripts</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-resources</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>${project.parent.basedir}/deploy/bin</outputDirectory>
|
||
<resources>
|
||
<resource>
|
||
<!– 指定启动脚本源目录 –>
|
||
<directory>${project.parent.basedir}/script/bin</directory>
|
||
<includes>
|
||
<include>start.sh</include>
|
||
<!–<include>*.bat</include>–>
|
||
</includes>
|
||
<filtering>false</filtering>
|
||
</resource>
|
||
</resources>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>-->
|
||
|
||
<!-- 使用maven-antrun-plugin移动FatJar到target/deploy/bin/ -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-antrun-plugin</artifactId>
|
||
<version>3.1.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>move-jar</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>run</goal>
|
||
</goals>
|
||
<configuration>
|
||
<target>
|
||
<!-- 复制生成的FatJar文件 -->
|
||
<copy file="${project.build.directory}/${project.build.finalName}.jar"
|
||
tofile="../deploy/bin/${project.build.finalName}.jar"/>
|
||
<echo message="File copied to dist directory."/>
|
||
</target>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
|
||
</project>
|