pom.xml 13 KB

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