pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  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. <druid.version>1.0.24</druid.version>
  13. <jasperreports.version>6.4.0</jasperreports.version>
  14. <jasperreports-functions.version>6.3.0</jasperreports-functions.version>
  15. <poi.version>3.10.1</poi.version>
  16. <commons.fileupload.version>1.3.2</commons.fileupload.version>
  17. <axis.version>1.4</axis.version>
  18. <commons.discovery.version>0.2</commons.discovery.version>
  19. <javax.activation.version>1.1.1</javax.activation.version>
  20. <barcode4j.version>2.1</barcode4j.version>
  21. <barbecue.version>1.5-beta1</barbecue.version>
  22. <batik.bridge.version>1.8</batik.bridge.version>
  23. <xmlgraphics.version>2.1</xmlgraphics.version>
  24. <mail.version>1.4.7</mail.version>
  25. <commons.lang.version>2.6</commons.lang.version>
  26. </properties>
  27. <repositories>
  28. <repository>
  29. <id>lib</id>
  30. <url>file://${project.basedir}/lib</url>
  31. </repository>
  32. </repositories>
  33. <dependencies>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-web</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-security</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework</groupId>
  44. <artifactId>spring-context-support</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework</groupId>
  48. <artifactId>spring-webmvc</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.aspectj</groupId>
  52. <artifactId>aspectjweaver</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.hibernate</groupId>
  56. <artifactId>hibernate-ehcache</artifactId>
  57. <exclusions>
  58. <exclusion>
  59. <groupId>org.hibernate</groupId>
  60. <artifactId>hibernate-core</artifactId>
  61. </exclusion>
  62. <exclusion>
  63. <groupId>org.jboss.logging</groupId>
  64. <artifactId>jboss-logging</artifactId>
  65. </exclusion>
  66. </exclusions>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.alibaba</groupId>
  70. <artifactId>druid</artifactId>
  71. <version>${druid.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.alibaba</groupId>
  75. <artifactId>fastjson</artifactId>
  76. </dependency>
  77. <dependency>
  78. <groupId>com.oracle</groupId>
  79. <artifactId>ojdbc6</artifactId>
  80. </dependency>
  81. <dependency>
  82. <groupId>mysql</groupId>
  83. <artifactId>mysql-connector-java</artifactId>
  84. </dependency>
  85. <!-- 打印报表 -->
  86. <dependency>
  87. <groupId>net.sf.jasperreports</groupId>
  88. <artifactId>jasperreports</artifactId>
  89. <version>${jasperreports.version}</version>
  90. <exclusions>
  91. <exclusion>
  92. <groupId>org.apache.lucene</groupId>
  93. <artifactId>lucene-core</artifactId>
  94. </exclusion>
  95. <exclusion>
  96. <groupId>org.apache.lucene</groupId>
  97. <artifactId>lucene-analyzers-common</artifactId>
  98. </exclusion>
  99. <exclusion>
  100. <groupId>org.apache.lucene</groupId>
  101. <artifactId>lucene-queryparser</artifactId>
  102. </exclusion>
  103. <exclusion>
  104. <groupId>bouncycastle</groupId>
  105. <artifactId>bcprov-jdk14</artifactId>
  106. </exclusion>
  107. <exclusion>
  108. <groupId>org.bouncycastle</groupId>
  109. <artifactId>bctsp-jdk14</artifactId>
  110. </exclusion>
  111. <exclusion>
  112. <groupId>org.eclipse.jdt.core.compiler</groupId>
  113. <artifactId>ecj</artifactId>
  114. </exclusion>
  115. <exclusion>
  116. <groupId>com.ibm.icu</groupId>
  117. <artifactId>icu4j</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>org.codehaus.castor</groupId>
  121. <artifactId>castor-xml</artifactId>
  122. </exclusion>
  123. <!-- 二维码打印 -->
  124. <!-- <exclusion> <groupId>com.google.zxing</groupId> <artifactId>core</artifactId>
  125. </exclusion> -->
  126. <exclusion>
  127. <groupId>org.olap4j</groupId>
  128. <artifactId>olap4j</artifactId>
  129. </exclusion>
  130. <exclusion>
  131. <groupId>commons-logging</groupId>
  132. <artifactId>commons-logging</artifactId>
  133. </exclusion>
  134. </exclusions>
  135. </dependency>
  136. <dependency>
  137. <groupId>net.sf.jasperreports</groupId>
  138. <artifactId>jasperreports-functions</artifactId>
  139. <version>${jasperreports-functions.version}</version>
  140. </dependency>
  141. <!-- 导出xls报表 -->
  142. <dependency>
  143. <groupId>org.apache.poi</groupId>
  144. <artifactId>poi</artifactId>
  145. <version>${poi.version}</version>
  146. </dependency>
  147. <!-- 自制中文字体 - 微软雅黑 -->
  148. <dependency>
  149. <groupId>com.uas.report</groupId>
  150. <artifactId>microsoft-yahei-ui</artifactId>
  151. <version>1.0.0</version>
  152. </dependency>
  153. <!-- 自制中文字体 - 宋体 -->
  154. <dependency>
  155. <groupId>com.uas.report</groupId>
  156. <artifactId>simsun</artifactId>
  157. <version>1.0.0</version>
  158. </dependency>
  159. <!-- 文件上传 -->
  160. <dependency>
  161. <groupId>commons-fileupload</groupId>
  162. <artifactId>commons-fileupload</artifactId>
  163. <version>${commons.fileupload.version}</version>
  164. </dependency>
  165. <!-- HTTP请求 -->
  166. <dependency>
  167. <groupId>org.apache.httpcomponents</groupId>
  168. <artifactId>httpclient</artifactId>
  169. </dependency>
  170. <!-- axis web service -->
  171. <dependency>
  172. <groupId>org.apache.axis</groupId>
  173. <artifactId>axis</artifactId>
  174. <version>${axis.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.apache.axis</groupId>
  178. <artifactId>axis-ant</artifactId>
  179. <version>${axis.version}</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.apache.axis</groupId>
  183. <artifactId>axis-jaxrpc</artifactId>
  184. <version>${axis.version}</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.apache.axis</groupId>
  188. <artifactId>axis-saaj</artifactId>
  189. <version>${axis.version}</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>commons-discovery</groupId>
  193. <artifactId>commons-discovery</artifactId>
  194. <version>${commons.discovery.version}</version>
  195. <exclusions>
  196. <exclusion>
  197. <groupId>commons-logging</groupId>
  198. <artifactId>commons-logging</artifactId>
  199. </exclusion>
  200. </exclusions>
  201. </dependency>
  202. <dependency>
  203. <groupId>wsdl4j</groupId>
  204. <artifactId>wsdl4j</artifactId>
  205. </dependency>
  206. <!-- Axis Attachment support -->
  207. <dependency>
  208. <groupId>javax.activation</groupId>
  209. <artifactId>activation</artifactId>
  210. <version>${javax.activation.version}</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>javax.mail</groupId>
  214. <artifactId>javax.mail-api</artifactId>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.sun.mail</groupId>
  218. <artifactId>javax.mail</artifactId>
  219. </dependency>
  220. <!-- dom4j -->
  221. <dependency>
  222. <groupId>dom4j</groupId>
  223. <artifactId>dom4j</artifactId>
  224. </dependency>
  225. <dependency>
  226. <groupId>jaxen</groupId>
  227. <artifactId>jaxen</artifactId>
  228. </dependency>
  229. <!-- 打印条形码 -->
  230. <dependency>
  231. <groupId>net.sf.barcode4j</groupId>
  232. <artifactId>barcode4j</artifactId>
  233. <version>${barcode4j.version}</version>
  234. <exclusions>
  235. <exclusion>
  236. <groupId>org.apache.ant</groupId>
  237. <artifactId>ant</artifactId>
  238. </exclusion>
  239. <exclusion>
  240. <groupId>commons-cli</groupId>
  241. <artifactId>commons-cli</artifactId>
  242. </exclusion>
  243. </exclusions>
  244. </dependency>
  245. <dependency>
  246. <groupId>net.sourceforge.barbecue</groupId>
  247. <artifactId>barbecue</artifactId>
  248. <version>${barbecue.version}</version>
  249. </dependency>
  250. <dependency>
  251. <groupId>org.codehaus.groovy</groupId>
  252. <artifactId>groovy-all</artifactId>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.xmlgraphics</groupId>
  256. <artifactId>batik-bridge</artifactId>
  257. <version>${batik.bridge.version}</version>
  258. <exclusions>
  259. <exclusion>
  260. <groupId>xalan</groupId>
  261. <artifactId>xalan</artifactId>
  262. </exclusion>
  263. </exclusions>
  264. </dependency>
  265. <dependency>
  266. <groupId>org.apache.xmlgraphics</groupId>
  267. <artifactId>xmlgraphics-commons</artifactId>
  268. <version>${xmlgraphics.version}</version>
  269. <exclusions>
  270. <exclusion>
  271. <groupId>commons-logging</groupId>
  272. <artifactId>commons-logging</artifactId>
  273. </exclusion>
  274. </exclusions>
  275. </dependency>
  276. <dependency>
  277. <groupId>commons-lang</groupId>
  278. <artifactId>commons-lang</artifactId>
  279. <version>${commons.lang.version}</version>
  280. </dependency>
  281. <dependency>
  282. <groupId>com.uas.report</groupId>
  283. <artifactId>report-common</artifactId>
  284. </dependency>
  285. </dependencies>
  286. <build>
  287. <plugins>
  288. <!-- 在maven生命周期validate阶段生成timestamp -->
  289. <plugin>
  290. <groupId>org.codehaus.mojo</groupId>
  291. <artifactId>buildnumber-maven-plugin</artifactId>
  292. <version>1.3</version>
  293. <executions>
  294. <execution>
  295. <phase>validate</phase>
  296. <goals>
  297. <goal>create-timestamp</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. <configuration>
  302. <format>{0,date,yyyy-MM-dd HH:mm:ss}</format>
  303. <items>
  304. <item>timestamp</item>
  305. </items>
  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. <plugin>
  375. <groupId>org.springframework.boot</groupId>
  376. <artifactId>spring-boot-maven-plugin</artifactId>
  377. <configuration>
  378. <mainClass>com.uas.report.Application</mainClass>
  379. </configuration>
  380. </plugin>
  381. </plugins>
  382. <pluginManagement>
  383. <plugins>
  384. <plugin>
  385. <groupId>org.eclipse.m2e</groupId>
  386. <artifactId>lifecycle-mapping</artifactId>
  387. <version>1.0.0</version>
  388. <configuration>
  389. <lifecycleMappingMetadata>
  390. <pluginExecutions>
  391. <pluginExecution>
  392. <pluginExecutionFilter>
  393. <groupId>
  394. org.codehaus.mojo
  395. </groupId>
  396. <artifactId>
  397. buildnumber-maven-plugin
  398. </artifactId>
  399. <versionRange>
  400. [1.3,)
  401. </versionRange>
  402. <goals>
  403. <goal>
  404. create-timestamp
  405. </goal>
  406. </goals>
  407. </pluginExecutionFilter>
  408. <action>
  409. <ignore></ignore>
  410. </action>
  411. </pluginExecution>
  412. </pluginExecutions>
  413. </lifecycleMappingMetadata>
  414. </configuration>
  415. </plugin>
  416. </plugins>
  417. </pluginManagement>
  418. </build>
  419. <distributionManagement>
  420. <!-- 发布release仓库 -->
  421. <repository>
  422. <id>platform-release</id>
  423. <name>platform-release</name>
  424. <url>http://113.105.74.141:8081/artifactory/libs-release-local</url>
  425. </repository>
  426. <!-- 发布快照版本 -->
  427. <snapshotRepository>
  428. <id>platform-snapshots</id>
  429. <name>platform-snapshots</name>
  430. <url>http://113.105.74.141:8081/artifactory/libs-snapshot-local</url>
  431. </snapshotRepository>
  432. </distributionManagement>
  433. </project>