UNPKG

jmms

Version:

Jmms cli tools, Jmms is a java meta-micro-service framework

24 lines (19 loc) 702 B
const _ = require('lodash'); const log = require('../log'); const maven = require('maven'); const mvn = maven.create(); var BaseGenerator = require('../base'); module.exports = class extends BaseGenerator { constructor(args, opts) { super(args, opts); } run() { const update = this.options['update'] == true; const jsw = this.options['jsw'] == true; if(this.parentRelativePath) { this._execSync('mvn',[update ? '-U' : '', jsw ? '-Pjsw': '', 'clean', 'package', '-f', this.parentRelativePath]); }else { this._execSync('mvn',[update ? '-U' : '', jsw ? '-Pjsw': '', 'clean', 'package']); } } };