pom.xml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>yuncredit-public</groupId>
  5. <artifactId>sec-gateway</artifactId>
  6. <packaging>war</packaging>
  7. <version>1.0.0</version>
  8. <name>Risk-Gateway Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10. <properties>
  11. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  12. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  13. <java_source_version>1.7</java_source_version>
  14. <java_target_version>1.7</java_target_version>
  15. <file_encoding>UTF-8</file_encoding>
  16. <jetty.version>9.2.2.v20140723</jetty.version>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.projectlombok</groupId>
  21. <artifactId>lombok</artifactId>
  22. <version>1.16.8</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>org.apache.commons</groupId>
  26. <artifactId>commons-jexl</artifactId>
  27. <version>2.1.1</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.commons</groupId>
  31. <artifactId>commons-lang3</artifactId>
  32. <version>3.1</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.slf4j</groupId>
  36. <artifactId>slf4j-api</artifactId>
  37. <version>1.7.2</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.slf4j</groupId>
  41. <artifactId>slf4j-log4j12</artifactId>
  42. <version>1.7.2</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.flume.flume-ng-clients</groupId>
  46. <artifactId>flume-ng-log4jappender</artifactId>
  47. <version>1.5.0.1</version>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>ch.qos.logback</groupId>
  51. <artifactId>logback-classic</artifactId>
  52. </exclusion>
  53. </exclusions>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.alibaba.rocketmq</groupId>
  57. <artifactId>rocketmq-client</artifactId>
  58. <version>3.1.3</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.101tec</groupId>
  62. <artifactId>zkclient</artifactId>
  63. <version>0.3</version>
  64. <exclusions>
  65. <exclusion>
  66. <groupId>org.apache.zookeeper</groupId>
  67. <artifactId>zookeeper</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.zookeeper</groupId>
  73. <artifactId>zookeeper</artifactId>
  74. <version>3.4.3</version>
  75. <exclusions>
  76. <exclusion>
  77. <groupId>junit</groupId>
  78. <artifactId>junit</artifactId>
  79. </exclusion>
  80. <exclusion>
  81. <groupId>javax.jms</groupId>
  82. <artifactId>jms</artifactId>
  83. </exclusion>
  84. <exclusion>
  85. <groupId>com.sun.jdmk</groupId>
  86. <artifactId>jmxtools</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>com.sun.jmx</groupId>
  90. <artifactId>jmxri</artifactId>
  91. </exclusion>
  92. </exclusions>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.alibaba</groupId>
  96. <artifactId>dubbo</artifactId>
  97. <version>2.5.3</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>log4j</groupId>
  101. <artifactId>log4j</artifactId>
  102. <version>1.2.16</version>
  103. <exclusions>
  104. <exclusion>
  105. <groupId>com.sun.jmx</groupId>
  106. <artifactId>jmxri</artifactId>
  107. </exclusion>
  108. <exclusion>
  109. <groupId>com.sun.jdmk</groupId>
  110. <artifactId>jmxtools</artifactId>
  111. </exclusion>
  112. <exclusion>
  113. <groupId>javax.jms</groupId>
  114. <artifactId>jms</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.alibaba</groupId>
  120. <artifactId>fastjson</artifactId>
  121. <version>1.2.4</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>javax.servlet</groupId>
  125. <artifactId>servlet-api</artifactId>
  126. <version>2.5</version>
  127. <scope>provided</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.thrift</groupId>
  131. <artifactId>libthrift</artifactId>
  132. <version>0.9.1</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.bouncycastle</groupId>
  136. <artifactId>bcprov-jdk15on</artifactId>
  137. <version>1.54</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>commons-fileupload</groupId>
  141. <artifactId>commons-fileupload</artifactId>
  142. <version>1.3.1</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.springframework</groupId>
  146. <artifactId>spring-test</artifactId>
  147. <version>3.1.2.RELEASE</version>
  148. <scope>test</scope>
  149. </dependency>
  150. <dependency>
  151. <groupId>com.fasterxml.jackson.core</groupId>
  152. <artifactId>jackson-annotations</artifactId>
  153. <version>2.4.2</version>
  154. </dependency>
  155. </dependencies>
  156. <!-- profile 配置 -->
  157. <profiles>
  158. <profile>
  159. <id>test</id>
  160. <properties>
  161. <package.environment>test</package.environment>
  162. </properties>
  163. <activation>
  164. <activeByDefault>true</activeByDefault>
  165. </activation>
  166. </profile>
  167. <profile>
  168. <id>online</id>
  169. <properties>
  170. <package.environment>online</package.environment>
  171. </properties>
  172. </profile>
  173. </profiles>
  174. <!-- 编译配置 -->
  175. <build>
  176. <filters>
  177. <filter>setting/${package.environment}.properties</filter>
  178. </filters>
  179. <resources>
  180. <resource>
  181. <directory>src/main/resources</directory>
  182. <filtering>true</filtering>
  183. </resource>
  184. </resources>
  185. <plugins>
  186. <plugin>
  187. <groupId>org.apache.maven.plugins</groupId>
  188. <artifactId>maven-compiler-plugin</artifactId>
  189. <version>3.1</version>
  190. <configuration>
  191. <source>${java_source_version}</source>
  192. <target>${java_target_version}</target>
  193. <encoding>${file_encoding}</encoding>
  194. <showDeprecation>true</showDeprecation>
  195. <showWarnings>true</showWarnings>
  196. </configuration>
  197. </plugin>
  198. <plugin>
  199. <groupId>org.apache.tomcat.maven</groupId>
  200. <artifactId>tomcat7-maven-plugin</artifactId>
  201. <version>2.0</version>
  202. <configuration>
  203. <url>http://localhost:8080</url>
  204. <server>tomcat7</server>
  205. <username>admin</username>
  206. <password>1234</password>
  207. </configuration>
  208. </plugin>
  209. <plugin>
  210. <groupId>org.eclipse.jetty</groupId>
  211. <artifactId>jetty-maven-plugin</artifactId>
  212. <version>${jetty.version}</version>
  213. <configuration>
  214. <webAppSourceDirectory>${basedir}/webroot</webAppSourceDirectory>
  215. <webApp>
  216. <contextPath>/${project.artifactId}</contextPath>
  217. </webApp>
  218. <scanIntervalSeconds>100</scanIntervalSeconds>
  219. <stopKey>risk-gateway</stopKey>
  220. <stopPort>9999</stopPort>
  221. <httpConnector>
  222. <port>9090</port>
  223. </httpConnector>
  224. </configuration>
  225. </plugin>
  226. </plugins>
  227. </build>
  228. </project>