This is an automated email from the ASF dual-hosted git repository. Kusuma04-dev pushed a commit to branch test_10.3.x in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git
commit 9669ba13c29e58340525b556df89296ca76b9f76 Author: Kusuma <[email protected]> AuthorDate: Sun Oct 18 21:08:51 2026 +0530 tets --- packages/maven-base/index.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/maven-base/index.js b/packages/maven-base/index.js index 433cece1605..dd96338c035 100755 --- a/packages/maven-base/index.js +++ b/packages/maven-base/index.js @@ -133,7 +133,11 @@ module.exports = { fs.mkdirSync(resolvedTmpM2Dir, { recursive: true }); // head - cp.execSync(`cp -nal ${DEFAULT_LOCAL_REPO}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + try { + cp.execSync(`cp -nal ${DEFAULT_LOCAL_REPO}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + } catch (e) { + cp.execSync(`cp -na ${DEFAULT_LOCAL_REPO}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + } const cwd = path.resolve(".", relativePackagePath); const tail = deepResolveMavenLocalRepoTail(cwd, "dependencies"); @@ -141,7 +145,11 @@ module.exports = { // tail for (const t of tail) { if (fs.existsSync(path.resolve(t))) { - cp.execSync(`cp -al ${path.resolve(t)}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + try { + cp.execSync(`cp -al ${path.resolve(t)}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + } catch (e) { + cp.execSync(`cp -a ${path.resolve(t)}/* ${resolvedTmpM2Dir}`, { stdio: "inherit" }); + } } } }, --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
