Skip to content

Commit

Permalink
Specify version for maven plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Prabhu Subramanian committed Oct 13, 2020
1 parent d89a15f commit 4c41e3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,12 +383,12 @@ const createJavaBom = async (
const f = pomFiles[i];
const basePath = pathLib.dirname(f);
console.log(
"Executing 'mvn org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom' in",
"Executing 'mvn org.cyclonedx:cyclonedx-maven-plugin:2.1.0:makeAggregateBom' in",
basePath
);
result = spawnSync(
MVN_CMD,
["org.cyclonedx:cyclonedx-maven-plugin:makeAggregateBom"],
["org.cyclonedx:cyclonedx-maven-plugin:2.1.0:makeAggregateBom"],
{ cwd: basePath }
);
if (result.status == 1 || result.error) {
Expand Down
4 changes: 4 additions & 0 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,10 @@ const getPyMetadata = async function (pkgList) {
const cdepList = [];
for (const p of pkgList) {
try {
// Some packages support extra modules
if (p.name.includes("[")) {
p.name = p.name.split("[")[0];
}
const res = await got.get(PYPI_URL + p.name + "/json", {
responseType: "json",
});
Expand Down

0 comments on commit 4c41e3b

Please sign in to comment.