Skip to content
This repository has been archived by the owner on Jul 23, 2020. It is now read-only.

mvn clean install fails on boosters #2837

Closed
1 task
miteshvp opened this issue Apr 2, 2018 · 7 comments
Closed
1 task

mvn clean install fails on boosters #2837

miteshvp opened this issue Apr 2, 2018 · 7 comments

Comments

@miteshvp
Copy link

miteshvp commented Apr 2, 2018

Affected boosters:

  • VertX Healthcheck

When launching mvn build command from OSIO (openshift.io) Che Terminal it fails with the error - Full Stacktrace

Steps Performed for Che Terminal

  1. Go to new launcher experience
  2. Create an quickstart application
  3. Open Che workspace
  4. execute cd <project-root-dir>
  5. execute mvn clean install -Popenshift,openshift-it

Possible Resolution

Setting Maven Artifact with a hyphen - instead of a dot . should solve this. See below snaphsot
image

@invincibleJai
Copy link
Collaborator

tried with @miteshvp providing Maven Artifact as d4-346 as suggested but looks like there is some issue with access

[ERROR] Failed to execute goal io.fabric8:fabric8-maven-plugin:3.5.38:build (fmp) on project d4-345: Failed to execute the build: Unable to build the image using the OpenShift build service: Failure executing: GET at
: https://kubernetes.default.svc/apis/build.openshift.io/v1/namespaces/jakumar-che/buildconfigs/d4-345-s2i. Message: Forbidden!Configured service account doesn't have access.

screen shot 2018-04-02 at 3 11 19 pm

@animuk something you should have a look at.

@bartoszmajsak
Copy link
Contributor

Which account and namespace are used when you are in the terminal? It should be as specified redhat-developer/rh-che#541. I think this would be working with Che 6 (what you can see from the discussion there), otherwise, with Che 5, you have to login first to your user namespace.

@invincibleJai
Copy link
Collaborator

@bartoszmajsak This I observed in new launcher wizard flow. Not sure about the version of Che I just followed the steps as provided by @miteshvp above, in help-> about can see as below

screen shot 2018-04-02 at 3 56 20 pm

@bartoszmajsak
Copy link
Contributor

This might be Che 5. See steps in https://groups.google.com/d/msg/fabric8-launcher/NypXPuyoCrg/iscd40_SCgAJ, especially the one "open codebase in Che and run tests from there" - that's a workaround before we have Che 6.

And also please read the discussion in the issue I linked above for better understanding.

@miteshvp
Copy link
Author

miteshvp commented Apr 2, 2018

@invincibleJai - can you perform the below steps again

  1. Open Che Console
  2. In the terminal window cd to project-root dir
  3. execute oc project
  4. execute mvn clean install -Popenshift,openshift-it

see if it helps.

@invincibleJai
Copy link
Collaborator

invincibleJai commented Apr 2, 2018

Thanks @bartoszmajsak @miteshvp https://groups.google.com/d/msg/fabric8-launcher/NypXPuyoCrg/iscd40_SCgAJ helps and works as well :)

Steps I performed :

  1. cd to project-root dir
  2. oc login
  3. oc project "your_username"
  4. mvn clean install -Popenshift,openshift-it

screen shot 2018-04-02 at 4 47 20 pm

@invincibleJai
Copy link
Collaborator

@miteshvp changes suggested by you are in prod, am closing it. Please reopen if you still see it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants