[devworkspaces] maven-based tasks don't work in a container, created from universal developer image #20699
Labels
area/plugins
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
sprint/current
Describe the bug
Maven don't work if it's a part of a task and is launched inside a container, created from universal-developer-image.
The problem faced when working on #20657
Che version
next (development version)
Steps to reproduce
( should use quay.io/devfile/universal-developer-image:ubi8-112f94a )
maven-build-backend
command fronMy Workspace
viewmaven-test-backend
command. It runsbackend/test.sh
script. It's possible to play with command and run them as a task.Maven does not work for steps 3 ( screenshot 1 ) and 4.
maven
container, go tobackend
directory and runmvn install
. Maven must be launched.maven-test-backend
prints a list of environment variables. Runexport
inmaven
container and compare both lists.a) see the differences between PATH variables for both terminals (screenshot 2 and 3)
b)
JAVA_HOME
is missing for `maven-test-backend ( compare by hands when reproduce the bug )Everything is working if
maven
container is created usingquay.io/eclipse/che-java11-maven:next
image.Expected behavior
Working maven for
quay.io/devfile/universal-developer-image:ubi8-112f94a
.Runtime
minikube
Screenshots
Screenshot 1. Launching of
maven-build-backend
command.Screenshot 2. PATH variable for terminal with
maven-test-backend
commandScreenshot 3. PATH variable for
maven
terminal, that has been opened by hands.Installation method
chectl/next
Environment
Linux
Eclipse Che Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: