Should this work?:
java -Xmx384m -Xss512k -XX:+UseCompressedOops
-Ddw.http.port=36227 -Ddw.http.adminPort=36227 -jar dropwizard-example/target/dropwizard-example-0.7.0-SNAPSHOT.jar server dropwizard-example/example.yml
as documented here:
http://dropwizard.codahale.com/manual/core/#configurationI am getting:
Exception in thread "main" com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "http" (class com.example.helloworld.HelloWorldConfiguration), not marked as ignorable (5 known properties: , "server", "template", "database", "defaultName", "logging"])
I'm testing out Heroku and I need to be able to override the configured http ports with environment variables they give me. I get the same error running locally unless I drop the -Ddw.... arguments.
Appreciate the help!