Created
June 24, 2014 01:47
-
-
Save luowei/cef9aed362548ce06592 to your computer and use it in GitHub Desktop.
一个简单的pom示例
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> | |
<groupId>pom-demo</groupId> | |
<artifactId>pom-demo</artifactId> | |
<version>1.0</version> | |
<packaging>war</packaging> | |
<properties> | |
<springframework.version>3.2.0.RELEASE</springframework.version> | |
<spring-data-jpa.version>1.1.0.RELEASE</spring-data-jpa.version> | |
<hibernate-jpa>1.0.0.Final</hibernate-jpa> | |
<hibernate.version>4.1.4.Final</hibernate.version> | |
<javassist.version>3.16.1-GA</javassist.version> | |
<cglib.version>2.2.2</cglib.version> | |
<commons-lang.version>3.1</commons-lang.version> | |
<commons-collections.version>3.2.1</commons-collections.version> | |
<commons-fileupload.version>1.2.2</commons-fileupload.version> | |
<commons-io.version>2.3</commons-io.version> | |
<sqljdbc4.version>3.0</sqljdbc4.version> | |
<mysql-connector-java.version>5.1.18</mysql-connector-java.version> | |
<jdkVersion>1.6</jdkVersion> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet.jsp</groupId> | |
<artifactId>jsp-api</artifactId> | |
<version>2.1</version> | |
<scope>provided</scope> | |
</dependency> | |
<!-- JSTL1.2 --> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>jstl</artifactId> | |
<version>1.2</version> | |
</dependency> | |
<!--test--> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.8</version> | |
<scope>test</scope> | |
</dependency> | |
<!--Spring --> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-context</artifactId> | |
<version>${springframework.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-orm</artifactId> | |
<version>${springframework.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-webmvc</artifactId> | |
<version>${springframework.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-aspects</artifactId> | |
<version>${springframework.version}</version> | |
</dependency> | |
<!--spring data jpa--> | |
<!--<dependency>--> | |
<!--<groupId>org.springframework.data</groupId>--> | |
<!--<artifactId>spring-data-jpa</artifactId>--> | |
<!--<version>${spring-data-jpa.version}</version>--> | |
<!--</dependency>--> | |
<!-- cglib --> | |
<dependency> | |
<groupId>cglib</groupId> | |
<artifactId>cglib</artifactId> | |
<version>${cglib.version}</version> | |
</dependency> | |
<!-- javassist --> | |
<dependency> | |
<groupId>org.javassist</groupId> | |
<artifactId>javassist</artifactId> | |
<version>${javassist.version}</version> | |
</dependency> | |
<dependency> | |
<groupId>com.microsoft.sqlserver</groupId> | |
<artifactId>sqljdbc4</artifactId> | |
<version>${sqljdbc4.version}</version> | |
<scope>runtime</scope> | |
</dependency> | |
<!--MySQL JDBC Driver --> | |
<!--<dependency>--> | |
<!--<groupId>mysql</groupId>--> | |
<!--<artifactId>mysql-connector-java</artifactId>--> | |
<!--<version>${mysql-connector-java.version}</version>--> | |
<!--<scope>runtime</scope>--> | |
<!--</dependency>--> | |
<!-- hibernate --> | |
<!--<dependency>--> | |
<!--<groupId>org.hibernate.javax.persistence</groupId>--> | |
<!--<artifactId>hibernate-jpa-2.0-api</artifactId>--> | |
<!--<version>${hibernate-jpa}</version>--> | |
<!--</dependency>--> | |
<!--<dependency>--> | |
<!--<groupId>org.hibernate</groupId>--> | |
<!--<artifactId>hibernate-entitymanager</artifactId>--> | |
<!--<version>${hibernate.version}</version>--> | |
<!--<scope>runtime</scope>--> | |
<!--</dependency>--> | |
<!-- apache openjpa--> | |
<!--<dependency>--> | |
<!--<groupId>org.apache.openjpa</groupId>--> | |
<!--<artifactId>openjpa-all</artifactId>--> | |
<!--<version>2.0.0</version>--> | |
<!--</dependency>--> | |
<!-- jackson --> | |
<dependency> | |
<groupId>org.codehaus.jackson</groupId> | |
<artifactId>jackson-mapper-lgpl</artifactId> | |
<version>1.8.1</version> | |
</dependency> | |
<!-- dataSource use BoneCP --> | |
<dependency> | |
<groupId>com.jolbox</groupId> | |
<artifactId>bonecp</artifactId> | |
<version>0.7.1.RELEASE</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>1.7.2</version> | |
</dependency> | |
<!-- commons-lang3 --> | |
<dependency> | |
<groupId>org.apache.commons</groupId> | |
<artifactId>commons-lang3</artifactId> | |
<version>${commons-lang.version}</version> | |
</dependency> | |
<!-- commons-collections --> | |
<dependency> | |
<groupId>commons-collections</groupId> | |
<artifactId>commons-collections</artifactId> | |
<version>${commons-collections.version}</version> | |
</dependency> | |
<!-- FileUpload --> | |
<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> | |
</dependencies> | |
<build> | |
<finalName>${project.artifactId}</finalName> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
<source>${jdkVersion}</source> | |
<target>${jdkVersion}</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.5</version> | |
<configuration> | |
<encoding>${project.build.sourceEncoding}</encoding> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.12</version> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-archetype-plugin</artifactId> | |
<version>2.2</version> | |
</plugin> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<version>8.1.0.v20120127</version> | |
<configuration> | |
<scanIntervalSeconds>10</scanIntervalSeconds> | |
<webApp> | |
<contextPath>/</contextPath> | |
</webApp> | |
<connectors> | |
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> | |
<port>9091</port> | |
<maxIdleTime>60000</maxIdleTime> | |
</connector> | |
</connectors> | |
</configuration> | |
</plugin> | |
<!--<plugin>--> | |
<!--<groupId>org.apache.tomcat.maven</groupId>--> | |
<!--<artifactId>tomcat7-maven-plugin</artifactId>--> | |
<!--<version>2.0</version>--> | |
<!--</plugin>--> | |
<plugin> | |
<groupId>org.apache.tomcat.maven</groupId> | |
<artifactId>tomcat6-maven-plugin</artifactId> | |
<version>2.0</version> | |
<!--<configuration>--> | |
<!--<warSourceDirectory>WebRoot</warSourceDirectory>--> | |
<!--</configuration>--> | |
</plugin> | |
</plugins> | |
<!-- maven resources filter --> | |
<resources> | |
<resource> | |
<directory>src/main/resources</directory> | |
<filtering>true</filtering> | |
</resource> | |
</resources> | |
</build> | |
<!--<distributionManagement>--> | |
<!--<repository>--> | |
<!--<id>my_app_releases</id>--> | |
<!--<url>http://localhost:8081/nexus/content/repositories/my_app_releases</url>--> | |
<!--</repository>--> | |
<!--<snapshotRepository>--> | |
<!--<id>my_app_snapshots</id>--> | |
<!--<url>http://localhost:8081/nexus/content/repositories/my_app_snapshots</url>--> | |
<!--</snapshotRepository>--> | |
<!--</distributionManagement>--> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment