snyk-mvn-plugin
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -21,21 +21,20 @@ var parse = require('./parse-mvn'); | ||
.then(function (result) { | ||
try { | ||
var parseResult = parse(result, options.dev); | ||
return { | ||
plugin: { | ||
name: 'bundled:maven', | ||
runtime: 'unknown', | ||
}, | ||
package: parseResult.data, | ||
}; | ||
} catch (error) { | ||
error.message = error.message + '\n\n' + | ||
'Please make sure that Apache Maven Dependency Plugin ' + | ||
'version 2.2 or above is installed, and that ' + | ||
'`mvn ' + mvnArgs.join(' ') + '` executes successfully ' + | ||
'on this project.\n\n' + | ||
'If the problem persists, collect the output of ' + | ||
'`mvn ' + mvnArgs.join(' ') + '` and contact support@snyk.io\n'; | ||
throw error; | ||
} | ||
var parseResult = parse(result, options.dev); | ||
return { | ||
plugin: { | ||
name: 'bundled:maven', | ||
runtime: 'unknown', | ||
}, | ||
package: parseResult.data, | ||
}; | ||
}) | ||
.catch(function (error) { | ||
error.message = error.message + '\n\n' + | ||
'Please make sure that Apache Maven Dependency Plugin ' + | ||
'version 2.2 or above is installed, and that ' + | ||
'`mvn ' + mvnArgs.join(' ') + '` executes successfully ' + | ||
'on this project.\n\n' + | ||
'If the problem persists, collect the output of ' + | ||
'`mvn ' + mvnArgs.join(' ') + '` and contact support@snyk.io\n'; | ||
throw error; | ||
}); | ||
@@ -42,0 +41,0 @@ } |
@@ -23,3 +23,3 @@ var childProcess = require('child_process'); | ||
if (code !== 0) { | ||
return reject(stdout || stderr); | ||
return reject(new Error(stdout || stderr)); | ||
} | ||
@@ -26,0 +26,0 @@ resolve(stdout || stderr); |
@@ -14,3 +14,3 @@ { | ||
"test-functional": "tap ./test/functional/*.test.js -R spec", | ||
"test-system": "tap ./test/system/*.test.js -R spec --timeout=60", | ||
"test-system": "tap ./test/system/*.test.js -R spec --timeout=180", | ||
"semantic-release": "semantic-release" | ||
@@ -26,3 +26,3 @@ }, | ||
}, | ||
"version": "1.2.1" | ||
"version": "1.2.2" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13713
174