|
| 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.zhang</groupId> |
| 5 | + <artifactId>springmvc</artifactId> |
| 6 | + <packaging>war</packaging> |
| 7 | + <version>0.0.1-SNAPSHOT</version> |
| 8 | + <name>springmvc Maven Webapp</name> |
| 9 | + <url>http://maven.apache.org</url> |
| 10 | + |
| 11 | +<properties> |
| 12 | + <java.version>1.8</java.version> |
| 13 | + <spring.version>4.3.0.RELEASE</spring.version> |
| 14 | + <mysql.version>5.1.25</mysql.version> |
| 15 | + <mybatis.version>3.2.7</mybatis.version> |
| 16 | + </properties> |
| 17 | + |
| 18 | + <dependencies> |
| 19 | + <dependency> |
| 20 | + <groupId>junit</groupId> |
| 21 | + <artifactId>junit</artifactId> |
| 22 | + <version>4.5</version> |
| 23 | + </dependency> |
| 24 | + <dependency> |
| 25 | + <groupId>net.sf.json-lib</groupId> |
| 26 | + <artifactId>json-lib</artifactId> |
| 27 | + <version>2.4</version> |
| 28 | + <classifier>jdk15</classifier><!--指定jdk版本--> |
| 29 | + </dependency> |
| 30 | + |
| 31 | + <dependency> |
| 32 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 33 | + <artifactId>jackson-databind</artifactId> |
| 34 | + <version>2.7.3</version> |
| 35 | + </dependency> |
| 36 | + |
| 37 | + <dependency> |
| 38 | + <groupId>commons-collections</groupId> |
| 39 | + <artifactId>commons-collections</artifactId> |
| 40 | + <version>3.2.1</version> |
| 41 | + </dependency> |
| 42 | + |
| 43 | + <dependency> |
| 44 | + <groupId>mysql</groupId> |
| 45 | + <artifactId>mysql-connector-java</artifactId> |
| 46 | + <version>${mysql.version}</version> |
| 47 | + </dependency> |
| 48 | + <dependency> |
| 49 | + <groupId>com.alibaba</groupId> |
| 50 | + <artifactId>druid</artifactId> |
| 51 | + <version>1.0.22</version> |
| 52 | + </dependency> |
| 53 | + |
| 54 | + <dependency> |
| 55 | + <groupId>javax.servlet</groupId> |
| 56 | + <artifactId>javax.servlet-api</artifactId> |
| 57 | + <version>3.0.1</version> |
| 58 | + <scope>provided</scope> |
| 59 | + </dependency> |
| 60 | + |
| 61 | + <dependency> |
| 62 | + <groupId>javax.servlet</groupId> |
| 63 | + <artifactId>jsp-api</artifactId> |
| 64 | + <version>2.0</version> |
| 65 | + <scope>provided</scope> |
| 66 | + </dependency> |
| 67 | + |
| 68 | + <dependency> |
| 69 | + <groupId>javax.servlet</groupId> |
| 70 | + <artifactId>jstl</artifactId> |
| 71 | + <version>1.2</version> |
| 72 | + </dependency> |
| 73 | + |
| 74 | + <dependency> |
| 75 | + <groupId>org.springframework</groupId> |
| 76 | + <artifactId>spring-context</artifactId> |
| 77 | + <version>${spring.version}</version> |
| 78 | + </dependency> |
| 79 | + |
| 80 | + <dependency> |
| 81 | + <groupId>org.springframework</groupId> |
| 82 | + <artifactId>spring-jdbc</artifactId> |
| 83 | + <version>${spring.version}</version> |
| 84 | + </dependency> |
| 85 | + |
| 86 | + <dependency> |
| 87 | + <groupId>org.springframework</groupId> |
| 88 | + <artifactId>spring-context-support</artifactId> |
| 89 | + <version>${spring.version}</version> |
| 90 | + </dependency> |
| 91 | + <dependency> |
| 92 | + <groupId>org.springframework</groupId> |
| 93 | + <artifactId>spring-webmvc</artifactId> |
| 94 | + <version>${spring.version}</version> |
| 95 | + </dependency> |
| 96 | + <dependency> |
| 97 | + <groupId>org.springframework</groupId> |
| 98 | + <artifactId>spring-test</artifactId> |
| 99 | + <version>${spring.version}</version> |
| 100 | + </dependency> |
| 101 | + |
| 102 | + <dependency> |
| 103 | + <groupId>org.springframework</groupId> |
| 104 | + <artifactId>spring-web</artifactId> |
| 105 | + <version>${spring.version}</version> |
| 106 | + </dependency> |
| 107 | + |
| 108 | + <dependency> |
| 109 | + <groupId>org.codehaus.jackson</groupId> |
| 110 | + <artifactId>jackson-mapper-asl</artifactId> |
| 111 | + <version>1.9.12</version> |
| 112 | + </dependency> |
| 113 | + <dependency> |
| 114 | + <groupId>org.codehaus.jackson</groupId> |
| 115 | + <artifactId>jackson-mapper-lgpl</artifactId> |
| 116 | + <version>1.9.12</version> |
| 117 | + </dependency> |
| 118 | + <dependency> |
| 119 | + <groupId>org.codehaus.jackson</groupId> |
| 120 | + <artifactId>jackson-core-asl</artifactId> |
| 121 | + <version>1.9.12</version> |
| 122 | + </dependency> |
| 123 | + |
| 124 | + <dependency> |
| 125 | + <groupId>org.mybatis</groupId> |
| 126 | + <artifactId>mybatis</artifactId> |
| 127 | + <version>${mybatis.version}</version> |
| 128 | + </dependency> |
| 129 | + <dependency> |
| 130 | + <groupId>org.mybatis</groupId> |
| 131 | + <artifactId>mybatis-spring</artifactId> |
| 132 | + <version>1.2.2</version> |
| 133 | + </dependency> |
| 134 | + |
| 135 | + <dependency> |
| 136 | + <groupId>org.slf4j</groupId> |
| 137 | + <artifactId>slf4j-log4j12</artifactId> |
| 138 | + <version>1.7.10</version> |
| 139 | + </dependency> |
| 140 | + |
| 141 | + <dependency> |
| 142 | + <groupId>log4j</groupId> |
| 143 | + <artifactId>log4j</artifactId> |
| 144 | + <version>1.2.17</version> |
| 145 | + </dependency> |
| 146 | + |
| 147 | + <dependency> |
| 148 | + <groupId>org.apache.commons</groupId> |
| 149 | + <artifactId>commons-lang3</artifactId> |
| 150 | + <version>3.4</version> |
| 151 | + </dependency> |
| 152 | + |
| 153 | + <dependency> |
| 154 | + <groupId>org.aspectj</groupId> |
| 155 | + <artifactId>aspectjweaver</artifactId> |
| 156 | + <version>1.8.9</version> |
| 157 | + </dependency> |
| 158 | + <dependency> |
| 159 | + <groupId>org.quartz-scheduler</groupId> |
| 160 | + <artifactId>quartz</artifactId> |
| 161 | + <version>2.2.2</version> |
| 162 | + </dependency> |
| 163 | + |
| 164 | + </dependencies> |
| 165 | + |
| 166 | + <build> |
| 167 | + <finalName>springmvc</finalName> |
| 168 | + <plugins> |
| 169 | + <plugin> |
| 170 | + <groupId>org.apache.maven.plugins</groupId> |
| 171 | + <artifactId>maven-compiler-plugin</artifactId> |
| 172 | + <version>3.2</version> |
| 173 | + <configuration> |
| 174 | + <source>1.8</source> |
| 175 | + <target>1.8</target> |
| 176 | + <encoding>UTF-8</encoding> |
| 177 | + </configuration> |
| 178 | + </plugin> |
| 179 | + <!-- 配置Tomcat插件 --> |
| 180 | + <plugin> |
| 181 | + <groupId>org.apache.tomcat.maven</groupId> |
| 182 | + <artifactId>tomcat7-maven-plugin</artifactId> |
| 183 | + <configuration> |
| 184 | + <path>/</path> |
| 185 | + </configuration> |
| 186 | + </plugin> |
| 187 | + </plugins> |
| 188 | + </build> |
| 189 | +</project> |
0 commit comments