Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

319 lines (307 sloc) 15.703 kB
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.opitzconsulting.html5</groupId>
<artifactId>jquery-mobile-angular-adapter</artifactId>
<version>1.0.1</version>
<name>JQuery Mobile Angular Adapter</name>
<packaging>war</packaging>
<description>Adapter for using jquery mobile with angular</description>
<properties>
<browser>/Applications/Google Chrome.app/Contents/MacOS/Google Chrome</browser>
<!-- optimizer for minification: uglify or closure -->
<jsOptimizer>uglify</jsOptimizer>
<jsSuffix>-${version}</jsSuffix>
</properties>
<build>
<finalName>${project.artifactId}</finalName>
<plugins>
<plugin>
<groupId>com.voltvoodoo</groupId>
<artifactId>brew</artifactId>
<version>0.2.3-SNAPSHOT</version>
<configuration>
<optimizeBuildDir>${basedir}/target/requirejs/build</optimizeBuildDir>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.4.4.v20110707</version>
<configuration>
<scanIntervalSeconds>5</scanIntervalSeconds>
<stopKey>STOPJETTY</stopKey>
<stopPort>9999</stopPort>
<webAppConfig>
<contextPath>/jqmng</contextPath>
<resourceBases>
<resourceBase>src/main/webapp</resourceBase>
<resourceBase>src/test/webapp</resourceBase>
</resourceBases>
</webAppConfig>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!-- Profile for building -->
<id>build</id>
<properties>
<!-- Values: uglify, closure, none -->
<jsOptimizer>uglify</jsOptimizer>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.voltvoodoo</groupId>
<artifactId>brew</artifactId>
<executions>
<execution>
<id>build-main</id>
<phase>prepare-package</phase>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<jsOptimizer>none</jsOptimizer>
<optimizedFileNameSuffix>-${version}</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/src/main/webapp</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/build</optimizeBuildDir>
<optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
<skipModuleInsertion>true</skipModuleInsertion>
<modules>
<module>
<name>jquery-mobile-angular-adapter</name>
<include>
<entry>lib/simple-require</entry>
<entry>jqm-angular</entry>
</include>
</module>
</modules>
<wrap>
<startFile>${basedir}/src/main/build/header.js</startFile>
<endFile>${basedir}/src/main/build/footer.js</endFile>
</wrap>
</configuration>
</execution>
<execution>
<id>build-standalone</id>
<phase>prepare-package</phase>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<jsOptimizer>none</jsOptimizer>
<optimizedFileNameSuffix>-${version}</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/target/requirejs/build</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/build</optimizeBuildDir>
<optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
<skipModuleInsertion>true</skipModuleInsertion>
<modules>
<module>
<name>jquery-mobile-angular-adapter-standalone</name>
<include>
<entry>lib/jquery-1.6.2</entry>
<entry>lib/mobileinit</entry>
<entry>lib/angular-0.9.19</entry>
<entry>lib/jquery.mobile-1.0b2-oc1</entry>
<entry>../../../compiled/jquery-mobile-angular-adapter-${version}</entry>
</include>
</module>
</modules>
</configuration>
</execution>
<execution>
<id>minify</id>
<phase>prepare-package</phase>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<jsOptimizer>${jsOptimizer}</jsOptimizer>
<optimizedFileNameSuffix>.min</optimizedFileNameSuffix>
<optimizeSourceDir>${basedir}/compiled</optimizeSourceDir>
<optimizeBuildDir>${basedir}/target/requirejs/optimize</optimizeBuildDir>
<optimizeOutputDir>${basedir}/compiled</optimizeOutputDir>
<skipModuleInsertion>true</skipModuleInsertion>
<modules>
<module>
<name>jquery-mobile-angular-adapter-standalone-${version}</name>
</module>
<module>
<name>jquery-mobile-angular-adapter-${version}</name>
</module>
</modules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<!-- Profile for executing the tests with jstestdriver -->
<id>test</id>
<build>
<plugins>
<plugin>
<groupId>com.voltvoodoo</groupId>
<artifactId>brew</artifactId>
<configuration>
<optimizeOutputDir>${basedir}/target/requirejs/garbage</optimizeOutputDir>
<!-- no optimizer nor wrapping for tests -->
<jsOptimizer>none</jsOptimizer>
</configuration>
<executions>
<execution>
<id>optimize-main</id>
<phase>prepare-package</phase>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<optimizeSourceDir>${basedir}/src/main/webapp</optimizeSourceDir>
<modules>
<module>
<name>jqm-angular</name>
</module>
</modules>
</configuration>
</execution>
<!-- This second execution relies on the fact that the first execution
left the modules of src/main/webapp in the build directory -->
<execution>
<id>optimize-test</id>
<phase>prepare-package</phase>
<goals>
<goal>optimize</goal>
</goals>
<configuration>
<optimizeSourceDir>${basedir}/src/test/webapp</optimizeSourceDir>
<modules>
<module>
<name>unit-tests</name>
</module>
<module>
<name>ui-tests</name>
</module>
</modules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.jstestdriver</groupId>
<artifactId>maven-jstestdriver-plugin</artifactId>
<version>1.3.2.2</version>
<configuration>
<browser>${browser}</browser>
<port>9876</port>
<reset>true</reset>
<runnerMode>INFO</runnerMode>
<testOutput>${project.build.directory}/jstd-reports</testOutput>
<tests>all</tests>
</configuration>
<executions>
<execution>
<id>run-unit-tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<config>jstd-unit.conf</config>
</configuration>
</execution>
<execution>
<id>run-integration-tests</id>
<phase>integration-test</phase>
<goals>
<goal>test</goal>
</goals>
<configuration>
<config>jstd-ui.conf</config>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceExcludes>**/*.js,**/*.css
</warSourceExcludes>
<webResources>
<resource>
<directory>target/requirejs/build</directory>
</resource>
</webResources>
</configuration>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<webAppConfig>
<resourceBases>
<resourceBase>${basedir}/target/${project.artifactId}</resourceBase>
</resourceBases>
</webAppConfig>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<dependencies>
<dependency>
<groupId>com.google.jstestdriver</groupId>
<artifactId>jstestdriver</artifactId>
<version>1.3.2</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>com.googlecode.jstd-maven-plugin</id>
<name>JsTestDriver Maven Plugin Repository</name>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>com.googlecode.jstd-maven-plugin</id>
<name>JsTestDriver Maven Plugin Repository</name>
<url>http://jstd-maven-plugin.googlecode.com/svn/maven2</url>
</pluginRepository>
</pluginRepositories>
</project>
Jump to Line
Something went wrong with that request. Please try again.