< 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.hlliu</ groupId > |
< artifactId >testmaven</ artifactId > |
< packaging >war</ packaging > |
< version >0.0.1-SNAPSHOT</ version > |
< name >testmaven Maven Webapp</ name > |
< url >http://maven.apache.org</ url > |
< properties > |
< spring.version >4.1.3.RELEASE</ spring.version > |
< pagehelper.version >5.1.2-beta</ pagehelper.version > |
< mysql.version >5.1.6</ mysql.version > |
< mybatis.spring.version >1.2.3</ mybatis.spring.version > |
< mybatis.version >3.1.1</ mybatis.version > |
< junit.version >4.12</ junit.version > |
< jstl.version >1.2</ jstl.version > |
< jsqlparser.version >1.0</ jsqlparser.version > |
< jackson.version >1.2.7</ jackson.version > |
< servlet-api.version >3.1.0</ servlet-api.version > |
< druid.version >1.0.18</ druid.version > |
< log4j.version >1.2.16</ log4j.version > |
< commons-logging.version >1.2</ commons-logging.version > |
< commons-fileupload.version >1.2.1</ commons-fileupload.version > |
< commons-io.version >1.3.2</ commons-io.version > |
< commons-lang.version >2.6</ commons-lang.version > |
< aopalliance.version >1.0</ aopalliance.version > |
< mybatis-generator.version >1.3.5</ mybatis-generator.version > |
</ properties > |
< dependencies > |
< dependency > |
< groupId >junit</ groupId > |
< artifactId >junit</ artifactId > |
< version >${junit.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.mybatis</ groupId > |
< artifactId >mybatis</ artifactId > |
< version >${mybatis.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.mybatis</ groupId > |
< artifactId >mybatis-spring</ artifactId > |
< version >${mybatis.spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >mysql</ groupId > |
< artifactId >mysql-connector-java</ artifactId > |
< version >${mysql.version}</ version > |
</ dependency > |
< dependency > |
< groupId >com.alibaba</ groupId > |
< artifactId >druid</ artifactId > |
< version >${druid.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-context</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-test</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-beans</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-webmvc</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-jdbc</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.springframework</ groupId > |
< artifactId >spring-aspects</ artifactId > |
< version >${spring.version}</ version > |
</ dependency > |
<!-- JSP相关 --> |
< dependency > |
< groupId >jstl</ groupId > |
< artifactId >jstl</ artifactId > |
< version >${jstl.version}</ version > |
</ dependency > |
< dependency > |
< groupId >javax.servlet</ groupId > |
< artifactId >javax.servlet-api</ artifactId > |
< version >${servlet-api.version}</ version > |
< scope >provided</ scope > |
</ dependency > |
<!-- pageHelper --> |
< dependency > |
< groupId >com.github.pagehelper</ groupId > |
< artifactId >pagehelper</ artifactId > |
< version >${pagehelper.version}</ version > |
</ dependency > |
<!--jsqlparser --> |
< dependency > |
< groupId >com.github.jsqlparser</ groupId > |
< artifactId >jsqlparser</ artifactId > |
< version >${jsqlparser.version}</ version > |
</ dependency > |
< dependency > |
< groupId >log4j</ groupId > |
< artifactId >log4j</ artifactId > |
< version >${log4j.version}</ version > |
</ dependency > |
< dependency > |
< groupId >commons-logging</ groupId > |
< artifactId >commons-logging</ artifactId > |
< version >${commons-logging.version}</ version > |
</ dependency > |
< dependency > |
< groupId >commons-fileupload</ groupId > |
< artifactId >commons-fileupload</ artifactId > |
< version >${commons-fileupload.version}</ version > |
</ dependency > |
< dependency > |
< groupId >commons-io</ groupId > |
< artifactId >commons-io</ artifactId > |
< version >${commons-io.version}</ version > |
</ dependency > |
< dependency > |
< groupId >commons-lang</ groupId > |
< artifactId >commons-lang</ artifactId > |
< version >${commons-lang.version}</ version > |
</ dependency > |
< dependency > |
< groupId >aopalliance</ groupId > |
< artifactId >aopalliance</ artifactId > |
< version >${aopalliance.version}</ version > |
</ dependency > |
< dependency > |
< groupId >org.mybatis.generator</ groupId > |
< artifactId >mybatis-generator-core</ artifactId > |
< version >${mybatis-generator.version}</ version > |
</ dependency > |
</ dependencies > |
< build > |
< finalName >testmaven</ finalName > |
< plugins > |
< plugin > |
< groupId >org.apache.maven.plugins</ groupId > |
< artifactId >maven-compiler-plugin</ artifactId > |
< version >2.3.2</ version > |
< configuration > |
< source >1.7</ source > |
< target >1.7</ target > |
</ configuration > |
</ plugin > |
< plugin > |
< groupId >org.apache.maven.plugins</ groupId > |
< artifactId >maven-assembly-plugin</ artifactId > |
< version >2.4</ version > |
< configuration > |
< descriptors > |
< descriptor >assembly.xml</ descriptor > |
</ descriptors > |
< archive > |
< manifest > |
< mainClass >com.cxz.redis.IntoRedis</ mainClass > |
</ manifest > |
</ archive > |
</ configuration > |
< executions > |
< execution > |
< id >make-assembly</ id > |
< phase >package</ phase > |
< goals > |
< goal >single</ goal > |
</ goals > |
</ execution > |
</ executions > |
</ plugin > |
<!-- 资源文件拷贝插件 --> |
< plugin > |
< groupId >org.apache.maven.plugins</ groupId > |
< artifactId >maven-resources-plugin</ artifactId > |
< version >2.7</ version > |
< configuration > |
< encoding >UTF-8</ encoding > |
</ configuration > |
</ plugin > |
<!-- java编译插件 --> |
< plugin > |
< groupId >org.apache.maven.plugins</ groupId > |
< artifactId >maven-compiler-plugin</ artifactId > |
< version >3.2</ version > |
< configuration > |
< source >1.8</ source > |
< target >1.8</ target > |
< encoding >UTF-8</ encoding > |
</ configuration > |
</ plugin > |
</ plugins > |
< resources > |
< resource > |
< directory >src/main/resources</ directory > |
< includes > |
< include >**/*.properties</ include > |
< include >**/*.xml</ include > |
< include >**/*.tld</ include > |
</ includes > |
< filtering >false</ filtering > |
</ resource > |
< resource > |
< directory >src/main/java</ directory > |
< includes > |
< include >**/*.properties</ include > |
< include >**/*.xml</ include > |
</ includes > |
< filtering >false</ filtering > |
</ resource > |
</ resources > |
</ build > |
</ project > |