pom.xml 13 KB

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