308 lines
11 KiB
XML
308 lines
11 KiB
XML
<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.sunyard</groupId>
|
||
<artifactId>sydapi4j</artifactId>
|
||
<version>1.0.201809191421</version>
|
||
<packaging>jar</packaging>
|
||
|
||
<name>sydapi4j</name>
|
||
<url>http://maven.apache.org</url>
|
||
|
||
<properties>
|
||
<vertx>3.4.2</vertx>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<kotlin.version>1.2.31</kotlin.version>
|
||
<maven.compiler.encoding>UTF-8</maven.compiler.encoding>
|
||
</properties>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>3.8.1</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.jetbrains.kotlin</groupId>
|
||
<artifactId>kotlin-test</artifactId>
|
||
<version>${kotlin.version}</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.slf4j</groupId>
|
||
<artifactId>slf4j-api</artifactId>
|
||
<version>1.7.10</version>
|
||
</dependency>
|
||
<dependency> <!-- 桥接:告诉Slf4j使用Log4j2 -->
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-slf4j-impl</artifactId>
|
||
<version>2.9.1</version>
|
||
</dependency>
|
||
<dependency> <!-- 桥接:告诉commons logging使用Log4j2 -->
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-jcl</artifactId>
|
||
<version>2.9.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-api</artifactId>
|
||
<version>2.9.1</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.apache.logging.log4j</groupId>
|
||
<artifactId>log4j-core</artifactId>
|
||
<version>2.9.1</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/dom4j/dom4j -->
|
||
<dependency>
|
||
<groupId>dom4j</groupId>
|
||
<artifactId>dom4j</artifactId>
|
||
<version>1.6.1</version>
|
||
</dependency>
|
||
|
||
|
||
<dependency>
|
||
<groupId>org.codehaus.groovy</groupId>
|
||
<artifactId>groovy-all</artifactId>
|
||
<version>2.3.2</version>
|
||
</dependency>
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>fastjson</artifactId>
|
||
<version>1.2.39</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.jetbrains.kotlin</groupId>
|
||
<artifactId>kotlin-stdlib-jdk8</artifactId>
|
||
<version>${kotlin.version}</version>
|
||
</dependency>
|
||
|
||
|
||
<!--<dependency>-->
|
||
<!--<groupId>com.sunyard</groupId>-->
|
||
<!--<artifactId>Converter</artifactId>-->
|
||
<!--<version>[1.0.201807251700, 1.1-SNAPSHOT)</version>-->
|
||
<!--</dependency>-->
|
||
|
||
<dependency>
|
||
<groupId>com.sunyard</groupId>
|
||
<artifactId>dproto</artifactId>
|
||
<version>1.0-SNAPSHOT</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>junit</groupId>
|
||
<artifactId>junit</artifactId>
|
||
<version>4.12</version>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!--<dependency>-->
|
||
<!--<groupId>club.fullstack</groupId>-->
|
||
<!--<artifactId>serialize</artifactId>-->
|
||
<!--<version>[1.0.201806051035, 1.1.SNAPSHOT)</version>-->
|
||
<!--</dependency>-->
|
||
|
||
|
||
<!-- https://mvnrepository.com/artifact/com.github.wvengen/proguard-maven-plugin -->
|
||
<!-- https://mvnrepository.com/artifact/com.github.wvengen/proguard-maven-plugin -->
|
||
</dependencies>
|
||
<build>
|
||
<finalName>sydapi4j</finalName>
|
||
<plugins>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-javadoc-plugin</artifactId>
|
||
<version>3.1.1</version>
|
||
<configuration>
|
||
<reportOutputDirectory>./public/</reportOutputDirectory>
|
||
<destDir>html</destDir>
|
||
<additionalOptions>html5</additionalOptions>
|
||
<excludePackageNames>com.sunyard.SydApi:com.sunyard.inf.*:com.sunyard.cert.*</excludePackageNames>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
<version>2.4</version>
|
||
|
||
<!-- 进行package命令时就可以将源码同时进行打包 -->
|
||
<!-- 所以我们需要绑定source插件到我们default生命周期的package阶段 -->
|
||
<executions>
|
||
<execution>
|
||
<!-- 定义一个阶段,这个阶段是package -->
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>jar-no-fork</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.codehaus.groovy</groupId>
|
||
<artifactId>groovy-eclipse-compiler</artifactId>
|
||
<version>2.9.2-01</version>
|
||
<extensions>true</extensions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<configuration>
|
||
<archive>
|
||
<manifest>
|
||
<addClasspath>true</addClasspath>
|
||
<classpathPrefix>lib/</classpathPrefix>
|
||
<mainClass>com.xxx.uploadFile</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
</configuration>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-dependency-plugin</artifactId>
|
||
<executions>
|
||
<execution>
|
||
<id>copy</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>copy-dependencies</goal>
|
||
</goals>
|
||
<configuration>
|
||
<outputDirectory>
|
||
${project.build.directory}/lib
|
||
</outputDirectory>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
|
||
<plugin>
|
||
<artifactId>maven-assembly-plugin</artifactId>
|
||
<configuration>
|
||
<archive>
|
||
<manifest>
|
||
<mainClass>racal.sunyard.main.Version</mainClass>
|
||
</manifest>
|
||
</archive>
|
||
<descriptorRefs>
|
||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||
</descriptorRefs>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>single</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
|
||
<plugin>
|
||
<groupId>org.jetbrains.kotlin</groupId>
|
||
<artifactId>kotlin-maven-plugin</artifactId>
|
||
<version>${kotlin.version}</version>
|
||
<executions>
|
||
<execution>
|
||
<id>compile</id>
|
||
<phase>compile</phase>
|
||
<goals>
|
||
<goal>compile</goal>
|
||
</goals>
|
||
<configuration>
|
||
<sourceDirs>
|
||
<source>src/main/java</source>
|
||
</sourceDirs>
|
||
</configuration>
|
||
</execution>
|
||
<execution>
|
||
<id>test-compile</id>
|
||
<phase>test-compile</phase>
|
||
<goals>
|
||
<goal>test-compile</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<jvmTarget>1.6</jvmTarget>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.3</version>
|
||
<executions>
|
||
<execution>
|
||
<id>compile</id>
|
||
<phase>compile</phase>
|
||
<goals>
|
||
<goal>compile</goal>
|
||
</goals>
|
||
</execution>
|
||
<execution>
|
||
<id>testCompile</id>
|
||
<phase>test-compile</phase>
|
||
<goals>
|
||
<goal>testCompile</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<source>8</source>
|
||
<target>8</target>
|
||
<compilerId>groovy-eclipse-compiler</compilerId>
|
||
<verbose>true</verbose>
|
||
<fork>true</fork>
|
||
</configuration>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.codehaus.groovy</groupId>
|
||
<artifactId>groovy-eclipse-compiler</artifactId>
|
||
<version>2.9.2-01</version>
|
||
</dependency> <!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch -->
|
||
<dependency>
|
||
<groupId>org.codehaus.groovy</groupId>
|
||
<artifactId>groovy-eclipse-batch</artifactId>
|
||
<version>2.4.3-01</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</plugin>
|
||
</plugins>
|
||
<!-- 主资源目录 -->
|
||
<resources>
|
||
<resource>
|
||
<!-- 设定主资源目录 -->
|
||
<directory>src/main/resources</directory>
|
||
</resource>
|
||
</resources>
|
||
</build>
|
||
|
||
<distributionManagement>
|
||
<snapshotRepository>
|
||
<id>nexus-own</id>
|
||
<name>repo-snapshot</name>
|
||
<url>${SnapshotRepository}</url>
|
||
</snapshotRepository>
|
||
<repository>
|
||
<id>nexus-own</id>
|
||
<name>repo-release</name>
|
||
<url>${ReleaseRepository}</url>
|
||
</repository>
|
||
</distributionManagement>
|
||
|
||
|
||
</project>
|