pom.xml 13 KB

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