pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <parent>
  5. <groupId>org.springframework.boot</groupId>
  6. <artifactId>spring-boot-starter-parent</artifactId>
  7. <version>1.4.1.RELEASE</version>
  8. </parent>
  9. <groupId>com.uas.report</groupId>
  10. <artifactId>report</artifactId>
  11. <packaging>war</packaging>
  12. <version>0.0.1</version>
  13. <name>report Maven Webapp</name>
  14. <url>http://maven.apache.org</url>
  15. <properties>
  16. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17. <oracle.jdbc.version>11.2.0</oracle.jdbc.version>
  18. <servlet.version>3.0-alpha-1</servlet.version>
  19. <druid.version>1.0.24</druid.version>
  20. <jasperreports.version>6.3.0</jasperreports.version>
  21. <poi.version>3.10.1</poi.version>
  22. <commons.fileupload.version>1.3.2</commons.fileupload.version>
  23. <fastjson.version>1.2.15</fastjson.version>
  24. <axis.version>1.4</axis.version>
  25. <commons.discovery.version>0.2</commons.discovery.version>
  26. <javax.activation.version>1.1.1</javax.activation.version>
  27. <barcode4j.version>2.1</barcode4j.version>
  28. <barbecue.version>1.5-beta1</barbecue.version>
  29. <batik.bridge.version>1.8</batik.bridge.version>
  30. <xmlgraphics.version>2.1</xmlgraphics.version>
  31. <mail.version>1.4.7</mail.version>
  32. <commons.lang.version>2.6</commons.lang.version>
  33. </properties>
  34. <dependencies>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-security</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.springframework</groupId>
  41. <artifactId>spring-context-support</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.springframework</groupId>
  45. <artifactId>spring-webmvc</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.aspectj</groupId>
  49. <artifactId>aspectjweaver</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.hibernate</groupId>
  53. <artifactId>hibernate-ehcache</artifactId>
  54. <exclusions>
  55. <exclusion>
  56. <groupId>org.hibernate</groupId>
  57. <artifactId>hibernate-core</artifactId>
  58. </exclusion>
  59. <exclusion>
  60. <groupId>org.jboss.logging</groupId>
  61. <artifactId>jboss-logging</artifactId>
  62. </exclusion>
  63. </exclusions>
  64. </dependency>
  65. <dependency>
  66. <groupId>javax.servlet</groupId>
  67. <artifactId>servlet-api</artifactId>
  68. <version>${servlet.version}</version>
  69. <scope>provided</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>com.alibaba</groupId>
  73. <artifactId>druid</artifactId>
  74. <version>${druid.version}</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>com.alibaba</groupId>
  78. <artifactId>fastjson</artifactId>
  79. <version>${fastjson.version}</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>com.oracle</groupId>
  83. <artifactId>ojdbc6</artifactId>
  84. <version>${oracle.jdbc.version}</version>
  85. </dependency>
  86. <!-- 打印报表 -->
  87. <dependency>
  88. <groupId>net.sf.jasperreports</groupId>
  89. <artifactId>jasperreports</artifactId>
  90. <version>${jasperreports.version}</version>
  91. <exclusions>
  92. <exclusion>
  93. <groupId>org.apache.lucene</groupId>
  94. <artifactId>lucene-core</artifactId>
  95. </exclusion>
  96. <exclusion>
  97. <groupId>org.apache.lucene</groupId>
  98. <artifactId>lucene-analyzers-common</artifactId>
  99. </exclusion>
  100. <exclusion>
  101. <groupId>org.apache.lucene</groupId>
  102. <artifactId>lucene-queryparser</artifactId>
  103. </exclusion>
  104. <exclusion>
  105. <groupId>bouncycastle</groupId>
  106. <artifactId>bcprov-jdk14</artifactId>
  107. </exclusion>
  108. <exclusion>
  109. <groupId>org.bouncycastle</groupId>
  110. <artifactId>bctsp-jdk14</artifactId>
  111. </exclusion>
  112. <exclusion>
  113. <groupId>org.eclipse.jdt.core.compiler</groupId>
  114. <artifactId>ecj</artifactId>
  115. </exclusion>
  116. <exclusion>
  117. <groupId>com.ibm.icu</groupId>
  118. <artifactId>icu4j</artifactId>
  119. </exclusion>
  120. <exclusion>
  121. <groupId>org.codehaus.castor</groupId>
  122. <artifactId>castor-xml</artifactId>
  123. </exclusion>
  124. <!-- 二维码打印 -->
  125. <!-- <exclusion> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId>
  126. </exclusion> -->
  127. <exclusion>
  128. <groupId>org.olap4j</groupId>
  129. <artifactId>olap4j</artifactId>
  130. </exclusion>
  131. <exclusion>
  132. <groupId>commons-logging</groupId>
  133. <artifactId>commons-logging</artifactId>
  134. </exclusion>
  135. </exclusions>
  136. </dependency>
  137. <dependency>
  138. <groupId>net.sf.jasperreports</groupId>
  139. <artifactId>jasperreports-functions</artifactId>
  140. <version>${jasperreports.version}</version>
  141. </dependency>
  142. <!-- 导出xls报表 -->
  143. <dependency>
  144. <groupId>org.apache.poi</groupId>
  145. <artifactId>poi</artifactId>
  146. <version>${poi.version}</version>
  147. </dependency>
  148. <!-- 自制中文字体 - 微软雅黑 -->
  149. <dependency>
  150. <groupId>com.uas.report</groupId>
  151. <artifactId>microsoft-yahei-ui</artifactId>
  152. <version>1.0.0</version>
  153. </dependency>
  154. <!-- 文件上传 -->
  155. <dependency>
  156. <groupId>commons-fileupload</groupId>
  157. <artifactId>commons-fileupload</artifactId>
  158. <version>${commons.fileupload.version}</version>
  159. </dependency>
  160. <!-- HTTP请求 -->
  161. <dependency>
  162. <groupId>org.apache.httpcomponents</groupId>
  163. <artifactId>httpclient</artifactId>
  164. </dependency>
  165. <!-- axis web service -->
  166. <dependency>
  167. <groupId>org.apache.axis</groupId>
  168. <artifactId>axis</artifactId>
  169. <version>${axis.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.axis</groupId>
  173. <artifactId>axis-ant</artifactId>
  174. <version>${axis.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.axis</groupId>
  178. <artifactId>axis-jaxrpc</artifactId>
  179. <version>${axis.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.axis</groupId>
  183. <artifactId>axis-saaj</artifactId>
  184. <version>${axis.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>commons-discovery</groupId>
  188. <artifactId>commons-discovery</artifactId>
  189. <version>${commons.discovery.version}</version>
  190. <exclusions>
  191. <exclusion>
  192. <groupId>commons-logging</groupId>
  193. <artifactId>commons-logging</artifactId>
  194. </exclusion>
  195. </exclusions>
  196. </dependency>
  197. <dependency>
  198. <groupId>wsdl4j</groupId>
  199. <artifactId>wsdl4j</artifactId>
  200. </dependency>
  201. <!-- Axis Attachment support -->
  202. <dependency>
  203. <groupId>javax.activation</groupId>
  204. <artifactId>activation</artifactId>
  205. <version>${javax.activation.version}</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>javax.mail</groupId>
  209. <artifactId>javax.mail-api</artifactId>
  210. </dependency>
  211. <dependency>
  212. <groupId>com.sun.mail</groupId>
  213. <artifactId>javax.mail</artifactId>
  214. </dependency>
  215. <!-- dom4j -->
  216. <dependency>
  217. <groupId>dom4j</groupId>
  218. <artifactId>dom4j</artifactId>
  219. </dependency>
  220. <dependency>
  221. <groupId>jaxen</groupId>
  222. <artifactId>jaxen</artifactId>
  223. </dependency>
  224. <!-- 打印条形码 -->
  225. <dependency>
  226. <groupId>net.sf.barcode4j</groupId>
  227. <artifactId>barcode4j</artifactId>
  228. <version>${barcode4j.version}</version>
  229. <exclusions>
  230. <exclusion>
  231. <groupId>org.apache.ant</groupId>
  232. <artifactId>ant</artifactId>
  233. </exclusion>
  234. <exclusion>
  235. <groupId>commons-cli</groupId>
  236. <artifactId>commons-cli</artifactId>
  237. </exclusion>
  238. </exclusions>
  239. </dependency>
  240. <dependency>
  241. <groupId>net.sourceforge.barbecue</groupId>
  242. <artifactId>barbecue</artifactId>
  243. <version>${barbecue.version}</version>
  244. </dependency>
  245. <dependency>
  246. <groupId>org.codehaus.groovy</groupId>
  247. <artifactId>groovy-all</artifactId>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.xmlgraphics</groupId>
  251. <artifactId>batik-bridge</artifactId>
  252. <version>${batik.bridge.version}</version>
  253. <exclusions>
  254. <exclusion>
  255. <groupId>xalan</groupId>
  256. <artifactId>xalan</artifactId>
  257. </exclusion>
  258. </exclusions>
  259. </dependency>
  260. <dependency>
  261. <groupId>org.apache.xmlgraphics</groupId>
  262. <artifactId>xmlgraphics-commons</artifactId>
  263. <version>${xmlgraphics.version}</version>
  264. <exclusions>
  265. <exclusion>
  266. <groupId>commons-logging</groupId>
  267. <artifactId>commons-logging</artifactId>
  268. </exclusion>
  269. </exclusions>
  270. </dependency>
  271. <dependency>
  272. <groupId>commons-lang</groupId>
  273. <artifactId>commons-lang</artifactId>
  274. <version>${commons.lang.version}</version>
  275. </dependency>
  276. </dependencies>
  277. <build>
  278. <plugins>
  279. <!-- 在maven生命周期validate阶段生成timestamp -->
  280. <plugin>
  281. <groupId>org.codehaus.mojo</groupId>
  282. <artifactId>buildnumber-maven-plugin</artifactId>
  283. <version>1.3</version>
  284. <executions>
  285. <execution>
  286. <phase>validate</phase>
  287. <goals>
  288. <goal>create-timestamp</goal>
  289. </goals>
  290. </execution>
  291. </executions>
  292. <configuration>
  293. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  294. <items>
  295. <item>timestamp</item>
  296. </items>
  297. </configuration>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.apache.maven.plugins</groupId>
  301. <artifactId>maven-compiler-plugin</artifactId>
  302. <configuration>
  303. <encoding>${project.build.sourceEncoding}</encoding>
  304. <source>1.7</source>
  305. <target>1.7</target>
  306. </configuration>
  307. </plugin>
  308. <plugin>
  309. <artifactId>maven-resources-plugin</artifactId>
  310. <executions>
  311. <execution>
  312. <id>copy-resources</id>
  313. <phase>prepare-package</phase>
  314. <goals>
  315. <goal>copy-resources</goal>
  316. </goals>
  317. <configuration>
  318. <outputDirectory>${project.build.directory}/minify</outputDirectory>
  319. <overwrite>false</overwrite>
  320. <resources>
  321. <resource>
  322. <directory>${basedir}/src/main/webapp</directory>
  323. </resource>
  324. </resources>
  325. </configuration>
  326. </execution>
  327. </executions>
  328. </plugin>
  329. <plugin>
  330. <groupId>com.uas.plugins</groupId>
  331. <artifactId>static-maven-plugin</artifactId>
  332. <version>0.0.2-SNAPSHOT</version>
  333. <!-- 静态资源分离 -->
  334. <executions>
  335. <execution>
  336. <id>default-static</id>
  337. <phase>prepare-package</phase>
  338. <configuration>
  339. <webappDir>${project.build.directory}/minify</webappDir>
  340. <sourceDir>/</sourceDir>
  341. <targetDir>${project.build.directory}/statics</targetDir>
  342. <staticDir>/</staticDir>
  343. <sourceIncludes>
  344. <sourceInclude>resources/js/**/*.js</sourceInclude>
  345. <sourceInclude>resources/css/**/*.css</sourceInclude>
  346. <sourceInclude>WEB-INF/views/**/*.html</sourceInclude>
  347. </sourceIncludes>
  348. <!-- http://static.ubtoc.com/css/index.css?_v=1450321871828 -->
  349. <versionSuffix>
  350. <suffix>?_v=${timestamp}</suffix>
  351. <exclude>resources/lib/**/*</exclude>
  352. </versionSuffix>
  353. </configuration>
  354. <goals>
  355. <goal>static</goal>
  356. </goals>
  357. </execution>
  358. </executions>
  359. </plugin>
  360. <plugin>
  361. <groupId>org.apache.maven.plugins</groupId>
  362. <artifactId>maven-war-plugin</artifactId>
  363. <configuration>
  364. <webResources>
  365. <resource>
  366. <directory>${project.build.directory}/statics</directory>
  367. </resource>
  368. <resource>
  369. <directory>${project.build.directory}/minify</directory>
  370. </resource>
  371. </webResources>
  372. </configuration>
  373. </plugin>
  374. </plugins>
  375. <pluginManagement>
  376. <plugins>
  377. <plugin>
  378. <groupId>org.eclipse.m2e</groupId>
  379. <artifactId>lifecycle-mapping</artifactId>
  380. <version>1.0.0</version>
  381. <configuration>
  382. <lifecycleMappingMetadata>
  383. <pluginExecutions>
  384. <pluginExecution>
  385. <pluginExecutionFilter>
  386. <groupId>
  387. org.codehaus.mojo
  388. </groupId>
  389. <artifactId>
  390. buildnumber-maven-plugin
  391. </artifactId>
  392. <versionRange>
  393. [1.3,)
  394. </versionRange>
  395. <goals>
  396. <goal>
  397. create-timestamp
  398. </goal>
  399. </goals>
  400. </pluginExecutionFilter>
  401. <action>
  402. <ignore></ignore>
  403. </action>
  404. </pluginExecution>
  405. </pluginExecutions>
  406. </lifecycleMappingMetadata>
  407. </configuration>
  408. </plugin>
  409. </plugins>
  410. </pluginManagement>
  411. </build>
  412. <distributionManagement>
  413. <!-- 发布release仓库 -->
  414. <repository>
  415. <id>platform-release</id>
  416. <name>platform-release</name>
  417. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  418. </repository>
  419. <!-- 发布快照版本 -->
  420. <snapshotRepository>
  421. <id>platform-snapshots</id>
  422. <name>platform-snapshots</name>
  423. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  424. </snapshotRepository>
  425. </distributionManagement>
  426. </project>