Skip to content

Instantly share code, notes, and snippets.

@jhohlfeld
Last active August 29, 2015 14:05
Show Gist options
  • Save jhohlfeld/d02bce77579a09f25178 to your computer and use it in GitHub Desktop.
Save jhohlfeld/d02bce77579a09f25178 to your computer and use it in GitHub Desktop.
A jasmin-maven project showing that preloadSource does not work as expected
<?xml version="1.0" encoding="UTF-8"?>
<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.example</groupId>
<artifactId>jasmine-project</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>A Jasmine Project</name>
<url>http://github.com/searls/jasmine-maven-plugin</url>
<build>
<plugins>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.5</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<preloadSources>
<source>vendor/yui-min.js</source>
<source>vendor/yui-core-min.js</source>
<source>vendor/yui-base-min.js</source>
<source>vendor/es5-shim.min.js</source>
</preloadSources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment