UNPKG

snyk-mvn-plugin

Version:
22 lines 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatGenericPluginError = formatGenericPluginError; function formatGenericPluginError(error, mavenCommand, mvnArgs) { // Quote arguments that contain spaces for display purposes const quotedArgs = mvnArgs.map((arg) => arg.includes(' ') ? `"${arg}"` : arg); const fullCommand = [mavenCommand, ...quotedArgs].join(' '); const mvnwCommandTipMessage = 'Currently, you cannot run `mvnw` outside your current directory, you will have to go inside the directory of your project (see: https://github.com/takari/maven-wrapper/issues/133)\n\n'; return (error.message + '\n\n' + 'Please make sure that Apache Maven Dependency Plugin ' + 'version 2.2 or above is installed, and that `' + fullCommand + '` executes successfully ' + 'on this project.\n\n' + (mavenCommand.indexOf('mvnw') >= 0 ? mvnwCommandTipMessage : '') + 'If the problem persists, collect the output of `' + 'DEBUG=* ' + fullCommand + '` and contact support@snyk.io\n'); } //# sourceMappingURL=error-format.js.map