Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Warn when hostname already taken on bluemix #114

Open
hughesj opened this issue Dec 14, 2016 · 0 comments
Open

Warn when hostname already taken on bluemix #114

hughesj opened this issue Dec 14, 2016 · 0 comments

Comments

@hughesj
Copy link

hughesj commented Dec 14, 2016

When you select the Bluemix button, the hostname on bluemix is going to be `http://<the name of the project>.eu-gb.mybluemix.net/myLibertyApp/. If that's already taken (by someone else) then the maven build will fail with :

[INFO] Creating application 'LibertyProject'
[WARNING] POST request for "https://api.eu-gb.bluemix.net/v2/routes" resulted in 400 (Bad Request); invoking error handler
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21.098 s
[INFO] Finished at: 2016-12-14T14:36:48+00:00
[INFO] Final Memory: 31M/51M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.cloudfoundry:cf-maven-plugin:1.1.3:push (push) on project myArtifactId: Error while creating application 'LibertyProject'. Error message: '400 Bad Request'. Description: 'The host is taken: LibertyProject' -> [Help 1]
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant