|
@@ -3,11 +3,6 @@
|
|
|
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>
|
|
|
- <parent>
|
|
|
- <groupId>com.ctrip</groupId>
|
|
|
- <artifactId>super-pom</artifactId>
|
|
|
- <version>1.0.0</version>
|
|
|
- </parent>
|
|
|
|
|
|
<groupId>com.ctrip.framework</groupId>
|
|
|
<artifactId>framework-parent</artifactId>
|
|
@@ -20,14 +15,13 @@
|
|
|
<url>http://www.ctrip.com</url>
|
|
|
</organization>
|
|
|
<properties>
|
|
|
- <!-- Maven Release Repository URL -->
|
|
|
- <releases.repo>http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxrelease</releases.repo>
|
|
|
- <!-- Maven Snapshot Repository URL -->
|
|
|
- <snapshots.repo>http://maven.dev.sh.ctripcorp.com:8081/nexus/content/repositories/fxsnapshot</snapshots.repo>
|
|
|
+ <java.version>1.7</java.version>
|
|
|
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<!-- Common Dependencies Version -->
|
|
|
<commons-beanutils.version>1.9.3</commons-beanutils.version>
|
|
|
<commons-codec.version>1.10</commons-codec.version>
|
|
|
<commons-lang.version>2.6</commons-lang.version>
|
|
|
+ <commons-logging.version>1.2</commons-logging.version>
|
|
|
<fastjson.version>1.2.28</fastjson.version>
|
|
|
<foundation-service.version>2.5.6</foundation-service.version>
|
|
|
<gson.version>2.8.0</gson.version>
|
|
@@ -40,10 +34,24 @@
|
|
|
<jackson2.version>2.8.5</jackson2.version>
|
|
|
<junit.version>4.12</junit.version>
|
|
|
<libthrift.version>0.9.3</libthrift.version>
|
|
|
+ <log4j.version>1.2.17</log4j.version>
|
|
|
+ <log4j2.version>2.7</log4j2.version>
|
|
|
+ <logback.version>1.1.7</logback.version>
|
|
|
<netty4.version>4.0.36.Final</netty4.version>
|
|
|
+ <slf4j.version>1.7.21</slf4j.version>
|
|
|
<snappy-java.version>1.1.2.6</snappy-java.version>
|
|
|
+ <spring.version>4.3.4.RELEASE</spring.version>
|
|
|
<testng.version>6.10</testng.version>
|
|
|
<validation-api.version>1.1.0.Final</validation-api.version>
|
|
|
+ <!-- Plugins Version -->
|
|
|
+ <maven-compiler-plugin.version>3.6.0</maven-compiler-plugin.version>
|
|
|
+ <maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
|
|
|
+ <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
|
|
|
+ <maven-jar-plugin.version>3.0.2</maven-jar-plugin.version>
|
|
|
+ <maven-war-plugin.version>3.0.0</maven-war-plugin.version>
|
|
|
+ <maven-install-plugin.version>2.5.2</maven-install-plugin.version>
|
|
|
+ <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version>
|
|
|
+ <maven-enforcer-plugin.version>1.4.1</maven-enforcer-plugin.version>
|
|
|
</properties>
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
@@ -86,13 +94,6 @@
|
|
|
<groupId>commons-beanutils</groupId>
|
|
|
<artifactId>commons-beanutils</artifactId>
|
|
|
<version>${commons-beanutils.version}</version>
|
|
|
- <exclusions>
|
|
|
- <!-- commons-logging is banned -->
|
|
|
- <exclusion>
|
|
|
- <groupId>commons-logging</groupId>
|
|
|
- <artifactId>commons-logging</artifactId>
|
|
|
- </exclusion>
|
|
|
- </exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>commons-codec</groupId>
|
|
@@ -104,6 +105,11 @@
|
|
|
<artifactId>commons-lang</artifactId>
|
|
|
<version>${commons-lang.version}</version>
|
|
|
</dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>commons-logging</groupId>
|
|
|
+ <artifactId>commons-logging</artifactId>
|
|
|
+ <version>${commons-logging.version}</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
<!-- validator -->
|
|
|
<dependency>
|
|
@@ -122,13 +128,6 @@
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
<artifactId>httpclient</artifactId>
|
|
|
<version>${httpclient.version}</version>
|
|
|
- <exclusions>
|
|
|
- <!-- commons-logging is banned -->
|
|
|
- <exclusion>
|
|
|
- <groupId>commons-logging</groupId>
|
|
|
- <artifactId>commons-logging</artifactId>
|
|
|
- </exclusion>
|
|
|
- </exclusions>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
@@ -144,18 +143,88 @@
|
|
|
<groupId>org.apache.httpcomponents</groupId>
|
|
|
<artifactId>httpasyncclient</artifactId>
|
|
|
<version>${httpasyncclient.version}</version>
|
|
|
- <exclusions>
|
|
|
- <!-- commons-logging is banned -->
|
|
|
- <exclusion>
|
|
|
- <groupId>commons-logging</groupId>
|
|
|
- <artifactId>commons-logging</artifactId>
|
|
|
- </exclusion>
|
|
|
- </exclusions>
|
|
|
</dependency>
|
|
|
|
|
|
- <!-- log is defined in super pom -->
|
|
|
+ <!-- log -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-api</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>jcl-over-slf4j</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>jul-to-slf4j</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>log4j-over-slf4j</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-jdk14</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-log4j12</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.slf4j</groupId>
|
|
|
+ <artifactId>slf4j-simple</artifactId>
|
|
|
+ <version>${slf4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>log4j</groupId>
|
|
|
+ <artifactId>log4j</artifactId>
|
|
|
+ <version>${log4j.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-access</artifactId>
|
|
|
+ <version>${logback.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-classic</artifactId>
|
|
|
+ <version>${logback.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>ch.qos.logback</groupId>
|
|
|
+ <artifactId>logback-core</artifactId>
|
|
|
+ <version>${logback.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-api</artifactId>
|
|
|
+ <version>${log4j2.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-core</artifactId>
|
|
|
+ <version>${log4j2.version}</version>
|
|
|
+ </dependency>
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.apache.logging.log4j</groupId>
|
|
|
+ <artifactId>log4j-slf4j-impl</artifactId>
|
|
|
+ <version>${log4j2.version}</version>
|
|
|
+ </dependency>
|
|
|
|
|
|
- <!-- spring is defined in super pom -->
|
|
|
+ <!-- spring -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>org.springframework</groupId>
|
|
|
+ <artifactId>spring-framework-bom</artifactId>
|
|
|
+ <version>${spring.version}</version>
|
|
|
+ <scope>import</scope>
|
|
|
+ <type>pom</type>
|
|
|
+ </dependency>
|
|
|
|
|
|
<!-- unidal -->
|
|
|
<dependency>
|
|
@@ -206,6 +275,16 @@
|
|
|
<build>
|
|
|
<pluginManagement>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>${maven-compiler-plugin.version}</version>
|
|
|
+ <configuration>
|
|
|
+ <source>${java.version}</source>
|
|
|
+ <target>${java.version}</target>
|
|
|
+ <encoding>${project.build.sourceEncoding}</encoding>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
@@ -216,9 +295,79 @@
|
|
|
</includes>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
+ <version>${maven-source-plugin.version}</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>attach-sources</id>
|
|
|
+ <goals>
|
|
|
+ <goal>jar-no-fork</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>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-install-plugin</artifactId>
|
|
|
+ <version>${maven-install-plugin.version}</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ <version>${maven-deploy-plugin.version}</version>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
+ <version>${maven-enforcer-plugin.version}</version>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</pluginManagement>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-install-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-deploy-plugin</artifactId>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-enforcer-plugin</artifactId>
|
|
@@ -269,4 +418,14 @@
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
+ <distributionManagement>
|
|
|
+ <repository>
|
|
|
+ <id>releases</id>
|
|
|
+ <url>${releases.repo}</url>
|
|
|
+ </repository>
|
|
|
+ <snapshotRepository>
|
|
|
+ <id>snapshots</id>
|
|
|
+ <url>${snapshots.repo}</url>
|
|
|
+ </snapshotRepository>
|
|
|
+ </distributionManagement>
|
|
|
</project>
|