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>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. <dependencies>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-web</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-security</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework</groupId>
  40. <artifactId>spring-context-support</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework</groupId>
  44. <artifactId>spring-webmvc</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.aspectj</groupId>
  48. <artifactId>aspectjweaver</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.hibernate</groupId>
  52. <artifactId>hibernate-ehcache</artifactId>
  53. <exclusions>
  54. <exclusion>
  55. <groupId>org.hibernate</groupId>
  56. <artifactId>hibernate-core</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>org.jboss.logging</groupId>
  60. <artifactId>jboss-logging</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.alibaba</groupId>
  66. <artifactId>druid</artifactId>
  67. <version>${druid.version}</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>com.alibaba</groupId>
  71. <artifactId>fastjson</artifactId>
  72. <version>${fastjson.version}</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>com.oracle</groupId>
  76. <artifactId>ojdbc6</artifactId>
  77. <version>${oracle.jdbc.version}</version>
  78. </dependency>
  79. <dependency>
  80. <groupId>mysql</groupId>
  81. <artifactId>mysql-connector-java</artifactId>
  82. </dependency>
  83. <!-- 打印报表 -->
  84. <dependency>
  85. <groupId>net.sf.jasperreports</groupId>
  86. <artifactId>jasperreports</artifactId>
  87. <version>${jasperreports.version}</version>
  88. <exclusions>
  89. <exclusion>
  90. <groupId>org.apache.lucene</groupId>
  91. <artifactId>lucene-core</artifactId>
  92. </exclusion>
  93. <exclusion>
  94. <groupId>org.apache.lucene</groupId>
  95. <artifactId>lucene-analyzers-common</artifactId>
  96. </exclusion>
  97. <exclusion>
  98. <groupId>org.apache.lucene</groupId>
  99. <artifactId>lucene-queryparser</artifactId>
  100. </exclusion>
  101. <exclusion>
  102. <groupId>bouncycastle</groupId>
  103. <artifactId>bcprov-jdk14</artifactId>
  104. </exclusion>
  105. <exclusion>
  106. <groupId>org.bouncycastle</groupId>
  107. <artifactId>bctsp-jdk14</artifactId>
  108. </exclusion>
  109. <exclusion>
  110. <groupId>org.eclipse.jdt.core.compiler</groupId>
  111. <artifactId>ecj</artifactId>
  112. </exclusion>
  113. <exclusion>
  114. <groupId>com.ibm.icu</groupId>
  115. <artifactId>icu4j</artifactId>
  116. </exclusion>
  117. <exclusion>
  118. <groupId>org.codehaus.castor</groupId>
  119. <artifactId>castor-xml</artifactId>
  120. </exclusion>
  121. <!-- 二维码打印 -->
  122. <!-- <exclusion> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId>
  123. </exclusion> -->
  124. <exclusion>
  125. <groupId>org.olap4j</groupId>
  126. <artifactId>olap4j</artifactId>
  127. </exclusion>
  128. <exclusion>
  129. <groupId>commons-logging</groupId>
  130. <artifactId>commons-logging</artifactId>
  131. </exclusion>
  132. </exclusions>
  133. </dependency>
  134. <dependency>
  135. <groupId>net.sf.jasperreports</groupId>
  136. <artifactId>jasperreports-functions</artifactId>
  137. <version>${jasperreports-functions.version}</version>
  138. </dependency>
  139. <!-- 导出xls报表 -->
  140. <dependency>
  141. <groupId>org.apache.poi</groupId>
  142. <artifactId>poi</artifactId>
  143. <version>${poi.version}</version>
  144. </dependency>
  145. <!-- 自制中文字体 - 微软雅黑 -->
  146. <dependency>
  147. <groupId>com.uas.report</groupId>
  148. <artifactId>microsoft-yahei-ui</artifactId>
  149. <version>1.0.0</version>
  150. </dependency>
  151. <!-- 文件上传 -->
  152. <dependency>
  153. <groupId>commons-fileupload</groupId>
  154. <artifactId>commons-fileupload</artifactId>
  155. <version>${commons.fileupload.version}</version>
  156. </dependency>
  157. <!-- HTTP请求 -->
  158. <dependency>
  159. <groupId>org.apache.httpcomponents</groupId>
  160. <artifactId>httpclient</artifactId>
  161. </dependency>
  162. <!-- axis web service -->
  163. <dependency>
  164. <groupId>org.apache.axis</groupId>
  165. <artifactId>axis</artifactId>
  166. <version>${axis.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.apache.axis</groupId>
  170. <artifactId>axis-ant</artifactId>
  171. <version>${axis.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.apache.axis</groupId>
  175. <artifactId>axis-jaxrpc</artifactId>
  176. <version>${axis.version}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.apache.axis</groupId>
  180. <artifactId>axis-saaj</artifactId>
  181. <version>${axis.version}</version>
  182. </dependency>
  183. <dependency>
  184. <groupId>commons-discovery</groupId>
  185. <artifactId>commons-discovery</artifactId>
  186. <version>${commons.discovery.version}</version>
  187. <exclusions>
  188. <exclusion>
  189. <groupId>commons-logging</groupId>
  190. <artifactId>commons-logging</artifactId>
  191. </exclusion>
  192. </exclusions>
  193. </dependency>
  194. <dependency>
  195. <groupId>wsdl4j</groupId>
  196. <artifactId>wsdl4j</artifactId>
  197. </dependency>
  198. <!-- Axis Attachment support -->
  199. <dependency>
  200. <groupId>javax.activation</groupId>
  201. <artifactId>activation</artifactId>
  202. <version>${javax.activation.version}</version>
  203. </dependency>
  204. <dependency>
  205. <groupId>javax.mail</groupId>
  206. <artifactId>javax.mail-api</artifactId>
  207. </dependency>
  208. <dependency>
  209. <groupId>com.sun.mail</groupId>
  210. <artifactId>javax.mail</artifactId>
  211. </dependency>
  212. <!-- dom4j -->
  213. <dependency>
  214. <groupId>dom4j</groupId>
  215. <artifactId>dom4j</artifactId>
  216. </dependency>
  217. <dependency>
  218. <groupId>jaxen</groupId>
  219. <artifactId>jaxen</artifactId>
  220. </dependency>
  221. <!-- 打印条形码 -->
  222. <dependency>
  223. <groupId>net.sf.barcode4j</groupId>
  224. <artifactId>barcode4j</artifactId>
  225. <version>${barcode4j.version}</version>
  226. <exclusions>
  227. <exclusion>
  228. <groupId>org.apache.ant</groupId>
  229. <artifactId>ant</artifactId>
  230. </exclusion>
  231. <exclusion>
  232. <groupId>commons-cli</groupId>
  233. <artifactId>commons-cli</artifactId>
  234. </exclusion>
  235. </exclusions>
  236. </dependency>
  237. <dependency>
  238. <groupId>net.sourceforge.barbecue</groupId>
  239. <artifactId>barbecue</artifactId>
  240. <version>${barbecue.version}</version>
  241. </dependency>
  242. <dependency>
  243. <groupId>org.codehaus.groovy</groupId>
  244. <artifactId>groovy-all</artifactId>
  245. </dependency>
  246. <dependency>
  247. <groupId>org.apache.xmlgraphics</groupId>
  248. <artifactId>batik-bridge</artifactId>
  249. <version>${batik.bridge.version}</version>
  250. <exclusions>
  251. <exclusion>
  252. <groupId>xalan</groupId>
  253. <artifactId>xalan</artifactId>
  254. </exclusion>
  255. </exclusions>
  256. </dependency>
  257. <dependency>
  258. <groupId>org.apache.xmlgraphics</groupId>
  259. <artifactId>xmlgraphics-commons</artifactId>
  260. <version>${xmlgraphics.version}</version>
  261. <exclusions>
  262. <exclusion>
  263. <groupId>commons-logging</groupId>
  264. <artifactId>commons-logging</artifactId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. <dependency>
  269. <groupId>commons-lang</groupId>
  270. <artifactId>commons-lang</artifactId>
  271. <version>${commons.lang.version}</version>
  272. </dependency>
  273. <dependency>
  274. <groupId>com.uas.report</groupId>
  275. <artifactId>report-common</artifactId>
  276. <version>${report.common.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>