Shawn
09/18/2017, 2:26 PMFoo
├── FooCore
│ ├── dependency-reduced-pom.xml
│ ├── pom.xml
│ ├── src
│ └── target
├── FooData
│ ├── pom.xml
│ └── src
├── FooService
│ ├── pom.xml
│ ├── src
│ └── target
└── pom.xml
I’m using dropwizard, which seems to prefer shaded jars, so I’ve got maven-shade-plugin in my root pom’s <build> section. I’ve also got <build> sections in the child poms that declare `sourceDirectory`; it seems that maven doesn’t include any of my Kotlin classes if I don’t do that.
The project ostensibly builds fine, but when I run my jar and try to hit the service w/ a request, I get a bizarre java.lang.AbstractMethodError: Method org/eclipse/jetty/server/HttpChannelOverHttp.contentComplete()Z is abstract.
On the advice of another K slack member, I added the maven-enforcer-plugin, and surprisingly enough, it doesn’t complain about Jetty, but it does complain about “Dependency convergence” errors for the two dependencies I’ve declared in the root pom, kotlin-stdlib-jre8 and slf4j-api. Really not sure where to go from here