-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Dear Anand,
I was facing an issue in the plugin while doing "mvn clean install" for a project. It's failing at executeReadBar stage. After i do deep investigation I found out that the Process exiting with exitValue=1 due to not able to run the command on windows because of the command was not built properly it was like this:
"C:\Program Files\IBM\ACE\11.0.0.5\server\bin/mqsiprofile&&mqsireadbar -b C:\Users\myuser\IBM\ACET11\workspace\ExampleApp\target\ace\ExampleApp.bar -r"
I update the code in ValidateConfigurablePropertiesMojo class to build the command as bvelow way in in case of windows:
executable = "cd " + this.aceRunDir + " && mqsiprofile&&mqsireadbar";
[DEBUG] executing command file: C:\Users\myuser\AppData\Local\Temp\readbarCommand-2f8cf671-f074-4393-9746-21e265d7158a.cmd
[DEBUG] executeMqsiApplyBarOverride command: cd C:\Program Files\IBM\ACE\11.0.0.5\server\bin && mqsiprofile&&mqsiapplybaroverride -b C:\Users\myuser\IBM\ACET11\workspace\ExampleApp\target\ace\ExampleApp.bar -o C:\Users\myuser\IBM\ACET11\workspace\ExampleApp\target\ace\DEV_0.0.1-SNAPSHOT.bar -p C:\Users\myuser\IBM\ACET11\workspace\ExampleApp\properties\DEV.properties -k ExampleApp -r -v C:\Users\myuser\IBM\ACET11\workspace\ExampleApp\target\applybaroverridetrace-DEV.txt
This is my observation and solution and the build was successful.
please your feedback.
Best regards,
Hussein