Comments (8)
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.
@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.
from cache-example.
@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.
from cache-example.
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.
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.
@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)
- Please use the README template from booster-archetype HOT 2
- Can't be deployed on OCP v4 HOT 1
- Migrate Spring Boot example to use GitHub CI
- Run Spring Boot example on Kubernetes HOT 1
- Cache Spring Boot Example - Add Helm deployment
- enforce TTL of 5 seconds for the "cute name" cache entry
- Use generated Helm charts by Dekorate in CI
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cache-example.