Frontend maven plugin

来源:互联网 发布:程序员出差注意事项 编辑:程序博客网 时间:2024/05/16 12:19
<plugins>    <plugin>        <groupId>com.github.eirslett</groupId>        <artifactId>frontend-maven-plugin</artifactId>        <!-- Use the latest released version:        https://repo1.maven.org/maven2/com/github/eirslett/frontend-maven-plugin/ -->        <version>0.0.27</version>        ...

</plugin>

maven call the package.json file's script part:

package.json
 { "name": "npm-to-maven-adapator""version": "0.0.1-SNAPSHOT""description": "Example of node project with maven build scripts""private": true"scripts": { "clean": "node node_modules/gulp/bin/gulp.js --no-color clean","build": "node node_modules/gulp/bin/gulp.js --no-color build","test": "node node_modules/gulp/bin/gulp.js --no-color test","prepare-for-maven-war": "node node_modules/gulp/bin/gulp.js --no-color prepare-for-maven-war" }, "devDependencies": { "del": "^1.1.1""gulp": "^3.8.11""gulp-util": "^3.0.1""mkdirp": "^0.5.0""touch": "0.0.3""yargs": "^1.3.3" } }

0 0