pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <groupId>com.uas.report</groupId>
  5. <artifactId>report</artifactId>
  6. <packaging>war</packaging>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>report Maven Webapp</name>
  9. <url>http://maven.apache.org</url>
  10. <profiles>
  11. <!-- 开发环境 -->
  12. <profile>
  13. <id>dev</id>
  14. <properties>
  15. <profile>dev</profile>
  16. </properties>
  17. <activation>
  18. <activeByDefault>true</activeByDefault>
  19. </activation>
  20. </profile>
  21. <!-- 测试环境 -->
  22. <profile>
  23. <id>test</id>
  24. <properties>
  25. <profile>test</profile>
  26. </properties>
  27. </profile>
  28. </profiles>
  29. <properties>
  30. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  31. <oracle.jdbc.version>11.2.0</oracle.jdbc.version>
  32. <spring.version>4.1.6.RELEASE</spring.version>
  33. <log4j.version>1.2.16</log4j.version>
  34. <servlet.version>3.0-alpha-1</servlet.version>
  35. <commons.dbcp.version>1.4</commons.dbcp.version>
  36. <druid.version>1.0.24</druid.version>
  37. <jasperreports.version>6.3.0</jasperreports.version>
  38. <groovy.version>2.4.7</groovy.version>
  39. <poi.version>3.10.1</poi.version>
  40. <commons.fileupload.version>1.3.2</commons.fileupload.version>
  41. <fastjson.version>1.1.39</fastjson.version>
  42. <httpclient.version>4.5.2</httpclient.version>
  43. <itextpdf.version>5.5.9</itextpdf.version>
  44. </properties>
  45. <dependencies>
  46. <dependency>
  47. <groupId>junit</groupId>
  48. <artifactId>junit</artifactId>
  49. <version>3.8.1</version>
  50. <scope>test</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>javax.servlet</groupId>
  54. <artifactId>servlet-api</artifactId>
  55. <version>${servlet.version}</version>
  56. <scope>provided</scope>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>druid</artifactId>
  61. <version>${druid.version}</version>
  62. </dependency>
  63. <!-- log4j -->
  64. <dependency>
  65. <groupId>log4j</groupId>
  66. <artifactId>log4j</artifactId>
  67. <version>${log4j.version}</version>
  68. </dependency>
  69. <!-- spring-webmvc -->
  70. <dependency>
  71. <groupId>org.springframework</groupId>
  72. <artifactId>spring-webmvc</artifactId>
  73. <version>${spring.version}</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.oracle</groupId>
  77. <artifactId>ojdbc6</artifactId>
  78. <version>${oracle.jdbc.version}</version>
  79. </dependency>
  80. <!-- 打印报表 -->
  81. <dependency>
  82. <groupId>net.sf.jasperreports</groupId>
  83. <artifactId>jasperreports</artifactId>
  84. <version>${jasperreports.version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.codehaus.groovy</groupId>
  88. <artifactId>groovy-all</artifactId>
  89. <version>${groovy.version}</version>
  90. </dependency>
  91. <!-- 导出xls报表 -->
  92. <dependency>
  93. <groupId>org.apache.poi</groupId>
  94. <artifactId>poi</artifactId>
  95. <version>${poi.version}</version>
  96. </dependency>
  97. <!-- 自制中文字体 - 微软雅黑 -->
  98. <dependency>
  99. <groupId>com.uas.report</groupId>
  100. <artifactId>msyahei</artifactId>
  101. <version>1.0.0</version>
  102. </dependency>
  103. <!-- 文件上传 -->
  104. <dependency>
  105. <groupId>commons-fileupload</groupId>
  106. <artifactId>commons-fileupload</artifactId>
  107. <version>${commons.fileupload.version}</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.alibaba</groupId>
  111. <artifactId>fastjson</artifactId>
  112. <version>${fastjson.version}</version>
  113. </dependency>
  114. <!-- HTTP请求 -->
  115. <dependency>
  116. <groupId>org.apache.httpcomponents</groupId>
  117. <artifactId>httpclient</artifactId>
  118. <version>${httpclient.version}</version>
  119. </dependency>
  120. <!-- pdf操作 -->
  121. <dependency>
  122. <groupId>com.itextpdf</groupId>
  123. <artifactId>itextpdf</artifactId>
  124. <version>${itextpdf.version}</version>
  125. </dependency>
  126. </dependencies>
  127. <build>
  128. <finalName>report</finalName>
  129. <!-- 受环境隔离影响的目录 -->
  130. <resources>
  131. <resource>
  132. <directory>src/main/resources</directory>
  133. <filtering>true</filtering>
  134. </resource>
  135. </resources>
  136. <!-- 解决maven项目jre版本默认为1.5的问题 -->
  137. <plugins>
  138. <plugin>
  139. <groupId>org.apache.maven.plugins</groupId>
  140. <artifactId>maven-compiler-plugin</artifactId>
  141. <version>3.1</version>
  142. <configuration>
  143. <encoding>${project.build.sourceEncoding}</encoding>
  144. <source>1.7</source>
  145. <target>1.7</target>
  146. </configuration>
  147. </plugin>
  148. </plugins>
  149. </build>
  150. </project>