diff --git a/index.js b/index.js index f8cc10d688..d72d5f5173 100644 --- a/index.js +++ b/index.js @@ -1181,7 +1181,7 @@ export const createJavaBom = async (path, options) => { `maven settings.xml found in ${basePath}. Please set the MVN_ARGS environment variable based on the full mvn build command used for this project.\nExample: MVN_ARGS='--settings ${settingsXml}'` ); } - const mavenCmd = getMavenCommand(basePath, path); + const mavenCmd = '"'+ getMavenCommand(basePath, path)+'"'; // Should we attempt to resolve class names if (options.resolveClass || options.deep) { const tmpjarNSMapping = collectMvnDependencies(