Maven 管理SSM框架的pom.xml配置文件

三个框架所使用的版本:


mybatis —- 3.2.5

spring —- 4.3.3.RELEASE

spring mvc —- 4.3.3.RELEASE


其它:


junit —- 4.8.1

MySQL —- 5.1.38

log4j —- 1.2.17

c3p0 —- 0.9.2.1

mybatis-spring —- 1.3.0  

jstl —- 1.2


[html] view plain copy
print ?
  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.0modelVersion>  
  4.   <groupId>com.fendo.ssmgroupId>  
  5.   <artifactId>fendo-SSMartifactId>  
  6.   <packaging>warpackaging>  
  7.   <version>0.0.1-SNAPSHOTversion>  
  8.   <name>fendo-SSM Maven Webappname>  
  9.   <url>http://maven.apache.orgurl>  
  10.     
  11.       
  12.     <properties>  
  13.         <spring.version>4.3.3.RELEASEspring.version>  
  14.     properties>  
  15.     
  16.     
  17.   <dependencies>  
  18.     <dependency>  
  19.       <groupId>junitgroupId>  
  20.       <artifactId>junitartifactId>  
  21.       <version>3.8.1version>  
  22.       <scope>testscope>  
  23.     dependency>  
  24.       
  25.            
  26.           
  27.         <dependency>  
  28.             <groupId>javax.servletgroupId>  
  29.             <artifactId>servlet-apiartifactId>  
  30.             <version>2.3version>  
  31.             <scope>providedscope>  
  32.         dependency>  
  33.           
  34.           
  35.           
  36.         <dependency>  
  37.             <groupId>mysqlgroupId>  
  38.             <artifactId>mysql-connector-javaartifactId>  
  39.             <version>5.1.38version>  
  40.         dependency>  
  41.   
  42.           
  43.           
  44.           
  45.           
  46.           
  47.         <dependency>  
  48.             <groupId>org.mybatisgroupId>  
  49.             <artifactId>mybatisartifactId>  
  50.             <version>3.2.5version>  
  51.         dependency>  
  52.           
  53.   
  54.           
  55.         <dependency>  
  56.             <groupId>log4jgroupId>  
  57.             <artifactId>log4jartifactId>  
  58.             <version>1.2.17version>  
  59.         dependency>  
  60.           
  61.   
  62.              
  63.         <dependency>  
  64.             <groupId>org.springframeworkgroupId>  
  65.             <artifactId>spring-coreartifactId>  
  66.             <version>{spring.version}</version>  
  67.         </dependency>            <dependency>              <groupId>org.springframework</groupId>              <artifactId>spring-web</artifactId>              <version>{spring.version}version>  
  68.         dependency>  
  69.         <dependency>  
  70.             <groupId>org.springframeworkgroupId>  
  71.             <artifactId>spring-oxmartifactId>  
  72.             <version>{spring.version}</version>  
  73.         </dependency>          <dependency>              <groupId>org.springframework</groupId>              <artifactId>spring-tx</artifactId>              <version>{spring.version}version>  
  74.         dependency>  
  75.   
  76.   
  77.         <dependency>  
  78.             <groupId>org.springframeworkgroupId>  
  79.             <artifactId>spring-jdbcartifactId>  
  80.             <version>{spring.version}</version>  
  81.         </dependency>            <dependency>              <groupId>org.springframework</groupId>              <artifactId>spring-webmvc</artifactId>              <version>{spring.version}version>  
  82.         dependency>  
  83.         <dependency>  
  84.             <groupId>org.springframeworkgroupId>  
  85.             <artifactId>spring-aopartifactId>  
  86.             <version>{spring.version}</version>  
  87.         </dependency>            <dependency>              <groupId>org.springframework</groupId>              <artifactId>spring-context-support</artifactId>              <version>{spring.version}version>  
  88.         dependency>  
  89.   
  90.         <dependency>  
  91.             <groupId>org.springframeworkgroupId>  
  92.             <artifactId>spring-testartifactId>  
  93.             <version>${spring.version}version>  
  94.         dependency>  
  95.   
  96.           
  97.   
  98.           
  99.         <dependency>  
  100.             <groupId>com.mchangegroupId>  
  101.             <artifactId>c3p0artifactId>  
  102.             <version>0.9.2.1version>  
  103.         dependency>  
  104.           
  105.   
  106.           
  107.         <dependency>  
  108.             <groupId>org.mybatisgroupId>  
  109.             <artifactId>mybatis-springartifactId>  
  110.             <version>1.3.0version>  
  111.         dependency>  
  112.       
  113.           
  114.         <dependency>  
  115.             <groupId>jstlgroupId>  
  116.             <artifactId>jstlartifactId>  
  117.             <version>1.2version>  
  118.         dependency>  
  119.       
  120.   dependencies>  
  121.   <build>  
  122.     <finalName>fendo-SSMfinalName>  
  123.       
  124.     <plugins>  
  125.         
  126.         <plugin>  
  127.           <groupId>org.apache.tomcat.mavengroupId>  
  128.           <artifactId>tomcat7-maven-pluginartifactId>  
  129.           <version>2.2version>  
  130.                 <configuration>   
  131.                     <url>http://localhost:8080/manager/texturl>  
  132.                     <username>adminusername>    
  133.                     <password>adminpassword>  
  134.                 configuration>   
  135.         plugin>  
  136.     plugins>  
  137.       
  138.   build>  
  139. project>  

  4.0.0
  com.fendo.ssm
  fendo-SSM
  war
  0.0.1-SNAPSHOT
  fendo-SSM Maven Webapp
  http://maven.apache.org

    
    
        4.3.3.RELEASE
    


  
    
      junit
      junit
      3.8.1
      test
    

         
        
        
            javax.servlet
            servlet-api
            2.3
            provided
        


        
        
            mysql
            mysql-connector-java
            5.1.38
        

        



        
        
            org.mybatis
            mybatis
            3.2.5
        
        

        
        
            log4j
            log4j
            1.2.17
        
        

           
        
            org.springframework
            spring-core
            ${spring.version}
        

        
            org.springframework
            spring-web
            ${spring.version}
        
        
            org.springframework
            spring-oxm
            ${spring.version}
        
        
            org.springframework
            spring-tx
            ${spring.version}
        


        
            org.springframework
            spring-jdbc
            ${spring.version}
        

        
            org.springframework
            spring-webmvc
            ${spring.version}
        
        
            org.springframework
            spring-aop
            ${spring.version}
        

        
            org.springframework
            spring-context-support
            ${spring.version}
        

        
            org.springframework
            spring-test
            ${spring.version}
        

        

        
        
            com.mchange
            c3p0
            0.9.2.1
        
        

        
        
            org.mybatis
            mybatis-spring
            1.3.0
        

        
        
            jstl
            jstl
            1.2
        

  
  
    fendo-SSM

    
      
        
          org.apache.tomcat.maven
          tomcat7-maven-plugin
          2.2
                 
                    http://localhost:8080/manager/text
                    admin  
                    admin
                 
        
    

  




你可能感兴趣的:(java)