|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | + |
| 3 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>com.yjz</groupId> |
| 8 | + <artifactId>notepad</artifactId> |
| 9 | + <version>1.0-SNAPSHOT</version> |
| 10 | + <packaging>war</packaging> |
| 11 | + |
| 12 | + <name>notepad Maven Webapp</name> |
| 13 | + <!-- FIXME change it to the project's website --> |
| 14 | + <url>http://www.example.com</url> |
| 15 | + |
| 16 | + <properties> |
| 17 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 18 | + <maven.compiler.source>1.7</maven.compiler.source> |
| 19 | + <maven.compiler.target>1.7</maven.compiler.target> |
| 20 | + <!-- spring版本号 --> |
| 21 | + <spring.version>4.2.5.RELEASE</spring.version> |
| 22 | + <!-- mybatis版本号 --> |
| 23 | + <mybatis.version>3.2.8</mybatis.version> |
| 24 | + <!-- mysql驱动版本号 --> |
| 25 | + <mysql-driver.version>5.1.29</mysql-driver.version> |
| 26 | + <!-- log4j日志包版本号 --> |
| 27 | + <slf4j.version>1.7.18</slf4j.version> |
| 28 | + <log4j.version>1.2.17</log4j.version> |
| 29 | + </properties> |
| 30 | + |
| 31 | + <dependencies> |
| 32 | + |
| 33 | + <dependency> |
| 34 | + <groupId>jstl</groupId> |
| 35 | + <artifactId>jstl</artifactId> |
| 36 | + <version>1.2</version> |
| 37 | + </dependency> |
| 38 | + <dependency> |
| 39 | + <groupId>taglibs</groupId> |
| 40 | + <artifactId>standard</artifactId> |
| 41 | + <version>1.1.2</version> |
| 42 | + </dependency> |
| 43 | + |
| 44 | + <!-- lombok --> |
| 45 | + <dependency> |
| 46 | + <groupId>org.projectlombok</groupId> |
| 47 | + <artifactId>lombok</artifactId> |
| 48 | + <version>1.16.10</version> |
| 49 | + </dependency> |
| 50 | + |
| 51 | + <!-- java ee --> |
| 52 | + <dependency> |
| 53 | + <groupId>javax</groupId> |
| 54 | + <artifactId>javaee-api</artifactId> |
| 55 | + <version>7.0</version> |
| 56 | + </dependency> |
| 57 | + |
| 58 | + <!-- 单元测试 --> |
| 59 | + <dependency> |
| 60 | + <groupId>junit</groupId> |
| 61 | + <artifactId>junit</artifactId> |
| 62 | + <version>4.12</version> |
| 63 | + </dependency> |
| 64 | + |
| 65 | + <!-- 实现slf4j接口并整合 --> |
| 66 | + <dependency> |
| 67 | + <groupId>ch.qos.logback</groupId> |
| 68 | + <artifactId>logback-classic</artifactId> |
| 69 | + <version>1.2.2</version> |
| 70 | + </dependency> |
| 71 | + |
| 72 | + <!-- JSON --> |
| 73 | + <dependency> |
| 74 | + <groupId>com.fasterxml.jackson.core</groupId> |
| 75 | + <artifactId>jackson-databind</artifactId> |
| 76 | + <version>2.8.7</version> |
| 77 | + </dependency> |
| 78 | + |
| 79 | + |
| 80 | + <!-- 数据库 --> |
| 81 | + <dependency> |
| 82 | + <groupId>mysql</groupId> |
| 83 | + <artifactId>mysql-connector-java</artifactId> |
| 84 | + <version>5.1.41</version> |
| 85 | + <scope>runtime</scope> |
| 86 | + </dependency> |
| 87 | + |
| 88 | + <!-- 数据库连接池 --> |
| 89 | + <dependency> |
| 90 | + <groupId>com.alibaba</groupId> |
| 91 | + <artifactId>druid</artifactId> |
| 92 | + <version>1.0.20</version> |
| 93 | + </dependency> |
| 94 | + |
| 95 | + <!-- MyBatis --> |
| 96 | + <dependency> |
| 97 | + <groupId>org.mybatis</groupId> |
| 98 | + <artifactId>mybatis</artifactId> |
| 99 | + <version>${mybatis.version}</version> |
| 100 | + </dependency> |
| 101 | + |
| 102 | + <!-- mybatis/spring整合包 --> |
| 103 | + <dependency> |
| 104 | + <groupId>org.mybatis</groupId> |
| 105 | + <artifactId>mybatis-spring</artifactId> |
| 106 | + <version>1.3.1</version> |
| 107 | + </dependency> |
| 108 | + |
| 109 | + <!-- Spring --> |
| 110 | + <dependency> |
| 111 | + <groupId>org.springframework</groupId> |
| 112 | + <artifactId>spring-core</artifactId> |
| 113 | + <version>${spring.version}</version> |
| 114 | + </dependency> |
| 115 | + <dependency> |
| 116 | + <groupId>org.springframework</groupId> |
| 117 | + <artifactId>spring-beans</artifactId> |
| 118 | + <version>${spring.version}</version> |
| 119 | + </dependency> |
| 120 | + <dependency> |
| 121 | + <groupId>org.springframework</groupId> |
| 122 | + <artifactId>spring-context</artifactId> |
| 123 | + <version>${spring.version}</version> |
| 124 | + </dependency> |
| 125 | + <dependency> |
| 126 | + <groupId>org.springframework</groupId> |
| 127 | + <artifactId>spring-jdbc</artifactId> |
| 128 | + <version>${spring.version}</version> |
| 129 | + </dependency> |
| 130 | + <dependency> |
| 131 | + <groupId>org.springframework</groupId> |
| 132 | + <artifactId>spring-tx</artifactId> |
| 133 | + <version>${spring.version}</version> |
| 134 | + </dependency> |
| 135 | + <dependency> |
| 136 | + <groupId>org.springframework</groupId> |
| 137 | + <artifactId>spring-web</artifactId> |
| 138 | + <version>${spring.version}</version> |
| 139 | + </dependency> |
| 140 | + <dependency> |
| 141 | + <groupId>org.springframework</groupId> |
| 142 | + <artifactId>spring-webmvc</artifactId> |
| 143 | + <version>${spring.version}</version> |
| 144 | + </dependency> |
| 145 | + <dependency> |
| 146 | + <groupId>org.springframework</groupId> |
| 147 | + <artifactId>spring-test</artifactId> |
| 148 | + <version>${spring.version}</version> |
| 149 | + </dependency> |
| 150 | + |
| 151 | + </dependencies> |
| 152 | + |
| 153 | + <build> |
| 154 | + <finalName>notepad</finalName> |
| 155 | + <pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) --> |
| 156 | + <plugins> |
| 157 | + <plugin> |
| 158 | + <artifactId>maven-clean-plugin</artifactId> |
| 159 | + <version>3.0.0</version> |
| 160 | + </plugin> |
| 161 | + <!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging --> |
| 162 | + <plugin> |
| 163 | + <artifactId>maven-resources-plugin</artifactId> |
| 164 | + <version>3.0.2</version> |
| 165 | + </plugin> |
| 166 | + <plugin> |
| 167 | + <artifactId>maven-compiler-plugin</artifactId> |
| 168 | + <version>3.7.0</version> |
| 169 | + </plugin> |
| 170 | + <plugin> |
| 171 | + <artifactId>maven-surefire-plugin</artifactId> |
| 172 | + <version>2.20.1</version> |
| 173 | + </plugin> |
| 174 | + <plugin> |
| 175 | + <artifactId>maven-war-plugin</artifactId> |
| 176 | + <version>3.2.0</version> |
| 177 | + </plugin> |
| 178 | + <plugin> |
| 179 | + <artifactId>maven-install-plugin</artifactId> |
| 180 | + <version>2.5.2</version> |
| 181 | + </plugin> |
| 182 | + <plugin> |
| 183 | + <artifactId>maven-deploy-plugin</artifactId> |
| 184 | + <version>2.8.2</version> |
| 185 | + </plugin> |
| 186 | + </plugins> |
| 187 | + </pluginManagement> |
| 188 | + </build> |
| 189 | +</project> |
0 commit comments