Closed InfoSec812 closed 6 years ago
I tried to work around this by overriding the getDefaultCommand
or getCommandFromManifest
. Neither of these options worked. In the end, I DID find a workaround.. I overrode the main
method as follows:
public static void main(String[] args) {
new MetricsLauncher().dispatch(new String[]{"run", MAIN_VERTICLE});
}
Hi,
Is your class extending Launcher? In that case, yes, the code you write is
required (but this should be documented). If your class does not extend
Launcher but just have a main
method, then no...
2018-04-15 18:32 GMT+02:00 Deven Phillips notifications@github.com:
I tried to work around this by overriding the getDefaultCommand or getCommandFromManifest. Neither of these options worked. In the end, I DID find a workaround.. I overrode the main method as follows:
public static void main(String[] args) { new MetricsLauncher().dispatch(new String[]{"run", MAIN_VERTICLE}); }
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fabric8io/vertx-maven-plugin/issues/142#issuecomment-381419496, or mute the thread https://github.com/notifications/unsubscribe-auth/AAYjfS7hvOLTVWVhZMIhUPODw2XO5NnJks5to3YegaJpZM4TVibY .
Yes, I am extending Launcher so that I can configure Hawkular metrics via Kubernetes configmaps
When using a custom launcher via the
vertx.launcher
property, if you usevertx:package
and try to run the resulting fat-jar it will fail with:Expected results: Running the fat-jar will default to the
run
commandVersion: 1.0.13