282 lines
8.1 KiB
XML
282 lines
8.1 KiB
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/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>net.aimeizi</groupId>
|
|
<artifactId>maven-framework-project</artifactId>
|
|
<version>1.0.0</version>
|
|
</parent>
|
|
<artifactId>spring-mongodb-tutorial</artifactId>
|
|
<packaging>war</packaging>
|
|
|
|
<properties>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<spring.core.version>3.1.0.RELEASE</spring.core.version>
|
|
<spring.data.mongodb.version>1.0.0.RELEASE</spring.data.mongodb.version>
|
|
|
|
<cglib.version>2.2</cglib.version>
|
|
<aspectj.version>1.6.10</aspectj.version>
|
|
|
|
<mongodb.driver.version>2.7.2</mongodb.driver.version>
|
|
<slf4j.version>1.6.1</slf4j.version>
|
|
<log4j.version>1.2.14</log4j.version>
|
|
|
|
<javax.servlet-api.version>2.5</javax.servlet-api.version>
|
|
<javax.jstl-taglibs.version>1.1.2</javax.jstl-taglibs.version>
|
|
<jackson.version>1.9.3</jackson.version>
|
|
|
|
<!-- Testing -->
|
|
<mockito.version>1.8.5</mockito.version>
|
|
<junit.version>4.8.2</junit.version>
|
|
|
|
<!-- Plugins -->
|
|
<maven.copy.plugin.version>0.2.3</maven.copy.plugin.version>
|
|
<maven.compiler.plugin.version>2.3.2</maven.compiler.plugin.version>
|
|
<maven.apt.plugin.version>1.0</maven.apt.plugin.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- Spring Core -->
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-core</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-web</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-tx</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-webmvc</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-jdbc</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-oxm</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-aspects</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- A seamless aspect-oriented extension to the Java programming language -->
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjrt</artifactId>
|
|
<version>${aspectj.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.aspectj</groupId>
|
|
<artifactId>aspectjweaver</artifactId>
|
|
<version>${aspectj.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Cglib is a powerful, high performance and quality Code Generation
|
|
Library, It is used to extend JAVA classes and implements interfaces at runtime. -->
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib-nodep</artifactId>
|
|
<version>${cglib.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- The JavaServer Pages Standard Tag Library (JSTL) encapsulates, as
|
|
simple tags, core functionality common to many JSP applications. -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>jstl</artifactId>
|
|
<version>${javax.jstl-taglibs.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>taglibs</groupId>
|
|
<artifactId>standard</artifactId>
|
|
<version>${javax.jstl-taglibs.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Logger -->
|
|
<dependency>
|
|
<groupId>log4j</groupId>
|
|
<artifactId>log4j</artifactId>
|
|
<version>${log4j.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- The Simple Logging Facade for Java or (SLF4J) serves as a simple facade
|
|
or abstraction for various logging frameworks, e.g. java.util.logging, log4j
|
|
and logback, allowing the end user to plug in the desired logging framework
|
|
at deployment time. -->
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-api</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>slf4j-log4j12</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.slf4j</groupId>
|
|
<artifactId>jcl-over-slf4j</artifactId>
|
|
<version>${slf4j.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- Javax Servlet. This needs to be included for runtime only! -->
|
|
<dependency>
|
|
<groupId>javax.servlet</groupId>
|
|
<artifactId>servlet-api</artifactId>
|
|
<version>${javax.servlet-api.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- Data Mapper package is a high-performance data binding package built
|
|
on Jackson JSON processor -->
|
|
<dependency>
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
<artifactId>jackson-mapper-asl</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- Jackson is a high-performance JSON processor (parser, generator) -->
|
|
<dependency>
|
|
<groupId>org.codehaus.jackson</groupId>
|
|
<artifactId>jackson-core-asl</artifactId>
|
|
<version>${jackson.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- Spring Data MongoDB -->
|
|
<dependency>
|
|
<groupId>org.springframework.data</groupId>
|
|
<artifactId>spring-data-mongodb</artifactId>
|
|
<version>${spring.data.mongodb.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- MongoDB Java Driver -->
|
|
<dependency>
|
|
<groupId>org.mongodb</groupId>
|
|
<artifactId>mongo-java-driver</artifactId>
|
|
<version>${mongodb.driver.version}</version>
|
|
<type>jar</type>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- Testing dependencies -->
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>${junit.version}</version>
|
|
<type>jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-all</artifactId>
|
|
<version>${mockito.version}</version>
|
|
<type>jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.springframework</groupId>
|
|
<artifactId>spring-test</artifactId>
|
|
<version>${spring.core.version}</version>
|
|
<type>jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<finalName>spring-mongodb-tutorial</finalName>
|
|
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<version>${maven.compiler.plugin.version}</version>
|
|
<configuration>
|
|
<source>1.6</source>
|
|
<target>1.6</target>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
|
|
</build>
|
|
|
|
<repositories>
|
|
|
|
<!-- For main Spring releases -->
|
|
<repository>
|
|
<id>org.springframework.maven.release</id>
|
|
<name>Spring Maven Release Repository</name>
|
|
<url>http://maven.springframework.org/release</url>
|
|
<releases>
|
|
<enabled>true</enabled>
|
|
</releases>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<!-- For developing against latest Spring milestones -->
|
|
<repository>
|
|
<id>org.springframework.maven.milestone</id>
|
|
<name>Spring Maven Milestone Repository</name>
|
|
<url>http://maven.springframework.org/milestone</url>
|
|
<snapshots>
|
|
<enabled>false</enabled>
|
|
</snapshots>
|
|
</repository>
|
|
|
|
<repository>
|
|
<id>jboss</id>
|
|
<name>JBoss repository</name>
|
|
<url>https://repository.jboss.org/nexus/content/repositories/releases</url>
|
|
</repository>
|
|
|
|
</repositories>
|
|
</project>
|
|
|