JcloudsClientProvider is required in runtime by modelreader. #227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
model-reader feature depends on the openstack one. So, whenever the model-reader feature is started inside a karaf container, the openstack feature gets started as well.
Since model-reader-itest project did not have any dependency to jclouds-client-provider, mvn decided there's no problem to compile it before the jclouds-client-provider bundle. Here is the compilation order.
09-Jul-2015 13:59:40 [INFO] Reactor Summary:
09-Jul-2015 13:59:40 [INFO] .....
......................................................................
09-Jul-2015 13:59:40 [INFO] MQNaaS :: OpenStack ................................ SUCCESS [ 0.122 s]
09-Jul-2015 13:59:40 [INFO] MQNaaS :: OpenStack API ............................ SUCCESS [ 2.297 s]
09-Jul-2015 13:59:40 [INFO] MQNaaS :: Generic Resource Model Reader ............ SUCCESS [ 0.089 s]
09-Jul-2015 13:59:40 [INFO] MQNaaS :: Generic Model Reader ..................... SUCCESS [ 4.701 s]
09-Jul-2015 13:59:40 [INFO] MQNaaS :: ModelReader Integration Tests ............ FAILURE [01:14 min]
09-Jul-2015 13:59:40 [INFO] MQNaaS :: JClouds Client Provider .................. SKIPPED
09-Jul-2015 13:59:40 [INFO] MQNaaS :: OpenStack Implementation ................. SKIPPED
So, if you have a clean m2 repository, model-reader-integration test will try to start the model-reader feature, but it won't find all required bundles in m2 (model-reader -> openstack -> jclodusClientProvider, which is the one producing the error).
With this patch, we assure the jclouds-client-provider is compiled first.