pom.xml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.chinacreator.ecd</groupId>
  6. <artifactId>unicom-cap</artifactId>
  7. <version>1.0-SNAPSHOT</version>
  8. <packaging>war</packaging>
  9. <name>统一认证短信取号</name>
  10. <properties>
  11. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  12. <maven.compiler.source>1.7</maven.compiler.source>
  13. <maven.compiler.target>1.7</maven.compiler.target>
  14. </properties>
  15. <dependencies>
  16. <dependency>
  17. <groupId>junit</groupId>
  18. <artifactId>junit</artifactId>
  19. <version>4.11</version>
  20. <scope>test</scope>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework</groupId>
  24. <artifactId>spring-webmvc</artifactId>
  25. <version>4.3.10.RELEASE</version>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework</groupId>
  29. <artifactId>spring-jdbc</artifactId>
  30. <version>4.3.5.RELEASE</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>commons-codec</groupId>
  34. <artifactId>commons-codec</artifactId>
  35. <version>1.11</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.alibaba</groupId>
  39. <artifactId>fastjson</artifactId>
  40. <version>1.2.83</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.mybatis</groupId>
  44. <artifactId>mybatis-spring</artifactId>
  45. <version>1.3.0</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.mybatis</groupId>
  49. <artifactId>mybatis</artifactId>
  50. <version>3.4.1</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.oracle</groupId>
  54. <artifactId>ojdbc</artifactId>
  55. <version>11.2.0.4.0</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>com.zaxxer</groupId>
  59. <artifactId>HikariCP-java7</artifactId>
  60. <version>2.4.9</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>javax.servlet</groupId>
  64. <artifactId>javax.servlet-api</artifactId>
  65. <version>3.0.1</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.github.kevinsawicki</groupId>
  69. <artifactId>http-request</artifactId>
  70. <version>6.0</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>redis.clients</groupId>
  74. <artifactId>jedis</artifactId>
  75. <version>2.9.0</version>
  76. </dependency>
  77. <dependency>
  78. <groupId>ch.qos.logback</groupId>
  79. <artifactId>logback-classic</artifactId>
  80. <version>1.2.3</version>
  81. </dependency>
  82. </dependencies>
  83. <!-- http://blog.csdn.net/lihe2008125/article/details/50443491 -->
  84. <profiles>
  85. <profile>
  86. <id>development</id>
  87. <properties>
  88. <profiles.active>development</profiles.active>
  89. </properties>
  90. <activation>
  91. <activeByDefault>true</activeByDefault>
  92. </activation>
  93. </profile>
  94. <profile>
  95. <id>product</id>
  96. <properties>
  97. <profiles.active>product</profiles.active>
  98. </properties>
  99. </profile>
  100. <profile>
  101. <id>test</id>
  102. <properties>
  103. <profiles.active>test</profiles.active>
  104. </properties>
  105. </profile>
  106. </profiles>
  107. <build>
  108. <finalName>unicom-cap</finalName>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-compiler-plugin</artifactId>
  113. <configuration>
  114. <source>1.8</source>
  115. <target>1.8</target>
  116. </configuration>
  117. </plugin>
  118. <plugin>
  119. <groupId>org.eclipse.jetty</groupId>
  120. <artifactId>jetty-maven-plugin</artifactId>
  121. <version>9.4.6.v20170531</version>
  122. <configuration>
  123. <scanIntervalSeconds>10</scanIntervalSeconds>
  124. <webApp>
  125. <contextPath>/cap</contextPath>
  126. </webApp>
  127. <webAppConfig>
  128. <defaultsDescriptor>webdefault.xml</defaultsDescriptor>
  129. </webAppConfig>
  130. </configuration>
  131. </plugin>
  132. </plugins>
  133. <resources>
  134. <resource>
  135. <directory>src/main/resources</directory>
  136. <!-- 资源根目录排除各环境的配置,使用单独的资源目录来指定 -->
  137. <excludes>
  138. <exclude>test/*</exclude>
  139. <exclude>product/*</exclude>
  140. <exclude>development/*</exclude>
  141. </excludes>
  142. </resource>
  143. <resource>
  144. <directory>src/main/resources/${profiles.active}</directory>
  145. </resource>
  146. </resources>
  147. </build>
  148. </project>