Skip to content

Instantly share code, notes, and snippets.

@halyph
Created June 11, 2012 22:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save halyph/2913028 to your computer and use it in GitHub Desktop.
Save halyph/2913028 to your computer and use it in GitHub Desktop.
JSF2, Primefaces, Maven and Tomcat 7 plugin
<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>jsf.demo</groupId>
<artifactId>GridDemo</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>GridDemo Maven Webapp</name>
<url>http://maven.apache.org</url>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.2</version>
</dependency>
</dependencies>
<build>
<finalName>GridDemo</finalName>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty-maven-plugin.version}</version>
<configuration>
<scanIntervalSeconds>10</scanIntervalSeconds>
</configuration>
</plugin>
<plugin>
<groupId>com.googlecode.t7mp</groupId>
<artifactId>maven-t7-plugin</artifactId>
<version>${tomcat.maven.plugin.version}</version>
<executions>
<execution>
<id>start-tomcat</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tomcatSetAwait>false</tomcatSetAwait>
<tomcatHttpPort>8585</tomcatHttpPort>
</configuration>
</execution>
<execution>
<id>stop-tomcat</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<properties>
<encoding>UTF-8</encoding>
<java.source.level>1.6</java.source.level>
<com.sun.faces.version>2.1.7</com.sun.faces.version>
<jetty-maven-plugin.version>8.1.2.v20120308</jetty-maven-plugin.version>
<org.primefaces.version>3.2</org.primefaces.version>
<tomcat.maven.plugin.version>0.9.9</tomcat.maven.plugin.version>
</properties>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment