269 lines
7.2 KiB
XML
269 lines
7.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>org.springside</groupId>
|
|
<artifactId>springside-parent</artifactId>
|
|
<version>4.0.0.RC1-SNAPSHOT</version>
|
|
<relativePath>../../modules/parent</relativePath>
|
|
</parent>
|
|
<groupId>org.springside.examples</groupId>
|
|
<artifactId>mini-service</artifactId>
|
|
<packaging>war</packaging>
|
|
<name>Springside :: Example :: Mini-Service</name>
|
|
|
|
<!-- 项目属性 -->
|
|
<properties>
|
|
<jdbc.driver.groupId>com.h2database</jdbc.driver.groupId>
|
|
<jdbc.driver.artifactId>h2</jdbc.driver.artifactId>
|
|
<jdbc.driver.version>${h2.version}</jdbc.driver.version>
|
|
</properties>
|
|
|
|
<!-- 依赖项定义 -->
|
|
<dependencies>
|
|
<!-- SPRINGSIDE -->
|
|
<dependency>
|
|
<groupId>org.springside</groupId>
|
|
<artifactId>springside-core</artifactId>
|
|
</dependency>
|
|
|
|
<!-- SPRING begin -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aop</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib-nodep</artifactId>
|
|
</dependency>
|
|
<!-- SPRING end -->
|
|
|
|
<!-- PERSISTENCE begin -->
|
|
<!-- mybatis -->
|
|
<dependency>
|
|
<groupId>org.mybatis</groupId>
|
|
<artifactId>mybatis</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mybatis</groupId>
|
|
<artifactId>mybatis-spring</artifactId>
|
|
</dependency>
|
|
|
|
<!-- spring jdbc -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
</dependency>
|
|
|
|
<!-- dbcp -->
|
|
<dependency>
|
|
<groupId>commons-dbcp</groupId>
|
|
<artifactId>commons-dbcp</artifactId>
|
|
</dependency>
|
|
|
|
<!-- jdbc driver -->
|
|
<dependency>
|
|
<groupId>${jdbc.driver.groupId}</groupId>
|
|
<artifactId>${jdbc.driver.artifactId}</artifactId>
|
|
<version>${jdbc.driver.version}</version>
|
|
<scope>runtime</scope>
|
|
</dependency>
|
|
<!-- PERSISTENCE end -->
|
|
|
|
<!-- SOAP begin -->
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-frontend-jaxws</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-rt-transports-http</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.activation</groupId>
|
|
<artifactId>activation</artifactId>
|
|
</dependency>
|
|
<!-- SOAP end -->
|
|
|
|
<!-- REST begin -->
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-server</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-servlet</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sun.jersey.contribs</groupId>
|
|
<artifactId>jersey-spring</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-json</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.sun.jersey</groupId>
|
|
<artifactId>jersey-client</artifactId>
|
|
</dependency>
|
|
<!-- REST end -->
|
|
|
|
<!-- VALIDATOR -->
|
|
<dependency>
|
|
<groupId>org.hibernate</groupId>
|
|
<artifactId>hibernate-validator</artifactId>
|
|
</dependency>
|
|
|
|
<!-- LOGGING begin -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sf.log4jdbc</groupId>
|
|
<artifactId>log4jdbc3</artifactId>
|
|
</dependency>
|
|
<!-- LOGGING end -->
|
|
|
|
<!-- GENERAL UTILS begin -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.google.guava</groupId>
|
|
<artifactId>guava</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.sf.dozer</groupId>
|
|
<artifactId>dozer</artifactId>
|
|
</dependency>
|
|
<!-- GENERAL UTILS end -->
|
|
|
|
<!-- TEST begin -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.h2database</groupId>
|
|
<artifactId>h2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.dbunit</groupId>
|
|
<artifactId>dbunit</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.eclipse.jetty.aggregate</groupId>
|
|
<artifactId>jetty-webapp</artifactId>
|
|
</dependency>
|
|
<!-- TEST end -->
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- junit插件設置內存 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<argLine>-Xmx256M</argLine>
|
|
</configuration>
|
|
</plugin>
|
|
<!-- 运行integration-test的插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
</plugin>
|
|
<!-- cobertura插件, 设置不需要计算覆盖率的类 -->
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>cobertura-maven-plugin</artifactId>
|
|
<configuration>
|
|
<instrumentation>
|
|
<excludes>
|
|
<exclude>**/entity/**/*.class</exclude>
|
|
<exclude>**/dto/**/*.class</exclude>
|
|
</excludes>
|
|
</instrumentation>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- eclipse插件, 设定wtp版本并添加springIDE nature -->
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-eclipse-plugin</artifactId>
|
|
<configuration>
|
|
<wtpversion>2.0</wtpversion>
|
|
<additionalProjectnatures>
|
|
<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
|
|
</additionalProjectnatures>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- jetty插件, 设定端口与context path -->
|
|
<plugin>
|
|
<groupId>org.mortbay.jetty</groupId>
|
|
<artifactId>jetty-maven-plugin</artifactId>
|
|
<configuration>
|
|
<webAppConfig>
|
|
<contextPath>/${project.artifactId}</contextPath>
|
|
</webAppConfig>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- cxf wsdl2java 插件 -->
|
|
<plugin>
|
|
<groupId>org.apache.cxf</groupId>
|
|
<artifactId>cxf-codegen-plugin</artifactId>
|
|
<version>${cxf.version}</version>
|
|
<configuration>
|
|
<sourceRoot>${basedir}/target/generated-sources/cxf</sourceRoot>
|
|
<wsdlOptions>
|
|
<wsdlOption>
|
|
<wsdl>${basedir}/src/main/webapp/wsdl/mini-service.wsdl</wsdl>
|
|
</wsdlOption>
|
|
</wsdlOptions>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<!-- mybatis 代码生成插件 -->
|
|
<plugin>
|
|
<groupId>org.mybatis.generator</groupId>
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
<version>1.3.1</version>
|
|
<configuration>
|
|
<overwrite>true</overwrite>
|
|
<configurationFile>${project.basedir}/bin/mybatis/generatorConfig.xml</configurationFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|