WASdev / tool.accelerate.core

No further updates will be made to this repository
Apache License 2.0
10 stars 18 forks source link

Select Bluemix as default, and mvn install doesn't deploy to Bluemix #113

Open hughesj opened 7 years ago

hughesj commented 7 years ago

By checking the flag I should just have to do:

mvn install -Dcf.org=[your email address] -Dcf.username=[your username] -Dcf.password=[your password]

But I don't get a deployment to Bluemix. To do that I had to add on -P bluemix

katheris commented 7 years ago

This is due to the skipTests profile. When you run mvn install -Dcf.org=[your email address] -Dcf.username=[your username] -Dcf.password=[your password] the build system should have activated the Bluemix profile by default. However, as the skipTests profile is activated due to the skipTests flag not being set the Bluemix profile is deactivated. (As profile activated by default are deactivated as soon as another profile is active.)

So the only way to make it work at the moment is to run mvn install -P bluemix or mvn install -DskipTests. We need to fix this.

katheris commented 7 years ago

This has been partially fixed by pull request #121 however it is not the best outcome. The disadvantage of the current behaviour is having to specify -Pbluemix every time you run a build. To get a a better solution we should consider the following: