首页
常用maven配置(随时更新) 作者

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

   <modelVersion>4.0.0</modelVersion>

   <groupId>manager</groupId>

   <artifactId>manager</artifactId>

   <packaging>war</packaging>

   <version>0.0.1-SNAPSHOT</version>

   <name>manager Maven Webapp</name>

   <url>http://maven.apache.org</url>

 

   <properties>

      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

      <spring.version>4.3.12.RELEASE</spring.version>

      <servlet.version>3.1.0</servlet.version>

      <!-- jsp版本号 -->

      <jsp.version>2.3.1</jsp.version>

      <!-- jstl版本号 -->

      <jstl.version>1.2</jstl.version>

      <!-- 单元测试 -->

      <junit.version>4.9</junit.version>

      <!-- mybatis版本号 -->

      <mybatis.version>3.4.5</mybatis.version>

      <!-- mybatis-spring版本号 -->

      <mybatis-spring.version>1.3.1</mybatis-spring.version>

      <!-- mysql版本号 -->

      <mysql.version>5.1.36</mysql.version>

      <!-- druid版本 -->

      <druid.version>1.0.31</druid.version>

      <!-- aspectj -->

      <org.aspectj.version>1.8.11</org.aspectj.version>

      <!-- 主要依赖库的版本定义 -->

      <slf4j.version>1.7.2</slf4j.version>

      <log4j.version>1.2.17</log4j.version>

   </properties>

 

   <dependencies>

      <dependency>

        <groupId>junit</groupId>

        <artifactId>junit</artifactId>

        <version>${junit.version}</version>

        <scope>test</scope>

      </dependency>

 

      <!-- 添加Servlet支持 -->

      <dependency>

        <groupId>javax.servlet</groupId>

        <artifactId>javax.servlet-api</artifactId>

        <version>${servlet.version}</version>

      </dependency>

 

      <dependency>

        <groupId>javax.servlet.jsp</groupId>

        <artifactId>javax.servlet.jsp-api</artifactId>

        <version>${jsp.version}</version>

      </dependency>

 

      <!-- 添加jtl支持 -->

      <dependency>

        <groupId>javax.servlet</groupId>

        <artifactId>jstl</artifactId>

        <version>${jstl.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-core</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-context</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-context-support -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-context-support</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-beans -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-beans</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-web -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-web</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-webmvc</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-jdbc</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-tx -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-tx</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.springframework/spring-aop -->

      <dependency>

        <groupId>org.springframework</groupId>

        <artifactId>spring-aop</artifactId>

        <version>${spring.version}</version>

      </dependency>

 

      <!-- jackson -->

      <dependency>

        <groupId>org.codehaus.jackson</groupId>

        <artifactId>jackson-core-asl</artifactId>

        <version>1.9.13</version>

      </dependency>

      <dependency>

        <groupId>org.codehaus.jackson</groupId>

        <artifactId>jackson-mapper-asl</artifactId>

        <version>1.9.13</version>

      </dependency>

 

      <dependency>

        <groupId>commons-io</groupId>

        <artifactId>commons-io</artifactId>

        <version>2.4</version>

      </dependency>

      <dependency>

        <groupId>commons-codec</groupId>

        <artifactId>commons-codec</artifactId>

        <version>1.9</version>

      </dependency>

 

      <dependency>

        <groupId>org.apache.commons</groupId>

        <artifactId>commons-lang3</artifactId>

        <version>3.3.2</version>

      </dependency>

 

      <!--jackson相关依赖 -->

      <dependency>

        <groupId>com.fasterxml.jackson.core</groupId>

        <artifactId>jackson-databind</artifactId>

        <version>2.5.4</version>

      </dependency>

 

      <!-- 上传组件包 -->

      <dependency>

        <groupId>commons-fileupload</groupId>

        <artifactId>commons-fileupload</artifactId>

        <version>1.3.1</version>

      </dependency>

      <dependency>

        <groupId>commons-io</groupId>

        <artifactId>commons-io</artifactId>

        <version>2.4</version>

      </dependency>

      <dependency>

        <groupId>commons-codec</groupId>

        <artifactId>commons-codec</artifactId>

        <version>1.9</version>

      </dependency>

 

      <!-- druid -->

      <dependency>

        <groupId>com.alibaba</groupId>

        <artifactId>druid</artifactId>

        <version>${druid.version}</version>

      </dependency>

 

      <!-- mybatis支持 -->

      <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis -->

      <dependency>

        <groupId>org.mybatis</groupId>

        <artifactId>mybatis</artifactId>

        <version>${mybatis.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->

      <dependency>

        <groupId>org.mybatis</groupId>

        <artifactId>mybatis-spring</artifactId>

        <version>${mybatis-spring.version}</version>

      </dependency>

 

      <!-- mysql链接 -->

      <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->

      <dependency>

        <groupId>mysql</groupId>

        <artifactId>mysql-connector-java</artifactId>

        <version>${mysql.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjrt -->

      <dependency>

        <groupId>org.aspectj</groupId>

        <artifactId>aspectjrt</artifactId>

        <version>${org.aspectj.version}</version>

      </dependency>

 

      <!-- https://mvnrepository.com/artifact/org.aspectj/aspectjweaver -->

      <dependency>

        <groupId>org.aspectj</groupId>

        <artifactId>aspectjweaver</artifactId>

        <version>${org.aspectj.version}</version>

      </dependency>

 

      <!-- log4j -->

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-api</artifactId>

        <version>${slf4j.version}</version>

      </dependency>

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>slf4j-log4j12</artifactId>

        <version>${slf4j.version}</version>

        <scope>runtime</scope>

      </dependency>

 

      <!-- common-logging 实际调用slf4j -->

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>jcl-over-slf4j</artifactId>

        <version>${slf4j.version}</version>

        <scope>runtime</scope>

      </dependency>

      <!-- java.util.logging 实际调用slf4j -->

      <dependency>

        <groupId>org.slf4j</groupId>

        <artifactId>jul-to-slf4j</artifactId>

        <version>${slf4j.version}</version>

        <scope>runtime</scope>

      </dependency>

      <dependency>

        <groupId>log4j</groupId>

        <artifactId>log4j</artifactId>

        <version>${log4j.version}</version>

      </dependency>

      <dependency>

        <groupId>org.lazyluke</groupId>

        <artifactId>log4jdbc-remix</artifactId>

        <version>0.2.7</version>

        <scope>runtime</scope>

      </dependency>

 

   </dependencies>

   <build>

      <finalName>manager</finalName>

   </build>

</project>

评论 评论