Created
September 13, 2013 21:29
-
-
Save rzymek/6556326 to your computer and use it in GitHub Desktop.
JEE xtend webapp template
This file contains hidden or 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>template</groupId> | |
<artifactId>jee.webapp</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<properties> | |
<maven.compiler.source>1.7</maven.compiler.source> | |
<maven.compiler.target>1.7</maven.compiler.target> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<webapp>${basedir}/webapp</webapp> | |
<ddl>update</ddl> | |
</properties> | |
<prerequisites> | |
<maven>3.0.3</maven> | |
</prerequisites> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.openejb</groupId> | |
<artifactId>javaee-api</artifactId> | |
<version>6.0-5</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.eclipse.xtend</groupId> | |
<artifactId>org.eclipse.xtend.lib</artifactId> | |
<version>2.4.3</version> | |
</dependency> | |
<dependency> | |
<groupId>com.google.guava</groupId> | |
<artifactId>guava</artifactId> | |
<version>14.0.1</version> | |
</dependency> | |
<dependency> | |
<groupId>joda-time</groupId> | |
<artifactId>joda-time</artifactId> | |
<version>2.3</version> | |
</dependency> | |
<dependency> | |
<groupId>commons-io</groupId> | |
<artifactId>commons-io</artifactId> | |
<version>2.4</version> | |
</dependency> | |
<dependency> | |
<groupId>de.oehme.xtend.contrib</groupId> | |
<artifactId>xtend-contrib-jaxrs</artifactId> | |
<version>0.1.1-SNAPSHOT</version> | |
<scope>provided</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<outputDirectory>${webapp}/WEB-INF/classes</outputDirectory> | |
<resources> | |
<resource> | |
<filtering>true</filtering> | |
<directory>${basedir}/src/main/resources</directory> | |
</resource> | |
</resources> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.4</version> | |
<configuration> | |
<failOnMissingWebXml>false</failOnMissingWebXml> | |
<warSourceDirectory>${webapp}</warSourceDirectory> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.eclipse.xtend</groupId> | |
<artifactId>xtend-maven-plugin</artifactId> | |
<version>2.4.3</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-clean-plugin</artifactId> | |
<version>2.5</version> | |
<configuration> | |
<filesets> | |
<fileset> | |
<directory>${webapp}/WEB-INF/lib</directory> | |
<includes> | |
<include>**/*</include> | |
</includes> | |
</fileset> | |
</filesets> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.jboss.as.plugins</groupId> | |
<artifactId>jboss-as-maven-plugin</artifactId> | |
<version>7.4.Final</version> | |
</plugin> | |
<plugin> | |
<groupId>watcher</groupId> | |
<artifactId>watcher-maven-plugin</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<configuration> | |
<watch> | |
<param> | |
<on>pom.xml</on> | |
<run>war:inplace eclipse:eclipse</run> | |
</param> | |
<param> | |
<on>src/main/resources/META-INF/persistence.xml</on> | |
<run>resources:resources</run> | |
</param> | |
</watch> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>com.github.skwakman.nodejs-maven-plugin</groupId> | |
<artifactId>nodejs-maven-plugin</artifactId> | |
<version>1.0.4</version> | |
<configuration> | |
<targetDirectory>${basedir}/target/nodejs/</targetDirectory> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.mule.tools.javascript</groupId> | |
<artifactId>npm-maven-plugin</artifactId> | |
<version>1.1-SNAPSHOT</version> | |
<executions> | |
<execution> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>fetch-modules</goal> | |
</goals> | |
<configuration> | |
<packages> | |
<package>typescript:0.9.1.1</package> | |
</packages> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<id>prod</id> | |
<properties> | |
<ddl>validate</ddl> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>de.smartics.maven.plugin</groupId> | |
<artifactId>hibernate4-maven-plugin</artifactId> | |
<version>0.2.0</version> | |
<executions> | |
<execution> | |
<id>export</id> | |
<goals> | |
<goal>hbm2ddl</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<unitName>primary</unitName> | |
<createOutputFile>${basedir}/target/ddl.sql</createOutputFile> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>hibernate4.ddl</id> | |
<url>http://www.smartics.eu/nexus/content/groups/public-group</url> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
</pluginRepository> | |
</pluginRepositories> | |
</profile> | |
</profiles> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>rzymek-snapshots</id> | |
<url>http://github.com/rzymek/repository/raw/master/snapshots</url> | |
</pluginRepository> | |
</pluginRepositories> | |
<repositories> | |
<repository> | |
<!-- jboss-javaee-6.0 --> | |
<id>repository.jboss.org</id> | |
<url>http://repository.jboss.org/nexus/content/groups/public-jboss/</url> | |
</repository> | |
<repository> | |
<id>rzymek-snapshots</id> | |
<url>http://github.com/rzymek/repository/raw/master/snapshots</url> | |
</repository> | |
</repositories> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment