pom.xml 12 KB

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