Giter VIP home page Giter VIP logo

Comments (8)

Ladicek avatar Ladicek commented on August 23, 2024 1

I always do mvn clean fabric8:deploy -Popenshift. (Technically, I either always add the clean goal or remove all the target directories manually before running Maven. Because Maven just can't be trusted otherwise.)

from cache-example.

 avatar commented on August 23, 2024 1

@geoand @Ladicek thank you for all the feedback.

I can confirm this works when adding clean.

I have updated here: https://github.com/fabric8-launcher/launcher-documentation/pull/1061/files#diff-dff07e55f4fc1b833e1853819d1ba1a2

from cache-example.

geoand avatar geoand commented on August 23, 2024

from cache-example.

 avatar commented on August 23, 2024

@geoand I cloned this project and used the following instructions to deploy it to minishift (ver 1.15.0) and OpenShift online (us-east-1):
https://github.com/fabric8-launcher/launcher-documentation/pull/1061/files#diff-dff07e55f4fc1b833e1853819d1ba1a2

from cache-example.

geoand avatar geoand commented on August 23, 2024

from cache-example.

geoand avatar geoand commented on August 23, 2024

I can confirm that I am seeing the same error. I do know what's going on but the strange thing is that I haven't seen it before in this context...

from cache-example.

geoand avatar geoand commented on August 23, 2024

Turns out that this is easy enough to fix :)

The command to deploy using fmp should be mvn clean fabric8:deploy -Popenshift (note the addition of clean)
The error we saw due to the fact that you had built a previous version (probably 1.5.10-.x) before building the latest version (1.5.12-1), which meant that there were 2 Spring Boot uber jars in the target directory and Openshift didn't know which one to choose.
So the addition of the maven clean phase makes the process a lot safer (albeit to the expense of deployment speed)

from cache-example.

geoand avatar geoand commented on August 23, 2024

@rhoads-zach If you can confirm that the fix works for you, then it's probably best to update the docs and close this issue

from cache-example.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.