Created: 2011-07-15 16:11
Updated: 2013-12-01 20:24
License: other



A Maven Archetype for quickly starting projects with Jasmine, CoffeeScript, JSHint, static asset deployment


Create a new Maven project that's set up to use jasmine-maven-plugin, replete with example specs.

mvn archetype:generate \
-DarchetypeRepository=http://searls-maven-repository.googlecode.com/svn/trunk/snapshots \
-DarchetypeGroupId=com.github.searls \
-DarchetypeArtifactId=jasmine-coffee-archetype \
-DarchetypeVersion=1.0.0-SNAPSHOT \
-DgroupId=com.acme \
-DartifactId=my-jasmine-project \

If you're on Windows or if your shell doesn't like the newlines above, here's the same command in a single line:

mvn archetype:generate -DarchetypeRepository=http://searls-maven-repository.googlecode.com/svn/trunk/snapshots -DarchetypeGroupId=com.github.searls -DarchetypeArtifactId=jasmine-coffee-archetype -DarchetypeVersion=1.0.0-SNAPSHOT -DgroupId=com.acme -DartifactId=my-jasmine-project -Dversion=0.0.1-SNAPSHOT

Running specs

To develop code, you'll want to run your specs in a browser and refresh as you go (more info here):

mvn jasmine:bdd

And then visit localhost:8234

Running the web app

To see your actual web app and get instant Coffee compilation, run:

mvn tomcat:run

And then visit localhost:8080


To build everything just:

mvn clean install

And then check out the ZIP file in your project's target directory for static deployment to some server.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more