Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2529

java-quarkus redhat-product starter in v2 devfile is not buildable through odo

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Blocker Blocker
    • 2.7.6.SP2.GA
    • 2.7.6.SP1.GA
    • team/eng
    • None
    • False
    • None
    • False
    • Hide

      Log into OCP, create a namespace, use odo 2.x.

      odo create java-quarkus --starter=redhat-product
      odo push
      
      Show
      Log into OCP, create a namespace, use odo 2.x. odo create java-quarkus --starter=redhat-product odo push
    • ---

      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.

              manderse@redhat.com Max Andersen
              mjurc@redhat.com Michal Jurc
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: