Spring MVC +Mybatis + Maven 配置之pom.xml配置


pom.xml配置


<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>com.ps007</groupId>
  <artifactId>monitor</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>monitor Maven Webapp</name>
  <url>http://maven.apache.org</url>

  <properties>
        <java-version>1.7</java-version>
        <org.springframework-version>4.2.1.RELEASE</org.springframework-version>
        <org.slf4j-version>1.7.12</org.slf4j-version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>
    <!-- asm -->
	<dependency>
	  <groupId>org.ow2.asm</groupId>
	  <artifactId>asm</artifactId>
	  <version>5.0.3</version>
	</dependency> 
	  
    <!-- cglib -->
	<dependency>
	  <groupId>cglib</groupId>
	  <artifactId>cglib</artifactId>
	  <version>3.1</version>
	</dependency> 
	    
    <!-- commons-beanutils -->
	<dependency>
	  <groupId>commons-beanutils</groupId>
	  <artifactId>commons-beanutils</artifactId>
	  <version>1.9.2</version>
	</dependency>   
	    
    <!-- commons-codec -->
	<dependency>
	  <groupId>commons-codec</groupId>
	  <artifactId>commons-codec</artifactId>
	  <version>1.9</version>
	</dependency>   
	
    <!-- commons-collections4 -->
	<dependency>
	  <groupId>org.apache.commons</groupId>
	  <artifactId>commons-collections4</artifactId>
	  <version>4.0</version>
	</dependency>  	
    
    <!-- commons-fileupload -->
	<dependency>
	  <groupId>commons-fileupload</groupId>
	  <artifactId>commons-fileupload</artifactId>
	  <version>1.3.1</version>
	</dependency>
	
    <!-- commons-lang -->
    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.6</version>
    </dependency>
    
    <!-- commons-logging -->
    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.2</version>
    </dependency>
            
    <!-- common-pool -->
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-pool2</artifactId>
      <version>2.4.2</version>
    </dependency>
    
    <!-- dwr -->
    <dependency>
      <groupId>org.directwebremoting</groupId>
      <artifactId>dwr</artifactId>
      <version>3.0.0-RELEASE</version>
    </dependency>    
    
    <!-- ehcache-core -->
    <dependency>
      <groupId>net.sf.ehcache.internal</groupId>
      <artifactId>ehcache-core</artifactId>
      <version>2.10.1</version>
    </dependency> 
        
    <!-- ezmorph -->
    <dependency>
      <groupId>net.sf.ezmorph</groupId>
      <artifactId>ezmorph</artifactId>
      <version>1.0.6</version>
    </dependency> 
        
    <!-- fluent-hc -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>fluent-hc</artifactId>
      <version>4.5.1</version>
    </dependency>     
    
    <!-- httpclient -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient</artifactId>
      <version>4.5.1</version>
    </dependency>    
    
    <!-- httpclient-cache -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient-cache</artifactId>
      <version>4.5.1</version>
    </dependency>      
    
    <!-- httpclient-win -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpclient-win</artifactId>
      <version>4.5.1</version>
    </dependency>      
           
    <!-- httpmime -->
    <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpmime</artifactId>
      <version>4.5.1</version>
    </dependency>        
    
	<!-- imgscalr-lib -->
	<dependency>
	  <groupId>org.imgscalr</groupId>
	  <artifactId>imgscalr-lib</artifactId>
	  <version>4.2</version>
	</dependency>
    
    <!-- javassist -->
	<dependency>
	  <groupId>org.javassist</groupId>
	  <artifactId>javassist</artifactId>
	  <version>3.20.0-GA</version>
	</dependency>  
	    
    <!-- jackson-core -->
	<dependency>
	  <groupId>com.fasterxml.jackson.core</groupId>
	  <artifactId>jackson-core</artifactId>
	  <version>2.6.3</version>
	</dependency>  
	
	<!-- jackson-databind -->
	<dependency>
	  <groupId>com.fasterxml.jackson.core</groupId>
	  <artifactId>jackson-databind</artifactId>
	  <version>2.6.3</version>
	</dependency> 	 
	
	<!-- jcl-over-slf4j -->
	<dependency>
	  <groupId>org.slf4j</groupId>
	  <artifactId>jcl-over-slf4j</artifactId>
	  <version>${org.slf4j-version}</version>
	</dependency>  	
	
    <!-- jedis -->
	<dependency>
	  <groupId>redis.clients</groupId>
	  <artifactId>jedis</artifactId>
	  <version>2.7.3</version>
	</dependency>  	
	
    <!-- json-lib -->
 	<dependency>
	  <groupId>net.sf.json-lib</groupId>
	  <artifactId>json-lib</artifactId>
	  <version>2.4</version>
	  <type>pom</type>
	</dependency>
	
    <!-- jna -->
	<dependency>
	  <groupId>net.java.dev.jna</groupId>
	  <artifactId>jna</artifactId>
	  <version>4.2.1</version>
	</dependency>  	
		
    <!-- jna-platform -->
	<dependency>
	  <groupId>net.java.dev.jna</groupId>
	  <artifactId>jna-platform</artifactId>
	  <version>4.2.1</version>
	</dependency>  	
		
    <!-- jstl -->
	<dependency>
	  <groupId>jstl</groupId>
	  <artifactId>jstl</artifactId>
	  <version>1.2</version>
	</dependency>  	
	
    <!-- jul-to-slf4j -->
	<dependency>
	  <groupId>org.slf4j</groupId>
	  <artifactId>jul-to-slf4j</artifactId>
	  <version>${org.slf4j-version}</version>
	</dependency>	
	
    <!-- junit -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.12</version>
      <scope>test</scope>
    </dependency>
    	
	<!-- kaptcha -->
	<dependency>
	  <groupId>com.google</groupId>
	  <artifactId>kaptcha</artifactId>
	  <version>2.3.2</version>
	</dependency>	
	
	<!-- kryo -->
	<dependency>
		<groupId>com.esotericsoftware</groupId>
		<artifactId>kryo</artifactId>
		<version>3.0.3</version>
	</dependency>
	
	<!-- log4j -->
	<dependency>
	  <groupId>org.apache.logging.log4j</groupId>
	  <artifactId>log4j</artifactId>
	  <version>2.4.1</version>
	  <type>pom</type>
	</dependency>

	<dependency>
	    <groupId>log4j</groupId>
	    <artifactId>log4j</artifactId>        
	    <version>1.2.17</version>
	</dependency>
	
    <!-- mybatis -->
    <dependency>
	  <groupId>com.whalin</groupId>
	  <artifactId>Memcached-Java-Client</artifactId>
	  <version>3.0.2</version>
    </dependency>		
	
    <!-- mybatis -->
    <dependency>
	  <groupId>org.mybatis</groupId>
	  <artifactId>mybatis</artifactId>
	  <version>3.3.0</version>
    </dependency>
   
    <!-- mybatis-spring -->
   	<dependency>
		<groupId>org.mybatis</groupId>
		<artifactId>mybatis-spring</artifactId>
		<version>1.2.3</version>
	</dependency>	
	
    <!-- ojdbc6 -->
   	<dependency>
		<groupId>ojdbc6</groupId>
		<artifactId>ojdbc6</artifactId>
		<version>1.0</version>
	</dependency>		
	
	<!-- quartz -->
	<dependency>
    	<groupId>org.quartz-scheduler</groupId>
    	<artifactId>quartz</artifactId>
    	<version>2.2.2</version>
    </dependency>	
	
    <!-- slf4j-api -->
	<dependency>
	  <groupId>org.slf4j</groupId>
	  <artifactId>slf4j-api</artifactId>
	  <version>${org.slf4j-version}</version>
	</dependency>	
	
    <!-- slf4j-log4j12 -->
	<dependency>
	  <groupId>org.slf4j</groupId>
	  <artifactId>slf4j-log4j12</artifactId>
	  <version>${org.slf4j-version}</version>
	</dependency>		
    
    <!-- spring 框架 -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context</artifactId>
      <version>${org.springframework-version}</version>
    </dependency>
    
    <!-- spring-webmvc -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
      <version>${org.springframework-version}</version>
    </dependency> 
    
    <!-- spring-webmvc-portlet -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc-portlet</artifactId>
      <version>${org.springframework-version}</version>
    </dependency>
    
    <!-- spring-jdbc -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <version>${org.springframework-version}</version>
    </dependency> 
        
    <!-- spring-tx -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-tx</artifactId>
      <version>${org.springframework-version}</version>
    </dependency>       
    
    <!-- spring-context-support -->
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-context-support</artifactId>
      <version>${org.springframework-version}</version>
    </dependency>
    
    <!-- standard -->
	<dependency>
	  <groupId>taglibs</groupId>
	  <artifactId>standard</artifactId>
	  <version>1.1.2</version>
	</dependency>	
	
    <!-- ueditor -->
    <dependency>
      <groupId>com.baidu</groupId>
      <artifactId>ueditor</artifactId>
      <version>1.0</version>
    </dependency>      
    
	<dependency>
	  <groupId>com.baidu</groupId>
	  <artifactId>ueditor-mini</artifactId>
	  <version>1.0.0</version>
	</dependency>    	
  </dependencies>
  
  <!-- 指定编译的jdk版本 -->
  <build>
    <finalName>monitor</finalName>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>java-version</source>
          <target>java-version</target>
        </configuration>
      </plugin>
    </plugins>    
  </build>
   
  <!-- 构建部署到nexus上 -->
  <distributionManagement>  
    <repository>  
      <id>nexus-releases</id>
      <name>Nexus Release Repository</name>
      <url>http://192.168.1.100:8081/nexus/content/repositories/releases/</url>
    </repository>
    <snapshotRepository>
      <id>nexus-snapshots</id>
      <name>Nexus Snapshot Repository</name>
      <url>http://192.168.1.100:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
  </distributionManagement>
</project>




你可能感兴趣的:(maven,Build,构建,依赖,pom)