Skip to content

Instantly share code, notes, and snippets.

@snuxoll
Created August 16, 2014 05:23
Show Gist options
  • Save snuxoll/84816e19152f1bc06bd3 to your computer and use it in GitHub Desktop.
Save snuxoll/84816e19152f1bc06bd3 to your computer and use it in GitHub Desktop.
ember-cli + maven
<?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">
<groupId>com.snuxoll.example</groupId>
<artifactId>ember-maven-example</artifactId>
<version>0.1-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<artifactId>getcheckedin-frontend</artifactId>
<build>
<plugins>
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<executions>
<execution>
<id>install-frontend-build-tools</id>
<phase>initialize</phase>
<goals>
<goal>
install-node-and-npm
</goal>
</goals>
<configuration>
<nodeVersion>v0.10.30</nodeVersion>
<npmVersion>1.4.3</npmVersion>
</configuration>
</execution>
<execution>
<id>build-frontend</id>
<phase>generate-resources</phase>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>clean</goal>
</goals>
<configuration>
<filesets>
<fileset>
<directory>tmp</directory>
</fileset>
<fileset>
<directory>dist</directory>
</fileset>
</filesets>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<resources>
<resource>
<directory>${basedir}/dist/</directory>
<excludes>
<exclude>tests/</exclude>
<exclude>**/.gitkeep</exclude>
<exclude>testem.js</exclude>
</excludes>
<targetPath>META-INF/resources/</targetPath>
</resource>
</resources>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment