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>dayu</groupId> 5 <artifactId>xxx</artifactId> 6 <packaging>war</packaging> 7 <version>0.0.1-SNAPSHOT</version> 8 <name>xxx Maven Webapp</name> 9 <url>http://maven.apache.org</url> 10 11 <properties> 12 <!-- spring版本号 --> 13 <spring.version>4.0.2.RELEASE</spring.version> 14 <!-- mybatis版本号 --> 15 <mybatis.version>3.2.6</mybatis.version> 16 <!-- log4j日志文件管理包版本 --> 17 <slf4j.version>1.7.7</slf4j.version> 18 <log4j.version>1.2.17</log4j.version> 19 </properties> 20 21 <dependencies> 22 <dependency> 23 <groupId>junit</groupId> 24 <artifactId>junit</artifactId> 25 <version>4.11</version> 26 <!-- 表示开发的时候引入,发布的时候不会加载此包 --> 27 <scope>test</scope> 28 </dependency> 29 30 <!-- spring核心包 --> 31 <dependency> 32 <groupId>org.springframework</groupId> 33 <artifactId>spring-core</artifactId> 34 <version>4.0.2.RELEASE</version> 35 </dependency> 36 <dependency> 37 <groupId>org.springframework</groupId> 38 <artifactId>spring-web</artifactId> 39 <version>4.0.2.RELEASE</version> 40 </dependency> 41 <dependency> 42 <groupId>org.springframework</groupId> 43 <artifactId>spring-oxm</artifactId> 44 <version>${spring.version}</version> 45 </dependency> 46 <dependency> 47 <groupId>org.springframework</groupId> 48 <artifactId>spring-tx</artifactId> 49 <version>${spring.version}</version> 50 </dependency> 51 <dependency> 52 <groupId>org.springframework</groupId> 53 <artifactId>spring-jdbc</artifactId> 54 <version>${spring.version}</version> 55 </dependency> 56 57 <dependency> 58 <groupId>org.springframework</groupId> 59 <artifactId>spring-webmvc</artifactId> 60 <version>${spring.version}</version> 61 </dependency> 62 <dependency> 63 <groupId>org.springframework</groupId> 64 <artifactId>spring-aop</artifactId> 65 <version>${spring.version}</version> 66 </dependency> 67 68 <dependency> 69 <groupId>org.springframework</groupId> 70 <artifactId>spring-context-support</artifactId> 71 <version>${spring.version}</version> 72 </dependency> 73 74 <dependency> 75 <groupId>org.springframework</groupId> 76 <artifactId>spring-test</artifactId> 77 <version>${spring.version}</version> 78 </dependency> 79 <!-- mybatis核心包 --> 80 <dependency> 81 <groupId>org.mybatis</groupId> 82 <artifactId>mybatis</artifactId> 83 <version>${mybatis.version}</version> 84 </dependency> 85 <!-- mybatis/spring包 --> 86 <dependency> 87 <groupId>org.mybatis</groupId> 88 <artifactId>mybatis-spring</artifactId> 89 <version>1.2.2</version> 90 </dependency> 91 <!-- 导入java ee jar 包 --> 92 <dependency> 93 <groupId>javax</groupId> 94 <artifactId>javaee-api</artifactId> 95 <version>7.0</version> 96 </dependency> 97 <!-- 导入Mysql数据库链接jar包 --> 98 <dependency> 99 <groupId>mysql</groupId> 100 <artifactId>mysql-connector-java</artifactId> 101 <version>5.1.30</version> 102 </dependency> 103 <!-- 导入dbcp的jar包,用来在applicationContext.xml中配置数据库 --> 104 <dependency> 105 <groupId>commons-dbcp</groupId> 106 <artifactId>commons-dbcp</artifactId> 107 <version>1.2.2</version> 108 </dependency> 109 <!-- JSTL标签类 --> 110 <dependency> 111 <groupId>jstl</groupId> 112 <artifactId>jstl</artifactId> 113 <version>1.2</version> 114 </dependency> 115 <!-- 日志文件管理包 --> 116 <!-- log start --> 117 <dependency> 118 <groupId>log4j</groupId> 119 <artifactId>log4j</artifactId> 120 <version>${log4j.version}</version> 121 </dependency> 122 123 <!-- json转换工具 --> 124 <dependency> 125 <groupId>com.alibaba</groupId> 126 <artifactId>fastjson</artifactId> 127 <version>1.2.7</version> 128 </dependency> 129 130 <dependency> 131 <groupId>net.sf.json-lib</groupId> 132 <artifactId>json-lib</artifactId> 133 <version>2.4</version> 134 <classifier>jdk15</classifier> 135 </dependency> 136 <dependency> 137 <groupId>org.json</groupId> 138 <artifactId>json</artifactId> 139 <version>20090211</version> 140 </dependency> 141 142 <!-- 格式化对象,方便输出日志 --> 143 <dependency> 144 <groupId>org.slf4j</groupId> 145 <artifactId>slf4j-api</artifactId> 146 <version>${slf4j.version}</version> 147 </dependency> 148 149 <dependency> 150 <groupId>org.slf4j</groupId> 151 <artifactId>slf4j-log4j12</artifactId> 152 <version>${slf4j.version}</version> 153 </dependency> 154 <!-- log end --> 155 <!-- 映入JSON --> 156 <dependency> 157 <groupId>org.codehaus.jackson</groupId> 158 <artifactId>jackson-mapper-asl</artifactId> 159 <version>1.9.13</version> 160 </dependency> 161 <!-- 上传组件包 --> 162 <dependency> 163 <groupId>commons-fileupload</groupId> 164 <artifactId>commons-fileupload</artifactId> 165 <version>1.3.1</version> 166 </dependency> 167 <dependency> 168 <groupId>commons-io</groupId> 169 <artifactId>commons-io</artifactId> 170 <version>2.4</version> 171 </dependency> 172 <dependency> 173 <groupId>commons-codec</groupId> 174 <artifactId>commons-codec</artifactId> 175 <version>1.9</version> 176 </dependency> 177 <!-- 短信通道所需jar --> 178 <dependency> 179 <groupId>org.apache.httpcomponents</groupId> 180 <artifactId>httpclient</artifactId> 181 <version>4.2.1</version> 182 </dependency> 183 <dependency> 184 <groupId>org.apache.httpcomponents</groupId> 185 <artifactId>httpcore</artifactId> 186 <version>4.2.1</version> 187 </dependency> 188 <dependency> 189 <groupId>commons-lang</groupId> 190 <artifactId>commons-lang</artifactId> 191 <version>2.6</version> 192 </dependency> 193 <dependency> 194 <groupId>org.eclipse.jetty</groupId> 195 <artifactId>jetty-util</artifactId> 196 <version>9.3.7.v20160115</version> 197 </dependency> 198 <!-- https://mvnrepository.com/artifact/com.cloudhopper.proxool/proxool-cglib --> 199 <dependency> 200 <groupId>com.cloudhopper.proxool</groupId> 201 <artifactId>proxool</artifactId> 202 <version>0.9.1</version> 203 </dependency> 204 <!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz定时 --> 205 <dependency> 206 <groupId>org.quartz-scheduler</groupId> 207 <artifactId>quartz</artifactId> 208 <version>2.2.1</version> 209 </dependency> 210 211 </dependencies> 212 <build> 213 <finalName>xxx</finalName> 214 </build> 215 </project>一个完整的pom.xml文件
时间: 2024-10-10 14:08:01