udmi tools like pubber and validator not working WSL. shadowjar failed
I am using windows PC, in that i installed WSL ubuntu CLI and mounted windows drive into it. then i installed Software Prerequisites
- JDK v17
-
coreutils -
jq
then i ran pubber, but below issue printed in execution.
Constructing pubber configuration from site config.
Cleaning output directory /mnt/m/google_test_environment/udmi/pubber/out/null
Building pubber...
Building pubber in /mnt/m/google_test_environment/udmi/pubber
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :shadowJar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shadowJar'.
> Could not copy MANIFEST.MF to '/mnt/m/google_test_environment/udmi/pubber/build/tmp/shadowJar/MANIFEST.MF'.
> Could not set file mode 644 on '/mnt/m/google_test_environment/udmi/pubber/build/tmp/shadowJar/MANIFEST.MF'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 23s
2 actionable tasks: 2 executed
when validator executed below error comes up
Running tools version 1.5.0-64-g9db21407
Building validator...
Java version openjdk 17.0.10 2024-01-16 OpenJDK Runtime Environment (build 17.0.10+7-Ubuntu-122.04.1) OpenJDK 64-Bit Server VM (build 17.0.10+7-Ubuntu-122.04.1, mixed mode, sharing)
Building validator in /mnt/m/google_test_environment/udmi/validator
> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :processResources NO-SOURCE
> Task :classes
> Task :shadowJar FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shadowJar'.
> Could not copy MANIFEST.MF to '/mnt/m/google_test_environment/udmi/validator/build/tmp/shadowJar/MANIFEST.MF'.
> Could not set file mode 644 on '/mnt/m/google_test_environment/udmi/validator/build/tmp/shadowJar/MANIFEST.MF'.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 24s
2 actionable tasks: 2 executed
udmi/bin/validator: line 81: bin/check_version: No such file or directory
how to solve this issue?
Piruthivi, are you on the udmi-discuss@ email list? https://groups.google.com/g/udmi-discuss -- practically speaking, that's the right place to ask this since the exposure is much higher. There are people there who do use Windows and WSL to do work, so I'm sure there's an answer. Personally I don't know much since I don't have any effective exposure to Windows. I've forwarded your message there, but you would need to join the group or look at the discussion online to find the answer!