Maven plugin for npm / bower / grunt-gulp build
Clone or download
Thomas Recloux
Thomas Recloux Merge pull request #31 from jpjcjbr/master
Adding useNpmCache parameter
Latest commit 44b10f5 May 23, 2016


Use this plugin to integrate the yeoman build into your maven build.


  • npm, bower, grunt and npm-cache(only needed if useNpmCache parameter enabled)
  • maven 3

Launched commands (default setup)

  • npm install
  • bower install --no-color
  • grunt test --no-color
  • grunt build --no-color

Default layout

Yeoman application is placed into the yo directory at the top of the project hierarchy.

 - src
   - main
     - java
     - webapp
     - …
   - test
     - ..
 - yo
   - app
   - test
   - dist


Plugin declaration :


Add the yeoman dist directory to the war file


Configure the clean plugin in order to delete generated directories



V0.5 2015-08-19

  • Add bowerVariant parameter to be able to use an alternative to bower : bower-act (Thanks Thorsten Pohl )

V0.4 2015-02-15

  • Add buildTool parameter to be able to use an alternative to grunt : gulp the gruntTestArgs and gruntInstallArgs were renamed to testArgs and buildArgs. Previous parameters are still usable but deprecated (Thanks Lukas Peleska)

V0.3 2015-02-03

  • Add skipBuild parameter to skip the grunt build ( system propery) (Thanks Pete Johanson)

V0.2 2014-03-17

  • Execute grunt test before grunt build. Tests can be skipped with skipTests parameter (yo.test.skip system property)
  • Rename gruntInstallArgs parameter to gruntBuildArgs
  • Logging executed commands
  • Add skip parameter to skip the plugin execution (yo.skip system property) to skip the build (Thanks Brad Sneade)
  • Add new parameters :
    • npmInstallArgs for npm arguments(default value : install)
    • bowerInstallArgs for bower arguments (default value : install --no-color)
    • gruntTestArgs for grunt build arguments (default value : test --no-color)
    • gruntInstallArgs for grunt test arguments (default value : build --no-color)

V0.1 2013-04-25

  • Initial version


This project is licensed under Apache 2.0 License