polyglotpkg not installed from mvn package command on polyglot python archetype
The package execution fails on a new polyglot project. Is there a configuration required to install the polyglotpkg executable on the local system prior?
Steps to reproduce:
- Create new python based project following https://github.com/vmware/vrealize-developer-tools/wiki/Polyglot-project#create-new-polyglot-project
- Execute
mvn clean package
Output:
> polyglotpkg --env polyglot
sh: polyglotpkg: command not found
...
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:exec (npm run build - compile) on project demo-polyglot: Command execution failed.: Process exited with an error: 127 (Exit value: 127) -> [Help 1]
@b-mad Can you try to execute the command with different type parameter at the end and see if that will fix your issue? If you want to have a vro package, them add -Dtype=vro, and if you want to use it as an abx action, then add -Dtype=abx. There's more information about the issue in the PR that I've created.
Hi @b-mad , I hope the answer from @mduchev have helped you resolve your issue.
Just to verify, I ran a new test - I've created a new project using the script below and managed to build it successfully.
mvn archetype:generate \ -DinteractiveMode=false \ -DarchetypeGroupId=com.vmware.pscoe.polyglot.archetypes \ -DarchetypeArtifactId=package-polyglot-archetype \ -DarchetypeVersion=2.36.0 \ -DgroupId=local.corp.it.cloud \ -DartifactId=polyglot \ -Druntime=python \ -Dtype=vro
I am running with the following config:
- vRealize Developer Tools Version: v2.36.0
- vRealize Build Tools Version: v2.5.1
- Visual Studio Code Version: 1.85.1 (Universal)
- OS Version: MacOS Ventura 13.6.3
Feel free to re-open the issue if you encounter further problems.