Skip to content

Instantly share code, notes, and snippets.

@davidtruchet
Created May 12, 2016 13:45
Show Gist options
  • Save davidtruchet/487be31bb41e333a50aba1f19e9ebf37 to your computer and use it in GitHub Desktop.
Save davidtruchet/487be31bb41e333a50aba1f19e9ebf37 to your computer and use it in GitHub Desktop.
Running Grunt with Maven
<properties>
....
....
<grunt.executable>grunt</grunt.executable>
....
....
</properties>
<build>
<pluginManagement>
<!-- MAVEN -->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.3.2</version>
<executions>
<execution>
<id>build</id>
<phase>compile</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>${grunt.executable}</executable>
<arguments>
<argument>##taskName##</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<build>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment