pom.xml 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. <?xml version="1.0"?>
  2. <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4. <modelVersion>4.0.0</modelVersion>
  5. <artifactId>house-service</artifactId>
  6. <packaging>jar</packaging>
  7. <name>house-service</name>
  8. <parent>
  9. <groupId>com.yincheng.jcjy.huiju</groupId>
  10. <artifactId>huiju-house</artifactId>
  11. <version>0.0.1</version>
  12. </parent>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. </properties>
  16. <dependencies>
  17. <!-- Spring Boot Web 依赖 -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. <version>${spring.boot.version}</version>
  22. <!--<exclusions>-->
  23. <!--<exclusion>-->
  24. <!--<groupId>org.springframework.boot</groupId>-->
  25. <!--<artifactId>spring-boot-starter-tomcat</artifactId>-->
  26. <!--</exclusion>-->
  27. <!--</exclusions>-->
  28. </dependency>
  29. <dependency>
  30. <groupId>redis.clients</groupId>
  31. <artifactId>jedis</artifactId>
  32. <version>${redis.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.yincheng.jcjy.huiju</groupId>
  36. <artifactId>house-api</artifactId>
  37. <version>${current.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.yincheng.jcjy.huiju</groupId>
  41. <artifactId>house-common</artifactId>
  42. <version>${current.version}</version>
  43. </dependency>
  44. <!-- dubbo -->
  45. <dependency>
  46. <groupId>com.alibaba</groupId>
  47. <artifactId>dubbo</artifactId>
  48. <exclusions>
  49. <exclusion>
  50. <groupId>log4j</groupId>
  51. <artifactId>log4j</artifactId>
  52. </exclusion>
  53. <exclusion>
  54. <groupId>commons-logging</groupId>
  55. <artifactId>commons-logging</artifactId>
  56. </exclusion>
  57. <exclusion>
  58. <groupId>org.springframework</groupId>
  59. <artifactId>spring</artifactId>
  60. </exclusion>
  61. <exclusion>
  62. <groupId>com.alibaba</groupId>
  63. <artifactId>fastjson</artifactId>
  64. </exclusion>
  65. </exclusions>
  66. <version>${dubbo.version}</version>
  67. </dependency>
  68. <!-- commons-lang3 -->
  69. <dependency>
  70. <groupId>org.apache.commons</groupId>
  71. <artifactId>commons-lang3</artifactId>
  72. <version>${commons-lang3.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.zookeeper</groupId>
  76. <artifactId>zookeeper</artifactId>
  77. <exclusions>
  78. <exclusion>
  79. <artifactId>jmxtools</artifactId>
  80. <groupId>com.sun.jdmk</groupId>
  81. </exclusion>
  82. <exclusion>
  83. <artifactId>jmxri</artifactId>
  84. <groupId>com.sun.jmx</groupId>
  85. </exclusion>
  86. <exclusion>
  87. <artifactId>jms</artifactId>
  88. <groupId>javax.jms</groupId>
  89. </exclusion>
  90. <exclusion>
  91. <groupId>log4j</groupId>
  92. <artifactId>log4j</artifactId>
  93. </exclusion>
  94. <exclusion>
  95. <artifactId>slf4j-log4j12</artifactId>
  96. <groupId>org.slf4j</groupId>
  97. </exclusion>
  98. </exclusions>
  99. <version>${zookeeper.version}</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>com.github.sgroschupf</groupId>
  103. <artifactId>zkclient</artifactId>
  104. <version>${zkclient.version}</version>
  105. </dependency>
  106. <!-- MySQL 连接驱动依赖 -->
  107. <dependency>
  108. <groupId>mysql</groupId>
  109. <artifactId>mysql-connector-java</artifactId>
  110. <version>${mysql-connector}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.mybatis.spring.boot</groupId>
  114. <artifactId>mybatis-spring-boot-starter</artifactId>
  115. <version>${mybatis-spring-boot}</version>
  116. </dependency>
  117. </dependencies>
  118. <profiles>
  119. <profile>
  120. <id>development</id>
  121. <activation>
  122. <activeByDefault>true</activeByDefault>
  123. </activation>
  124. <properties>
  125. <environment>development</environment>
  126. </properties>
  127. </profile>
  128. <profile>
  129. <id>test</id>
  130. <properties>
  131. <environment>test</environment>
  132. </properties>
  133. </profile>
  134. <profile>
  135. <id>production</id>
  136. <properties>
  137. <environment>production</environment>
  138. </properties>
  139. </profile>
  140. </profiles>
  141. <build>
  142. <finalName>house-service</finalName>
  143. <plugins>
  144. <plugin>
  145. <groupId>org.mybatis.generator</groupId>
  146. <artifactId>mybatis-generator-maven-plugin</artifactId>
  147. <version>1.3.2</version>
  148. <configuration>
  149. <verbose>true</verbose>
  150. <overwrite>true</overwrite>
  151. </configuration>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-compiler-plugin</artifactId>
  156. <version>2.3.2</version>
  157. <configuration>
  158. <source>1.7</source>
  159. <target>1.7</target>
  160. <encoding>utf-8</encoding>
  161. </configuration>
  162. </plugin>
  163. <plugin>
  164. <groupId>org.apache.maven.plugins</groupId>
  165. <artifactId>maven-surefire-plugin</artifactId>
  166. <version>2.9</version>
  167. <configuration>
  168. <skip>true</skip>
  169. </configuration>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-assembly-plugin</artifactId>
  174. <configuration>
  175. <descriptors>
  176. <descriptor>src/main/assembly/assembly.xml</descriptor>
  177. </descriptors>
  178. </configuration>
  179. <executions>
  180. <execution>
  181. <id>make-assembly</id>
  182. <phase>package</phase>
  183. <goals>
  184. <goal>single</goal>
  185. </goals>
  186. </execution>
  187. </executions>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-war-plugin</artifactId>
  192. <version>2.4</version>
  193. </plugin>
  194. <plugin>
  195. <groupId>org.springframework.boot</groupId>
  196. <artifactId>spring-boot-maven-plugin</artifactId>
  197. </plugin>
  198. </plugins>
  199. <!--编辑打包resources-->
  200. <resources>
  201. <resource>
  202. <directory>src/main/resources</directory>
  203. <filtering>true</filtering>
  204. </resource>
  205. </resources>
  206. <filters>
  207. <filter>${basedir}/../conf/${environment}/conf.properties</filter>
  208. </filters>
  209. </build>
  210. </project>