|
|
|
|
|
<?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>com.chaozhou</groupId>
|
|
|
|
|
|
<artifactId>emr_sync_czry</artifactId>
|
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- Oracle JDBC 核心驱动 -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.oracle.database.jdbc</groupId>
|
|
|
|
|
|
<artifactId>ojdbc8</artifactId>
|
|
|
|
|
|
<version>19.3.0.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/com.oracle.database.nls/orai18n -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.oracle.database.nls</groupId>
|
|
|
|
|
|
<artifactId>orai18n</artifactId>
|
|
|
|
|
|
<version>21.3.0.0</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
|
|
<version>5.1.32</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- SQL Server JDBC -->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
|
|
|
|
<artifactId>mssql-jdbc</artifactId>
|
|
|
|
|
|
<version>11.2.1.jre8</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Lombok(@Slf4j)-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
|
|
<version>1.18.24</version>
|
|
|
|
|
|
<scope>provided</scope>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Logback(SLF4J 实现)-->
|
|
|
|
|
|
<dependency>
|
|
|
|
|
|
<groupId>ch.qos.logback</groupId>
|
|
|
|
|
|
<artifactId>logback-classic</artifactId>
|
|
|
|
|
|
<version>1.2.11</version>
|
|
|
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
|
<plugins>
|
|
|
|
|
|
<!-- 编译插件 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
|
|
<version>3.8.1</version>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<source>8</source>
|
|
|
|
|
|
<target>8</target>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 打胖 jar(含依赖 + Main-Class)并修复 SPI + 去签名 -->
|
|
|
|
|
|
<plugin>
|
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
|
|
|
|
|
<version>3.4.1</version>
|
|
|
|
|
|
<executions>
|
|
|
|
|
|
<execution>
|
|
|
|
|
|
<phase>package</phase>
|
|
|
|
|
|
<goals>
|
|
|
|
|
|
<goal>shade</goal>
|
|
|
|
|
|
</goals>
|
|
|
|
|
|
<configuration>
|
|
|
|
|
|
<transformers>
|
|
|
|
|
|
<!-- 合并 META-INF/services 防止 JDBC SPI 丢失 -->
|
|
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
|
|
|
<!-- 指定启动类 -->
|
|
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
|
|
|
<mainClass>com.chaozhou.ArchiveSync</mainClass>
|
|
|
|
|
|
</transformer>
|
|
|
|
|
|
</transformers>
|
|
|
|
|
|
<!-- 剔除签名文件,避免 SecurityException -->
|
|
|
|
|
|
<filters>
|
|
|
|
|
|
<filter>
|
|
|
|
|
|
<artifact>*:*</artifact>
|
|
|
|
|
|
<excludes>
|
|
|
|
|
|
<exclude>META-INF/*.SF</exclude>
|
|
|
|
|
|
<exclude>META-INF/*.DSA</exclude>
|
|
|
|
|
|
<exclude>META-INF/*.RSA</exclude>
|
|
|
|
|
|
</excludes>
|
|
|
|
|
|
</filter>
|
|
|
|
|
|
</filters>
|
|
|
|
|
|
</configuration>
|
|
|
|
|
|
</execution>
|
|
|
|
|
|
</executions>
|
|
|
|
|
|
</plugin>
|
|
|
|
|
|
</plugins>
|
|
|
|
|
|
</build>
|
|
|
|
|
|
</project>
|