pom.xml 13 KB

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