pom.xml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0"?>
  2. <project
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  4. xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.mw.platform</groupId>
  8. <artifactId>cb_platform</artifactId>
  9. <version>1.0.1</version>
  10. </parent>
  11. <packaging>war</packaging>
  12. <artifactId>fangchan_manager</artifactId>
  13. <properties>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  16. </properties>
  17. <dependencyManagement>
  18. <dependencies>
  19. <dependency>
  20. <groupId>org.springframework.boot</groupId>
  21. <artifactId>spring-boot-starter-parent</artifactId>
  22. <type>pom</type>
  23. <version>${spring.boot.version}</version>
  24. <scope>import</scope>
  25. </dependency>
  26. </dependencies>
  27. </dependencyManagement>
  28. <dependencies>
  29. <dependency>
  30. <groupId>org.springframework.boot</groupId>
  31. <artifactId>spring-boot-starter-tomcat</artifactId>
  32. <scope>provided</scope>
  33. </dependency>
  34. <!-- 热部署需要的包 -->
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-devtools</artifactId>
  38. <optional>true</optional>
  39. <scope>true</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>junit</groupId>
  43. <artifactId>junit</artifactId>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-jdbc</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.zaxxer</groupId>
  52. <artifactId>HikariCP-java7</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-actuator</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.springframework.boot</groupId>
  60. <artifactId>spring-boot-starter-web</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.alibaba</groupId>
  64. <artifactId>fastjson</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.springframework</groupId>
  68. <artifactId>spring-jms</artifactId>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.springframework</groupId>
  72. <artifactId>spring-web</artifactId>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.httpcomponents</groupId>
  76. <artifactId>httpclient</artifactId>
  77. </dependency>
  78. <dependency>
  79. <groupId>jboss</groupId>
  80. <artifactId>jnp-client</artifactId>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.jboss.logging</groupId>
  84. <artifactId>jboss-logging</artifactId>
  85. </dependency>
  86. <dependency>
  87. <groupId>commons-lang</groupId>
  88. <artifactId>commons-lang</artifactId>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.jolokia</groupId>
  92. <artifactId>jolokia-core</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>commons-codec</groupId>
  96. <artifactId>commons-codec</artifactId>
  97. </dependency>
  98. <dependency>
  99. <groupId>${project.groupId}</groupId>
  100. <artifactId>fangchan_mybatis</artifactId>
  101. <version>${project.version}</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>${project.groupId}</groupId>
  105. <artifactId>core</artifactId>
  106. </dependency>
  107. <dependency>
  108. <groupId>${project.groupId}</groupId>
  109. <artifactId>commons</artifactId>
  110. </dependency>
  111. <dependency>
  112. <groupId>${project.groupId}</groupId>
  113. <artifactId>fangchan_app</artifactId>
  114. <version>${project.version}</version>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.jsoup</groupId>
  118. <artifactId>jsoup</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>${project.groupId}</groupId>
  122. <artifactId>system_core</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.freemarker</groupId>
  126. <artifactId>freemarker</artifactId>
  127. </dependency>
  128. <dependency>
  129. <groupId>net.sourceforge.jexcelapi</groupId>
  130. <artifactId>jxl</artifactId>
  131. <version>2.6.12</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.springframework.boot</groupId>
  135. <artifactId>spring-boot-starter-freemarker</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-starter-data-redis</artifactId>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.apache.commons</groupId>
  143. <artifactId>commons-pool2</artifactId>
  144. </dependency>
  145. <!-- 工具类 -->
  146. <dependency>
  147. <groupId>org.apache.commons</groupId>
  148. <artifactId>commons-lang3</artifactId>
  149. </dependency>
  150. <!-- 验证码 -->
  151. <dependency>
  152. <groupId>com.github.whvcse</groupId>
  153. <artifactId>easy-captcha</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>redis.clients</groupId>
  157. <artifactId>jedis</artifactId>
  158. </dependency>
  159. </dependencies>
  160. <!--<build>
  161. <plugins>
  162. <plugin>
  163. <groupId>org.apache.maven.plugins</groupId>
  164. <artifactId>maven-jar-plugin</artifactId>
  165. <configuration>
  166. <archive>
  167. <manifest>
  168. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  169. </manifest>
  170. <manifestEntries>
  171. <Implementation-Build>${buildNumber}</Implementation-Build>
  172. </manifestEntries>
  173. </archive>
  174. </configuration>
  175. </plugin>
  176. <plugin>
  177. <groupId>org.apache.maven.plugins</groupId>
  178. <artifactId>maven-compiler-plugin</artifactId>
  179. <configuration>
  180. <source>1.8</source>
  181. <target>1.8</target>
  182. <encoding>UTF-8</encoding>
  183. </configuration>
  184. </plugin>
  185. <plugin>
  186. <groupId>org.springframework.boot</groupId>
  187. <artifactId>spring-boot-maven-plugin</artifactId>
  188. <version>1.3.6.RELEASE</version>
  189. <configuration>
  190. <layout>ZIP</layout>
  191. <mainClass>com.mw.platform.Application</mainClass>
  192. </configuration>
  193. <executions>
  194. <execution>
  195. <goals>
  196. <goal>repackage</goal>
  197. </goals>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <artifactId>maven-assembly-plugin</artifactId>
  203. <configuration>
  204. <descriptors>
  205. <descriptor>src/main/assembly/assembly.xml</descriptor>
  206. </descriptors>
  207. </configuration>
  208. <executions>
  209. <execution>
  210. <id>make-my-jar-with-dependencies</id>
  211. <phase>package</phase>
  212. <goals>
  213. <goal>single</goal>
  214. </goals>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. </plugins>
  219. <resources>
  220. &lt;!&ndash; 打包时将jsp文件拷贝到META-INF目录下 &ndash;&gt;
  221. <resource>
  222. &lt;!&ndash; 指定resources插件处理哪个目录下的资源文件 &ndash;&gt;
  223. <directory>src/main/webapp</directory>
  224. &lt;!&ndash;注意此次必须要放在此目录下才能被访问到 &ndash;&gt;
  225. <targetPath>META-INF/resources</targetPath>
  226. <includes>
  227. <include>**/**</include>
  228. </includes>
  229. </resource>
  230. <resource>
  231. <directory>src/main/resources</directory>
  232. <includes>
  233. <include>**/**</include>
  234. </includes>
  235. <filtering>false</filtering>
  236. </resource>
  237. </resources>
  238. </build>-->
  239. <build>
  240. <plugins>
  241. <plugin>
  242. <groupId>org.springframework.boot</groupId>
  243. <artifactId>spring-boot-maven-plugin</artifactId>
  244. <version>2.1.1.RELEASE</version>
  245. <configuration>
  246. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  247. </configuration>
  248. <executions>
  249. <execution>
  250. <goals>
  251. <goal>repackage</goal>
  252. </goals>
  253. </execution>
  254. </executions>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-war-plugin</artifactId>
  259. <version>3.0.0</version>
  260. <configuration>
  261. <failOnMissingWebXml>false</failOnMissingWebXml>
  262. <warName>${project.artifactId}</warName>
  263. </configuration>
  264. </plugin>
  265. </plugins>
  266. <finalName>${project.artifactId}</finalName>
  267. </build>
  268. </project>