How to register a SPI implementation when running exec:java
问题 I'm trying to make VertX Mertrics work when running via the exec:java Maven plugin. All works as expected when I package the application into a fatjar and run it with java -jar fat.jar -conf config.json -Dvertx.metrics.options.enabled=true When I run it with mvn clean package exec:java -DskipTests I see: 2016-03-22 18:39:58.833 WARN i.v.c.i.VertxImpl:348 - Metrics has been set to enabled but no VertxMetricsFactory found on classpath I tried several approaches: adding io.vertx:vertx-dropwizard