pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>com.xuxueli</groupId>
  6. <artifactId>xxl-job</artifactId>
  7. <version>1.9.1</version>
  8. </parent>
  9. <artifactId>vbdsm-job-admin</artifactId>
  10. <packaging>war</packaging>
  11. <dependencies>
  12. <!-- springframe start -->
  13. <dependency>
  14. <groupId>org.springframework</groupId>
  15. <artifactId>spring-webmvc</artifactId>
  16. <version>${spring.version}</version>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework</groupId>
  20. <artifactId>spring-context-support</artifactId>
  21. <version>${spring.version}</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework</groupId>
  25. <artifactId>spring-orm</artifactId>
  26. <version>${spring.version}</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework</groupId>
  30. <artifactId>spring-test</artifactId>
  31. <version>${spring.version}</version>
  32. </dependency>
  33. <!-- springframe end -->
  34. <!-- aspectjweaver (support spring aop) -->
  35. <dependency>
  36. <groupId>org.aspectj</groupId>
  37. <artifactId>aspectjweaver</artifactId>
  38. <version>${aspectjweaver.version}</version>
  39. </dependency>
  40. <!-- jackson (support spring json) -->
  41. <dependency>
  42. <groupId>com.fasterxml.jackson.core</groupId>
  43. <artifactId>jackson-databind</artifactId>
  44. <version>${jackson.version}</version>
  45. </dependency>
  46. <!-- servlet -->
  47. <dependency>
  48. <groupId>javax.servlet</groupId>
  49. <artifactId>javax.servlet-api</artifactId>
  50. <version>${javax.servlet-api.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>javax.servlet.jsp</groupId>
  54. <artifactId>jsp-api</artifactId>
  55. <version>${jsp-api.version}</version>
  56. </dependency>
  57. <!-- freemarker -->
  58. <dependency>
  59. <groupId>org.freemarker</groupId>
  60. <artifactId>freemarker</artifactId>
  61. <version>${freemarker.version}</version>
  62. </dependency>
  63. <!-- slf4j -->
  64. <dependency>
  65. <groupId>org.slf4j</groupId>
  66. <artifactId>slf4j-log4j12</artifactId>
  67. <version>${slf4j-api.version}</version>
  68. </dependency>
  69. <!-- junit -->
  70. <dependency>
  71. <groupId>junit</groupId>
  72. <artifactId>junit</artifactId>
  73. <version>${junit.version}</version>
  74. <scope>test</scope>
  75. </dependency>
  76. <!-- commons-collections4 -->
  77. <dependency>
  78. <groupId>org.apache.commons</groupId>
  79. <artifactId>commons-collections4</artifactId>
  80. <version>${commons-collections4.version}</version>
  81. </dependency>
  82. <!-- commons-lang3 -->
  83. <dependency>
  84. <groupId>org.apache.commons</groupId>
  85. <artifactId>commons-lang3</artifactId>
  86. <version>${commons-lang3.version}</version>
  87. </dependency>
  88. <!-- commons-email -->
  89. <dependency>
  90. <groupId>org.apache.commons</groupId>
  91. <artifactId>commons-email</artifactId>
  92. <version>${commons-email.version}</version>
  93. </dependency>
  94. <!-- c3p0 -->
  95. <dependency>
  96. <groupId>com.mchange</groupId>
  97. <artifactId>c3p0</artifactId>
  98. <version>${c3p0.version}</version>
  99. </dependency>
  100. <!-- mysql-connector -->
  101. <dependency>
  102. <groupId>mysql</groupId>
  103. <artifactId>mysql-connector-java</artifactId>
  104. <version>${mysql-connector-java.version}</version>
  105. </dependency>
  106. <!-- mybatis-spring -->
  107. <dependency>
  108. <groupId>org.mybatis</groupId>
  109. <artifactId>mybatis-spring</artifactId>
  110. <version>${mybatis-spring.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.mybatis</groupId>
  114. <artifactId>mybatis</artifactId>
  115. <version>${mybatis.version}</version>
  116. </dependency>
  117. <!-- httpclient -->
  118. <dependency>
  119. <groupId>org.apache.httpcomponents</groupId>
  120. <artifactId>httpclient</artifactId>
  121. <version>${httpclient.version}</version>
  122. </dependency>
  123. <!-- quartz :quartz-2.2.3/c3p0-0.9.1.1/slf4j-api-1.6.6 -->
  124. <dependency>
  125. <groupId>org.quartz-scheduler</groupId>
  126. <artifactId>quartz</artifactId>
  127. <version>${quartz.version}</version>
  128. </dependency>
  129. <!-- xxl-job-core -->
  130. <dependency>
  131. <groupId>com.xuxueli</groupId>
  132. <artifactId>xxl-job-core</artifactId>
  133. <version>${project.parent.version}</version>
  134. </dependency>
  135. </dependencies>
  136. <build>
  137. <finalName>ROOT</finalName>
  138. <resources>
  139. <resource>
  140. <directory>${basedir}/src/main/resources</directory>
  141. <includes>
  142. <include>**/*</include>
  143. </includes>
  144. </resource>
  145. <resource>
  146. <directory>${basedir}/src/main/imp_exp_templats</directory>
  147. <includes>
  148. <include>**/*</include>
  149. </includes>
  150. </resource>
  151. <resource>
  152. <directory>${basedir}/src/main/java</directory>
  153. <excludes>
  154. <exclude>**/*.java</exclude>
  155. <exclude>**/*.class</exclude>
  156. </excludes>
  157. </resource>
  158. </resources>
  159. <plugins>
  160. <!-- cxf wsdl2java 插件 -->
  161. <plugin>
  162. <groupId>org.apache.cxf</groupId>
  163. <artifactId>cxf-codegen-plugin</artifactId>
  164. <version>2.7.1</version>
  165. <configuration>
  166. <sourceRoot>${basedir}/target/generated-sources/cxf</sourceRoot>
  167. <wsdlOptions>
  168. <wsdlOption>
  169. <wsdl>${basedir}/target/wsdl/accountservice.wsdl</wsdl>
  170. </wsdlOption>
  171. </wsdlOptions>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <artifactId>maven-resources-plugin</artifactId>
  176. <version>2.5</version>
  177. <executions>
  178. <execution>
  179. <id>copy-resources</id>
  180. <!-- here the phase you need -->
  181. <phase>validate</phase>
  182. <goals>
  183. <goal>copy-resources</goal>
  184. </goals>
  185. <configuration>
  186. <encoding>UTF-8</encoding>
  187. <outputDirectory>${basedir}/target/classes</outputDirectory>
  188. <resources>
  189. <resource>
  190. <directory>src/main/resources/</directory>
  191. <includes>
  192. <include>**/*.*</include>
  193. </includes>
  194. <filtering>true</filtering>
  195. </resource>
  196. </resources>
  197. </configuration>
  198. </execution>
  199. </executions>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.mortbay.jetty</groupId>
  203. <artifactId>maven-jetty-plugin</artifactId>
  204. <version>6.1.26</version>
  205. <configuration>
  206. <webDefaultXml>src/main/resources/webdefault.xml</webDefaultXml>
  207. <contextPath>/</contextPath>
  208. <connectors>
  209. <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
  210. <port>9000</port>
  211. </connector>
  212. </connectors>
  213. <scanIntervalSeconds>0</scanIntervalSeconds>
  214. <scanTargetPatterns>
  215. <scanTargetPattern>
  216. <directory>src/main/webapp</directory>
  217. <includes>
  218. <include>**/*.xml</include>
  219. <include>**/*.properties</include>
  220. </includes>
  221. </scanTargetPattern>
  222. </scanTargetPatterns>
  223. <systemProperties>
  224. <systemProperty>
  225. <name>
  226. javax.xml.parsers.DocumentBuilderFactory
  227. </name>
  228. <value>
  229. com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl
  230. </value>
  231. </systemProperty>
  232. <systemProperty>
  233. <name>
  234. javax.xml.parsers.SAXParserFactory
  235. </name>
  236. <value>
  237. com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl
  238. </value>
  239. </systemProperty>
  240. <systemProperty>
  241. <name>
  242. javax.xml.transform.TransformerFactory
  243. </name>
  244. <value>
  245. com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
  246. </value>
  247. </systemProperty>
  248. <systemProperty>
  249. <name>org.eclipse.jetty.util.URI.charset</name>
  250. <value>UTF-8</value>
  251. </systemProperty>
  252. </systemProperties>
  253. </configuration>
  254. </plugin>
  255. <plugin>
  256. <groupId>org.apache.maven.plugins</groupId>
  257. <artifactId>maven-war-plugin</artifactId>
  258. <version>2.2</version>
  259. <configuration>
  260. <archive>
  261. <addMavenDescriptor>false</addMavenDescriptor>
  262. </archive>
  263. <webResources>
  264. <resource>
  265. <!-- this is relative to the pom.xml directory -->
  266. <directory>src/main/resources/</directory>
  267. <targetPath>WEB-INF/classes</targetPath>
  268. <includes>
  269. <include>**/*.*</include>
  270. </includes>
  271. <!-- <excludes>
  272. <exclude>**/local</exclude>
  273. <exclude>**/test</exclude>
  274. <exclude>**/product</exclude>
  275. <exclude>**/vbdsm</exclude>
  276. </excludes> -->
  277. <filtering>true</filtering>
  278. </resource>
  279. <resource>
  280. <!-- this is relative to the pom.xml directory -->
  281. <directory>src/main/resources/</directory>
  282. <targetPath>WEB-INF/classes</targetPath>
  283. <filtering>true</filtering>
  284. </resource>
  285. </webResources>
  286. </configuration>
  287. </plugin>
  288. <plugin>
  289. <groupId>org.zeroturnaround</groupId>
  290. <artifactId>javarebel-maven-plugin</artifactId>
  291. <executions>
  292. <execution>
  293. <id>generate-rebel-xml</id>
  294. <phase>process-resources</phase>
  295. <goals>
  296. <goal>generate</goal>
  297. </goals>
  298. </execution>
  299. </executions>
  300. <version>1.0.5</version>
  301. </plugin>
  302. <!-- <plugin>-->
  303. <!-- <groupId>net.sf.ehcache</groupId>-->
  304. <!-- <artifactId>ehcache-core</artifactId>-->
  305. <!-- <version>2.6.8</version>-->
  306. <!-- </plugin>-->
  307. </plugins>
  308. </build>
  309. </project>