Skip to content

Instantly share code, notes, and snippets.

@trecloux
Last active December 18, 2015 08:48
Show Gist options
  • Save trecloux/5756346 to your computer and use it in GitHub Desktop.
Save trecloux/5756346 to your computer and use it in GitHub Desktop.
Maven yeoman plugin declaration
<!-- Declare the maven yeoman plugin to launch npm, grunt and bower during the build -->
<plugin>
<groupId>com.github.trecloux</groupId>
<artifactId>yeoman-maven-plugin</artifactId>
<version>0.1</version>
<executions>
<execution>
<goals>
<goal>build</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Add the yeoman dist directory to the war file-->
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<webResources>
<resource>
<directory>yo/dist</directory>
</resource>
</webResources>
</configuration>
</plugin>
<!-- Configure the clean plugin in order to delete generated directories -->
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.5</version>
<configuration>
<filesets>
<fileset>
<directory>yo/dist</directory>
</fileset>
<fileset>
<directory>yo/.tmp</directory>
</fileset>
<fileset>
<directory>yo/app/components</directory>
</fileset>
<fileset>
<directory>yo/node_modules</directory>
</fileset>
</filesets>
</configuration>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment