pom.xml 13 KB

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