-
Bug
-
Resolution: Obsolete
-
Blocker
-
2.7.6.SP1.GA
-
None
-
False
-
None
-
False
-
-
---
Trying to build and deploy Quarkus starter from devfile fails via odo:
[mjurc@tigris Playground]$ odo create java-quarkus --starter=redhat-product . . . Executing postStart event commands for component java-quarkus-playground-gtgy ✗ Executing init-compile command "mvn -Dmaven.repo.local=/home/user/.m2/repository compile" [2s] ✗ Failed to start component with name "java-quarkus-playground-gtgy". Error: Failed to create the component: unable to execute devfile command init-compile: unable to execute the run command: unable to exec command [/bin/sh -c cd ${PROJECT_SOURCE} && mvn -Dmaven.repo.local=/home/user/.m2/repository compile]: [ERROR] Could not create local repository at /home/user/.m2/repository -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException : error while streaming command: command terminated with exit code 1
It looks like the devfile assumes that default Maven home is going to be at -Dmaven.repo.local=/home/user/.m2/repository, which won't be true for majority of Linux installations.
- relates to
-
QUARKUS-508 Create one or more quarkus devfile v2, ensure odo based workflow
- Closed