Maven管理SSM框架的pom.xml文件配置(自动下载所依赖的jar包)

<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.0modelVersion>
  <groupId>com.zkinggroupId>
  <artifactId>Delicious_PastaartifactId>
  <packaging>warpackaging>
  <version>0.0.1-SNAPSHOTversion>
  <name>Delicious_Pasta Maven Webappname>
  <url>http://maven.apache.orgurl>
  <dependencies>
    <dependency>
      <groupId>junitgroupId>
      <artifactId>junitartifactId>
      <version>4.8.1version>
      <scope>testscope>
    dependency>

    <properties>  
          
        <spring.version>4.0.2.RELEASEspring.version>  
          
        <mybatis.version>3.2.6mybatis.version>  
          
        <slf4j.version>1.7.7slf4j.version>  
        <log4j.version>1.2.17log4j.version>  
    properties> 

       
        <dependency>  
            <groupId>commons-dbcpgroupId>  
            <artifactId>commons-dbcpartifactId>  
            <version>1.2.2version>  
        dependency>  
          
        <dependency>  
            <groupId>javaxgroupId>  
            <artifactId>javaee-apiartifactId>  
            <version>7.0version>  
        dependency>  
          
        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-coreartifactId>  
            <version>${spring.version}version>  
        dependency>  


        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-webartifactId>  
            <version>${spring.version}version>  
        dependency>  
        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-oxmartifactId>  
            <version>${spring.version}version>  
        dependency>  
        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-txartifactId>  
            <version>${spring.version}version>  
        dependency>  


        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-jdbcartifactId>  
            <version>${spring.version}version>  
        dependency>  


        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-webmvcartifactId>  
            <version>${spring.version}version>  
        dependency>  
        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-aopartifactId>  
            <version>${spring.version}version>  
        dependency>  


        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-context-supportartifactId>  
            <version>${spring.version}version>  
        dependency>  


        <dependency>  
            <groupId>org.springframeworkgroupId>  
            <artifactId>spring-testartifactId>  
            <version>${spring.version}version>  
        dependency>  
          
        <dependency>  
            <groupId>org.mybatisgroupId>  
            <artifactId>mybatisartifactId>  
            <version>${mybatis.version}version>  
        dependency>  
          
        <dependency>  
            <groupId>org.mybatisgroupId>  
            <artifactId>mybatis-springartifactId>  
            <version>1.2.2version>  
        dependency>  
        <dependency>  
            <groupId>junitgroupId>  
            <artifactId>junitartifactId>  
            <version>4.11version>  
            <scope>testscope>  
        dependency>  
          
        <dependency>  
            <groupId>org.mybatisgroupId>  
            <artifactId>mybatisartifactId>  
            <version>3.2.6version>  
        dependency>  


          
        <dependency>  
            <groupId>mysqlgroupId>  
            <artifactId>mysql-connector-javaartifactId>  
            <version>5.1.30version>  
        dependency>  
          
        <dependency>  
            <groupId>org.codehaus.jacksongroupId>  
            <artifactId>jackson-core-aslartifactId>  
            <version>1.9.13version>  
        dependency>  
        <dependency>  
            <groupId>org.codehaus.jacksongroupId>  
            <artifactId>jackson-mapper-aslartifactId>  
            <version>1.9.13version>  
        dependency>  

          
        <dependency>  
            <groupId>jstlgroupId>  
            <artifactId>jstlartifactId>  
            <version>1.2version>  
        dependency>  



          
          
        <dependency>  
            <groupId>log4jgroupId>  
            <artifactId>log4jartifactId>  
            <version>${log4j.version}version>  
        dependency>  
        <dependency>  
            <groupId>org.slf4jgroupId>  
            <artifactId>slf4j-apiartifactId>  
            <version>${slf4j.version}version>  
        dependency>  
        <dependency>  
            <groupId>org.slf4jgroupId>  
            <artifactId>slf4j-log4j12artifactId>  
            <version>${slf4j.version}version>  
        dependency>  
           

  dependencies>
  <build>
    <finalName>Delicious_PastafinalName>
  build>
project>

你可能感兴趣的:(JAVA)