본문 바로가기

웹 프로그래밍/Spring Framework

Spring Project Defualt POM.XML (Dependency)

<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>

<groupId>WebSockets</groupId>

<artifactId>WebSockets</artifactId>

<version>0.0.1-SNAPSHOT</version>

<packaging>war</packaging>

<properties>

<spring.version>4.1.7.RELEASE</spring.version>

<servlet.version>3.1.0</servlet.version>

<hibernate.version>4.3.0.Final</hibernate.version>

<slf4j.version>1.6.1</slf4j.version>

<jackson.version>2.6.0</jackson.version>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

</properties>



<!-- Repositories -->

<repositories>

<repository>

<id>spring-maven-release</id>

<name>Spring Maven Release Repository</name>

<url>http://maven.springframework.org/release</url>

</repository>

<repository>

<id>spring-maven-milestone</id>

<name>Spring Maven Milestone Repository</name>

<url>http://maven.springframework.org/milestone</url>

</repository>

</repositories>



<!-- Plugin Repositories -->

<pluginRepositories>

<pluginRepository>

<id>spring-maven-release</id>

<name>Spring Maven Release Repository</name>

<url>http://maven.springframework.org/release</url>

</pluginRepository>

<pluginRepository>

<id>spring-maven-milestone</id>

<name>Spring Maven Milestone Repository</name>

<url>http://maven.springframework.org/milestone</url>

</pluginRepository>

</pluginRepositories>


<!-- Dependencies Defined -->

<dependencies>

<!-- SPRING FRAMEWORK -->

<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring-context</artifactId>

<version>${spring.version}</version>

</dependency>

<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring-context-support</artifactId>

<version>${spring.version}</version>

</dependency>

<dependency>

<groupId>org.springframework</groupId>

<artifactId>spring-websocket</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-webmvc</artifactId>

<version>${spring.version}</version>

<exclusions>

<exclusion>

<groupId>commons-logging</groupId>

<artifactId>commons-logging</artifactId>

</exclusion>

</exclusions>

</dependency>


<!-- Jackson Library (ABOUT JSON) -->

<dependency>

<groupId>com.fasterxml.jackson.core</groupId>

<artifactId>jackson-databind</artifactId>

<version>${jackson.version}</version>

</dependency>



<!--Javax -->

<dependency>

<groupId>javax.inject</groupId>

<artifactId>javax.inject</artifactId>

<version>1</version>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>javax.servlet-api</artifactId>

<version>${servlet.version}</version>

</dependency>

<dependency>

<groupId>javax.websocket</groupId>

<artifactId>javax.websocket-api</artifactId>

<version>1.0</version>

</dependency>

</dependencies>

<build>

<plugins>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<version>3.1</version>

<configuration>

<source>1.8</source>

<target>1.8</target>

</configuration>

</plugin>

<plugin>

<artifactId>maven-war-plugin</artifactId>

<version>2.4</version>

<configuration>

<warSourceDirectory>src/main/webapp</warSourceDirectory>

<failOnMissingWebXml>false</failOnMissingWebXml>

</configuration>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-resources-plugin</artifactId>

<version>2.5</version>

<configuration>

<encoding>UTF-8</encoding>

</configuration>

</plugin>

<plugin>

<groupId>org.apache.maven.plugins</groupId>

<artifactId>maven-eclipse-plugin</artifactId>

<version>2.8</version>

<configuration>

<downloadSources>true</downloadSources>

<downloadJavadocs>true</downloadJavadocs>

<wtpversion>2.0</wtpversion>

</configuration>

</plugin>

<plugin>

<groupId>org.eclipse.jetty</groupId>

<artifactId>jetty-maven-plugin</artifactId>

<version>9.0.4.v20130625</version>

<configuration>

<webApp>

<contextPath>/${project.artifactId}</contextPath>

</webApp>

</configuration>

</plugin>

</plugins>

</build>

</project>