code: function getMaven(dir) {
    var mvn = 'mvn';
    var isWin = /^win/.test(process.platform);
  
    // check for wrapper
    if (isWin) {
      if (fs.existsSync(path.resolve(dir, 'mvnw.bat'))) {
        mvn = path.resolve(dir, 'mvnw.bat');
      }
    } else {
      if (fs.existsSync(path.resolve(dir, 'mvnw'))) {
        mvn = path.resolve(dir, 'mvnw');
      }
    }
  
    return mvn;
  }
docs: Helper to select local maven wrapper or system maven
  
  @param dir current working directory
  @returns {string} the maven command