Last active
December 21, 2015 16:59
-
-
Save jeremychone/6337612 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>APP_BASE_PACKAGE</groupId> | |
<artifactId>APP_NAME</artifactId> | |
<packaging>war</packaging> | |
<version>0.1</version> | |
<name>APP_NAME</name> | |
<url>http://maven.apache.org</url> | |
<build> | |
<finalName>APP_NAME</finalName> | |
<plugins> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<!-- mvn jetty:* plugin. See http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin --> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>jetty-maven-plugin</artifactId> | |
<!-- Uncomment to enable auto java class reload on java changes | |
<configuration> | |
<scanIntervalSeconds>1</scanIntervalSeconds> | |
</configuration> | |
--> | |
</plugin> | |
<plugin> | |
<artifactId>maven-antrun-plugin</artifactId> | |
<version>1.4</version> | |
<executions> | |
<!-- clean the compile HTML assets --> | |
<execution> | |
<id>delete-html-assets</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<tasks> | |
<delete> | |
<fileset dir="src/main/webapp/css"> | |
<include name="*.css"/> | |
</fileset> | |
</delete> | |
</tasks> | |
</configuration> | |
</execution> | |
<!-- /clean the compile HTML assets --> | |
<!-- jCruncher --> | |
<execution> | |
<id>compile-html-assets</id> | |
<phase>prepare-package</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<tasks> | |
<exec executable="java"> | |
<arg line="-jar"/> | |
<arg line="/apps/jcruncherEx.jar"/> | |
</exec> | |
</tasks> | |
</configuration> | |
</execution> | |
<!-- /jCruncher --> | |
<!-- Copy to War --> | |
<execution> | |
<id>copy-to-war</id> | |
<phase>package</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<tasks> | |
<mkdir dir="../war" /> | |
<delete includeemptydirs="true"> | |
<fileset dir="../war" includes="**/*" excludes=".git/"/> | |
</delete> | |
<copy todir="../war"> | |
<fileset dir="target/APP_NAME"/> | |
</copy> | |
</tasks> | |
</configuration> | |
</execution> | |
<!-- /Copy to War --> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<dependencies> | |
<!-- Provided Dependencies --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>4.0</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>javax.servlet</groupId> | |
<artifactId>servlet-api</artifactId> | |
<version>2.5</version> | |
<scope>provided</scope> | |
</dependency> | |
<!-- /Provided Dependencies --> | |
<!-- Snow --> | |
<dependency> | |
<groupId>com.britesnow</groupId> | |
<artifactId>snow</artifactId> | |
<version>2.0.2-SNAPSHOT</version> | |
</dependency> | |
<!-- /Snow --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-log4j12</artifactId> | |
<version>1.7.2</version> | |
</dependency> | |
<!-- Database Dependencies --> | |
<!-- | |
<dependency> | |
<groupId>org.postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>9.2-1002-jdbc4</version> | |
</dependency> | |
--> | |
<dependency> | |
<groupId>postgresql</groupId> | |
<artifactId>postgresql</artifactId> | |
<version>9.1-901.jdbc4</version> | |
</dependency> | |
<dependency> | |
<groupId>c3p0</groupId> | |
<artifactId>c3p0</artifactId> | |
<version>0.9.1.2</version> | |
</dependency> | |
<!-- /Database Dependencies --> | |
<!-- for the DAO Registry --> | |
<dependency> | |
<groupId>com.googlecode.gentyref</groupId> | |
<artifactId>gentyref</artifactId> | |
<version>1.1.0</version> | |
</dependency> | |
<!-- /for the DAO Registry --> | |
</dependencies> | |
<repositories> | |
<repository> | |
<id>Sonatype Snapshot</id> | |
<url>https://oss.sonatype.org/content/repositories/snapshots/</url> | |
</repository> | |
</repositories> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment