pom.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.uas.platform</groupId>
  8. <artifactId>platform</artifactId>
  9. <version>0.0.1-SNAPSHOT</version>
  10. </parent>
  11. <groupId>com.uas.platform</groupId>
  12. <artifactId>platform-city</artifactId>
  13. <packaging>war</packaging>
  14. <version>0.0.1</version>
  15. <name>platform-home Maven Webapp</name>
  16. <url>http://maven.apache.org</url>
  17. <profiles>
  18. <profile>
  19. <!-- 开发环境 -->
  20. <id>dev</id>
  21. <properties>
  22. <profile>dev</profile>
  23. <!-- static plugin -->
  24. <static-path>static</static-path>
  25. </properties>
  26. <!-- 默认 -->
  27. <activation>
  28. <activeByDefault>true</activeByDefault>
  29. </activation>
  30. </profile>
  31. <profile>
  32. <!-- 测试环境 -->
  33. <id>test</id>
  34. <properties>
  35. <profile>test</profile>
  36. <!-- static plugin -->
  37. <static-path>static</static-path>
  38. </properties>
  39. </profile>
  40. <profile>
  41. <!-- 生产环境 -->
  42. <id>prod</id>
  43. <properties>
  44. <profile>prod</profile>
  45. <!-- static plugin -->
  46. <static-path>https://static.usoftmall.com</static-path>
  47. </properties>
  48. </profile>
  49. </profiles>
  50. <dependencies>
  51. <!-- spring-webmvc -->
  52. <dependency>
  53. <groupId>org.springframework</groupId>
  54. <artifactId>spring-webmvc</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>org.springframework</groupId>
  58. <artifactId>spring-context-support</artifactId>
  59. </dependency>
  60. <!-- spring mobile -->
  61. <dependency>
  62. <groupId>org.springframework.mobile</groupId>
  63. <artifactId>spring-mobile-device</artifactId>
  64. </dependency>
  65. <!-- log4j -->
  66. <dependency>
  67. <groupId>log4j</groupId>
  68. <artifactId>log4j</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>commons-logging</groupId>
  72. <artifactId>commons-logging</artifactId>
  73. <version>1.1.1</version>
  74. </dependency>
  75. <!-- fastjson -->
  76. <dependency>
  77. <groupId>com.alibaba</groupId>
  78. <artifactId>fastjson</artifactId>
  79. </dependency>
  80. <dependency>
  81. <groupId>javax.servlet</groupId>
  82. <artifactId>servlet-api</artifactId>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.uas.sso</groupId>
  86. <artifactId>sso-common</artifactId>
  87. <version>0.0.1-SNAPSHOT</version>
  88. <exclusions>
  89. <exclusion>
  90. <artifactId>tomcat-embed-core</artifactId>
  91. <groupId>org.apache.tomcat.embed</groupId>
  92. </exclusion>
  93. </exclusions>
  94. </dependency>
  95. <dependency>
  96. <groupId>com.uas.account</groupId>
  97. <artifactId>account-common</artifactId>
  98. <version>0.0.1-SNAPSHOT</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.httpcomponents</groupId>
  102. <artifactId>httpclient</artifactId>
  103. <version>4.5.2</version>
  104. </dependency>
  105. </dependencies>
  106. <build>
  107. <finalName>platform-city</finalName>
  108. <!-- 受profile影响的目录 -->
  109. <resources>
  110. <resource>
  111. <directory>${basedir}/src/main/resources</directory>
  112. <filtering>true</filtering>
  113. </resource>
  114. <!-- <resource>
  115. <directory>${basedir}/src/main/resources/${profile}</directory>
  116. </resource>-->
  117. </resources>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.apache.tomcat.maven</groupId>
  121. <artifactId>tomcat7-maven-plugin</artifactId>
  122. <version>2.2</version>
  123. <configuration>
  124. <port>80</port>
  125. <path>/</path>
  126. <uriEncoding>utf-8</uriEncoding>
  127. </configuration>
  128. </plugin>
  129. <plugin>
  130. <groupId>org.codehaus.mojo</groupId>
  131. <artifactId>buildnumber-maven-plugin</artifactId>
  132. <version>1.3</version>
  133. <executions>
  134. <execution>
  135. <phase>validate</phase>
  136. <goals>
  137. <goal>create-timestamp</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. <configuration>
  142. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  143. <items>
  144. <item>timestamp</item>
  145. </items>
  146. </configuration>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. <organization>
  151. <name>usoft</name>
  152. <url>http://www.usoftchina.com</url>
  153. </organization>
  154. <distributionManagement>
  155. <!-- 发布release仓库 -->
  156. <repository>
  157. <id>platform-release</id>
  158. <name>platform-release</name>
  159. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  160. </repository>
  161. <!-- 发布快照版本 -->
  162. <snapshotRepository>
  163. <id>platform-snapshots</id>
  164. <name>platform-snapshots</name>
  165. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  166. </snapshotRepository>
  167. </distributionManagement>
  168. </project>