Hello
My first dropwizard application works great in intellij when i run/debug with the appropriate commandline args (server api.yaml), however when I package everything up into a fat jar I get the following error:
user@server:~/api$ java -jar api-jar-with-dependencies.jar server api.yaml
api.yaml has an error:
* Failed to parse configuration at: server.connector; Could not resolve type id 'http' into a subtype of [simple type, class io.dropwizard.jetty.ConnectorFactory]: known type ids = [ConnectorFactory]
at [Source: N/A; line: -1, column: -1] (through reference chain: APIConfiguration["server"]->io.dropwizard.server.SimpleServerFactory["connector"])
I suspect it must be a packaging thing... I've packaged up in maven with this:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>uk.co.epicuri.bookingapi.BookingAPIApplication</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
</plugin>
> mvn clean compile assembly:single
I'm unsure what's actually happening here, can anyone shed any light please? Thanks in advance