You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've encountered some minor issue when working with additional ConfigStores. I've created a little example app using the Kubernetes ConfigMap Store but the issue applies for all additional config stores.
According to the documentation one has to include both the vertx-configand the vertx-config-kubernetes-configmap artifacts as dependencies.
When you run the my example app on the broken branch via the maven exec-plugin or via a main-method, everything works fine. However if you run the fat jar I get an exception:
The solution for me was to remove the vertx-config dependency (see the fixed branch). Now the fat jar runs just fine.
So my question is: Is this a bug or just something that the documentation should be more explicit about? Unfortunately I am not very familiar with ServiceLoaders and how that connects to the fat jar packaging. But I'd be glad to help out with a PR if you can point me into the right direction 👍
Thanks for the great work!
BTW: I encountered the exact same behavior on JDK 1.8 and JDK 11 (MacOs 10.14.2, Maven 3.5.4). Also changing the compilation target to 11 and upgrading the maven-shade-plugin did not change anything.
The text was updated successfully, but these errors were encountered:
Ahh, very cool I just tried it and it works perfectly fine, thanks a lot!
I generated the project via start.vertx.io which did not use this plugin...yet? There is an open issue about this: vert-x3/vertx-starter#39. Maybe I can help out with a PR there.
There is also one pending PR in the vertx-maven-starter repo: vert-x3/vertx-maven-starter#3.
Hi everybody,
I've encountered some minor issue when working with additional ConfigStores. I've created a little example app using the
Kubernetes ConfigMap Store
but the issue applies for all additional config stores.According to the documentation one has to include both the
vertx-config
and thevertx-config-kubernetes-configmap
artifacts as dependencies.When you run the my example app on the
broken
branch via the maven exec-plugin or via a main-method, everything works fine. However if you run the fat jar I get an exception:mvn clean package && java -jar target/config-demo-1.0.0-SNAPSHOT-fat.jar
The solution for me was to remove the
vertx-config
dependency (see thefixed
branch). Now the fat jar runs just fine.So my question is: Is this a bug or just something that the documentation should be more explicit about? Unfortunately I am not very familiar with ServiceLoaders and how that connects to the fat jar packaging. But I'd be glad to help out with a PR if you can point me into the right direction 👍
Thanks for the great work!
BTW: I encountered the exact same behavior on JDK 1.8 and JDK 11 (MacOs 10.14.2, Maven 3.5.4). Also changing the compilation target to 11 and upgrading the maven-shade-plugin did not change anything.
The text was updated successfully, but these errors were encountered: