pom.xml 4.9 KB

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