Last active
March 24, 2017 15:33
-
-
Save SakaDream/de18d8d147c8f7e7f573110077a0edec to your computer and use it in GitHub Desktop.
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
<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.sakadream.test</groupId> <!--Thay bằng package name của bạn--> | |
<artifactId>Java-In-Heroku</artifactId> <!--Thay bằng app name của bạn--> | |
<packaging>war</packaging> | |
<version>1.0-SNAPSHOT</version> | |
<name>Java-In-Heroku Maven Webapp</name> <!--Thông tin về ứng dụng--> | |
<url>http://maven.apache.org</url> | |
<!--Cấu hình JDK và thư viện--> | |
<properties> | |
<jdk.version>1.7</jdk.version> | |
<spring.version>4.3.7.RELEASE</spring.version> | |
<jstl.version>1.2</jstl.version> | |
<junit.version>3.8.1</junit.version> | |
<logback.version>1.0.13</logback.version> | |
<jcl-over-slf4j.version>1.7.5</jcl-over-slf4j.version> | |
</properties> | |
<!--Cấu hình jitback.io--> | |
<repositories> | |
<repository> | |
<id>jitpack.io</id> | |
<url>https://jitpack.io</url> | |
</repository> | |
</repositories> | |
<!--Thêm thư viện--> | |
<dependencies> | |
<!--JUnit--> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${junit.version}</version> | |
<scope>test</scope> | |
</dependency> | |
<!--Spring Framework--> | |
<!--Core--> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>${spring.version}</version> | |
<exclusions> | |
<exclusion> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<!--Web--> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-web</artifactId> | |
<version>${spring.version}</version> | |
</dependency> | |
<!--WebMVC--> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-webmvc</artifactId> | |
<version>${spring.version}</version> | |
</dependency> | |
<!--/Spring Framework--> | |
<!--Logback--> | |
<dependency> | |
<groupId>ch.qos.logback</groupId> | |
<artifactId>logback-classic</artifactId> | |
<version>${logback.version}</version> | |
</dependency> | |
<!--Commons-logging--> | |
<dependency> | |
<groupId>commons-logging</groupId> | |
<artifactId>commons-logging</artifactId> | |
<version>1.2</version> | |
</dependency> | |
</dependencies> | |
<!--Cấu hình build ứng dụng--> | |
<build> | |
<finalName>Java-In-Heroku</finalName> | |
<plugins> | |
<!--Set JDK Complier Level--> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>${jdk.version}</source> | |
<target>${jdk.version}</target> | |
</configuration> | |
</plugin> | |
<!--For Maven Tomcat Plugin--> | |
<plugin> | |
<groupId>org.apache.tomcat.maven</groupId> | |
<artifactId>tomcat7-maven-plugin</artifactId> | |
<version>2.2</version> | |
<configuration> | |
<path>/Java-In-Heroku</path> | |
</configuration> | |
</plugin> | |
<plugin> | |
<!--Webapp Runner--> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<version>2.3</version> | |
<executions> | |
<execution> | |
<phase>package</phase> | |
<goals><goal>copy</goal></goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>com.github.jsimone</groupId> | |
<artifactId>webapp-runner</artifactId> | |
<version>8.5.11.2</version> | |
<destFileName>webapp-runner.jar</destFileName> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment