Created
August 22, 2012 20:00
-
-
Save kborchers/3428826 to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<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>org.jboss.as.quickstarts</groupId> | |
<artifactId>jboss-as-kitchensink-html5-mobile</artifactId> | |
<version>1.0.0.M4</version> | |
<packaging>war</packaging> | |
<name>JBoss AS Quickstarts: AeroGear HTML5/Mobile</name> | |
<description>An AeroGear and Java EE 6 HTML5 mobile web application for use with JBoss.</description> | |
<url>http://jboss.org/aerogear</url> | |
<properties> | |
<!-- Explicitly declaring the source encoding eliminates the following message: --> | |
<!-- [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! --> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<!-- You can reference property in pom.xml or filtered resources (must enable third-party plugin if using Maven < 2.1) --> | |
<!-- Define the version of JBoss' Java EE 6 APIs we want to import. Any dependencies from org.jboss.spec will have their | |
version defined by this BOM --> | |
<javaee6.web.spec.version>3.0.0.Final</javaee6.web.spec.version> | |
<!-- JBoss EAP Certified Versions --> | |
<!-- <javaee6.web.spec.version>3.0.0.Beta1-redhat-1</javaee6.web.spec.version> --> | |
<!-- <version.org.hibernate.validator>4.2.0.Final-redhat-1</version.org.hibernate.validator> --> | |
<wro4j.version>1.4.4</wro4j.version> | |
<!-- Versions not covered in jboss-javaee-web-6.0 BOM --> | |
<version.org.hibernate.validator>4.2.0.Final</version.org.hibernate.validator> | |
<version.org.hibernate-jpamodelgen>1.1.1.Final</version.org.hibernate-jpamodelgen> | |
<version.org.jboss.arquillian>1.0.0.Final</version.org.jboss.arquillian> | |
<version.org.jboss.as.arquillian.container>7.1.1.Final</version.org.jboss.as.arquillian.container> | |
<version.junit>4.10</version.junit> | |
</properties> | |
<licenses> | |
<license> | |
<name>Apache License, Version 2.0</name> | |
<distribution>repo</distribution> | |
<url>http://www.apache.org/licenses/LICENSE-2.0.html</url> | |
</license> | |
</licenses> | |
<dependencyManagement> | |
<dependencies> | |
<!-- JBoss distributes a complete set of Java EE 6 APIs including | |
a Bill of Materials (BOM). A BOM specifies the versions of a "stack" (or | |
a collection) of artifacts. We use this here so that we always get the correct | |
versions of artifacts. Here we use the jboss-javaee-web-6.0 stack (you can | |
read this as the JBoss stack of the Java EE Web Profile 6 APIs) --> | |
<dependency> | |
<groupId>org.jboss.spec</groupId> | |
<artifactId>jboss-javaee-web-6.0</artifactId> | |
<version>${javaee6.web.spec.version}</version> | |
<type>pom</type> | |
<scope>import</scope> | |
</dependency> | |
</dependencies> | |
</dependencyManagement> | |
<dependencies> | |
<!-- First declare the APIs we depend on and need for compilation. All of them are provided by JBoss --> | |
<!-- Import the CDI API, we use provided scope as the API is included in JBoss --> | |
<dependency> | |
<groupId>javax.enterprise</groupId> | |
<artifactId>cdi-api</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Import the Common Annotations API (JSR-250), we use provided scope as the API is included in JBoss --> | |
<dependency> | |
<groupId>org.jboss.spec.javax.annotation</groupId> | |
<artifactId>jboss-annotations-api_1.1_spec</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Import the JAX-RS API, we use provided scope as the API is included in JBoss --> | |
<dependency> | |
<groupId>org.jboss.spec.javax.ws.rs</groupId> | |
<artifactId>jboss-jaxrs-api_1.1_spec</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Import the JPA API, we use provided scope as the API is included in JBoss --> | |
<dependency> | |
<groupId>org.hibernate.javax.persistence</groupId> | |
<artifactId>hibernate-jpa-2.0-api</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Import the EJB API, we use provided scope as the API is included in JBoss --> | |
<dependency> | |
<groupId>org.jboss.spec.javax.ejb</groupId> | |
<artifactId>jboss-ejb-api_3.1_spec</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Import the Servlet API, we use provided scope as the API is included in JBoss AS 7 --> | |
<dependency> | |
<groupId>org.jboss.spec.javax.servlet</groupId> | |
<artifactId>jboss-servlet-api_3.0_spec</artifactId> | |
<scope>provided</scope> | |
</dependency> | |
<!-- JSR-303 (Bean Validation) Implementation --> | |
<!-- Provides portable constraints such as @Email --> | |
<!-- Hibernate Validator is shipped in JBoss --> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-validator</artifactId> | |
<version>${version.org.hibernate.validator}</version> | |
<scope>provided</scope> | |
<exclusions> | |
<exclusion> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
</exclusion> | |
</exclusions> | |
</dependency> | |
<!-- Now we declare any tools needed --> | |
<!-- Annotation processor to generate the JPA 2.0 metamodel classes for typesafe criteria queries --> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-jpamodelgen</artifactId> | |
<version>${version.org.hibernate-jpamodelgen}</version> | |
<scope>provided</scope> | |
</dependency> | |
<!-- Needed for running tests (you may also use TestNG) --> | |
<dependency> | |
<groupId>junit</groupId> | |
<artifactId>junit</artifactId> | |
<version>${version.junit}</version> | |
<scope>test</scope> | |
</dependency> | |
<!-- Optional, but highly recommended --> | |
<!-- Arquillian allows you to test enterprise code such as EJBs and Transactional(JTA) JPA from JUnit/TestNG --> | |
<dependency> | |
<groupId>org.jboss.arquillian.junit</groupId> | |
<artifactId>arquillian-junit-container</artifactId> | |
<version>${version.org.jboss.arquillian}</version> | |
<scope>test</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.jboss.arquillian.protocol</groupId> | |
<artifactId>arquillian-protocol-servlet</artifactId> | |
<version>${version.org.jboss.arquillian}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<!-- Maven will append the version to the finalName (which is the name given to the generated war, and hence the context | |
root) --> | |
<finalName>${project.artifactId}</finalName> | |
<plugins> | |
<!-- Compiler plugin enforces Java 1.6 compatibility and activates annotation processors --> | |
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.2</version> | |
<configuration> | |
<!-- Java EE 6 doesn't require web.xml, Maven needs to catch up! --> | |
<failOnMissingWebXml>false</failOnMissingWebXml> | |
</configuration> | |
</plugin> | |
<!-- The JBoss AS plugin deploys your war to a local JBoss AS container --> | |
<!-- To use, run: mvn package jboss-as:deploy --> | |
<plugin> | |
<groupId>org.jboss.as.plugins</groupId> | |
<artifactId>jboss-as-maven-plugin</artifactId> | |
<version>7.1.1.Final</version> | |
</plugin> | |
<plugin> | |
<groupId>com.mycila.maven-license-plugin</groupId> | |
<artifactId>maven-license-plugin</artifactId> | |
<version>1.9.0</version> | |
<configuration> | |
<header>src/etc/license.txt</header> | |
<mapping> | |
<tmpl>XML_STYLE</tmpl> | |
</mapping> | |
<strictCheck>true</strictCheck> | |
<includes> | |
<include>src/**</include> | |
</includes> | |
<excludes> | |
<exclude>src/main/webapp/js/libs/**</exclude> | |
<exclude>src/main/webapp/css/jquery.mobile-1.0.min.css</exclude> | |
<exclude>src/test/qunit/qunit/**</exclude> | |
<exclude>src/main/webapp/tmpl/**</exclude> | |
<exclude>src/main/webapp/WEB-INF/wro.properties</exclude> | |
</excludes> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<profiles> | |
<profile> | |
<!-- The default profile skips all tests, though you can tune it to run just unit tests based on a custom pattern --> | |
<!-- Seperate profiles are provided for running all tests, including Arquillian tests that execute in the specified container --> | |
<id>default</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.4.3</version> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. --> | |
<!-- Use this profile for any OpenShift specific customization your app will need. --> | |
<!-- By default that is to put the resulting archive into the 'deployments' folder. --> | |
<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environments.html --> | |
<id>openshift</id> | |
<build> | |
<plugins> | |
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.2</version> | |
<configuration> | |
<outputDirectory>deployments</outputDirectory> | |
<warName>ROOT</warName> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<!-- Use this profile to use the wro4j plugin for validation, concatenation and --> | |
<!-- minification of JavaScript and CSS files during the build --> | |
<id>minify</id> | |
<activation> | |
<activeByDefault>false</activeByDefault> | |
</activation> | |
<build> | |
<pluginManagement> | |
<plugins> | |
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.--> | |
<plugin> | |
<groupId>org.eclipse.m2e</groupId> | |
<artifactId>lifecycle-mapping</artifactId> | |
<version>1.0.0</version> | |
<configuration> | |
<lifecycleMappingMetadata> | |
<pluginExecutions> | |
<pluginExecution> | |
<pluginExecutionFilter> | |
<groupId>ro.isdc.wro4j</groupId> | |
<artifactId> | |
wro4j-maven-plugin | |
</artifactId> | |
<version>1.4.4</version> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</pluginExecutionFilter> | |
<action> | |
<ignore></ignore> | |
</action> | |
</pluginExecution> | |
</pluginExecutions> | |
</lifecycleMappingMetadata> | |
</configuration> | |
</plugin> | |
</plugins> | |
</pluginManagement> | |
<plugins> | |
<plugin> | |
<groupId>ro.isdc.wro4j</groupId> | |
<artifactId>wro4j-maven-plugin</artifactId> | |
<version>${wro4j.version}</version> | |
<executions> | |
<execution> | |
<phase>compile</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
</execution> | |
</executions> | |
<configuration> | |
<targetGroups>app.min,m.screen.min,d.screen.min</targetGroups> | |
<cssDestinationFolder>${project.build.directory}/${project.build.finalName}/css/</cssDestinationFolder> | |
<jsDestinationFolder>${project.build.directory}/${project.build.finalName}/js/</jsDestinationFolder> | |
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory> | |
</configuration> | |
</plugin> | |
<plugin> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.4.3</version> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<!-- An optional Arquillian testing profile that executes tests in your JBoss AS instance --> | |
<!-- This profile will start a new JBoss AS instance, and execute the test, shutting it down when done --> | |
<!-- Run with: mvn clean test -Parq-jbossas-managed --> | |
<id>arq-jbossas-managed</id> | |
<dependencies> | |
<dependency> | |
<groupId>org.jboss.as</groupId> | |
<artifactId>jboss-as-arquillian-container-managed</artifactId> | |
<version>7.1.1.Final</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</profile> | |
<profile> | |
<!-- An optional Arquillian testing profile that executes tests in a remote JBoss AS instance --> | |
<!-- Run with: mvn clean test -Parq-jbossas-remote --> | |
<id>arq-jbossas-remote</id> | |
<dependencies> | |
<dependency> | |
<groupId>org.jboss.as</groupId> | |
<artifactId>jboss-as-arquillian-container-remote</artifactId> | |
<version>${version.org.jboss.as.arquillian.container}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
</profile> | |
<profile> | |
<id>aerogearci-jbossas-managed-7</id> | |
<dependencies> | |
<dependency> | |
<groupId>org.jboss.as</groupId> | |
<artifactId>jboss-as-arquillian-container-managed</artifactId> | |
<version>${version.org.jboss.as.arquillian.container}</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<version>2.12</version> | |
<configuration> | |
<systemProperties> | |
<arquillian.launch>jbossci</arquillian.launch> | |
<arquillian.jboss_home>${project.build.directory}/jboss-as-${version.org.jboss.as.arquillian.container}/ | |
</arquillian.jboss_home> | |
</systemProperties> | |
<includes> | |
<include>**/*.java</include> | |
</includes> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-dependency-plugin</artifactId> | |
<executions> | |
<execution> | |
<id>unpack-as7</id> | |
<phase>process-test-classes</phase> | |
<goals> | |
<goal>unpack</goal> | |
</goals> | |
<configuration> | |
<artifactItems> | |
<artifactItem> | |
<groupId>org.jboss.as</groupId> | |
<artifactId>jboss-as-dist</artifactId> | |
<version>7.1.1.Final</version> | |
<outputDirectory>${project.build.directory}</outputDirectory> | |
<type>zip</type> | |
<overWrite>false</overWrite> | |
</artifactItem> | |
</artifactItems> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment