Maven Plugin for Google Closure Compiler
Combines and compiles your JavaScript files with Google Closure Compiler
Usage
<plugin>
<groupId>com.kodcu</groupId>
<artifactId>closure-maven-plugin</artifactId>
<version>1.0.3</version>
<configuration>
<inputPath>${basedir}/src/main/webapp/js/</inputPath>
<jss>
<js>vendor/jquery.js</js>
<js>vendor/modernizr.js</js>
<js>foundation/foundation.js</js>
<js>app.js</js>
</jss>
<outputPath>${basedir}/src/main/webapp/js/script.min.js</outputPath>
</configuration>
<executions>
<execution>
<goals>
<goal>precompile</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
</plugin>
Requirements
Needs Java 8+