apache / druid

Apache Druid: a high performance real-time analytics database.
https://druid.apache.org/
Apache License 2.0
13.46k stars 3.7k forks source link

druid-lookups-cached-single needs stricter dependency rules in pom.xml #3548

Closed drcrallen closed 8 years ago

drcrallen commented 8 years ago
$ ls druid-0.9.3-SNAPSHOT/extensions/druid-lookups-cached-single/
antlr-2.7.7.jar                 jackson-datatype-joda-2.4.6.jar         jetty-setuid-java-1.0.3.jar
aopalliance-repackaged-2.4.0-b31.jar        jackson-jaxrs-base-2.4.6.jar            jetty-util-9.2.13.v20150730.jar
argparse4j-0.6.0.jar                jackson-jaxrs-json-provider-2.4.6.jar       jetty-webapp-9.2.13.v20150730.jar
classmate-1.0.0.jar             jackson-module-afterburner-2.6.3.jar        jetty-xml-9.2.13.v20150730.jar
commons-lang3-3.4.jar               jackson-module-jaxb-annotations-2.4.6.jar   joda-time-2.8.2.jar
dropwizard-configuration-0.9.2.jar      javassist-3.18.1-GA.jar             jsr305-2.0.1.jar
dropwizard-core-0.9.2.jar           javax.annotation-api-1.2.jar            jul-to-slf4j-1.7.12.jar
dropwizard-db-0.9.2.jar             javax.el-3.0.0.jar              log4j-over-slf4j-1.7.12.jar
dropwizard-jackson-0.9.2.jar            javax.inject-2.4.0-b31.jar          logback-classic-1.1.3.jar
dropwizard-jdbi-0.9.2.jar           javax.servlet-api-3.1.0.jar         logback-core-1.1.3.jar
dropwizard-jersey-0.9.2.jar         javax.ws.rs-api-2.0.1.jar           mapdb-1.0.8.jar
dropwizard-jetty-0.9.2.jar          jboss-logging-3.1.3.GA.jar          metrics-annotation-3.1.2.jar
dropwizard-lifecycle-0.9.2.jar          jcl-over-slf4j-1.7.12.jar           metrics-core-3.1.2.jar
dropwizard-logging-0.9.2.jar            jdbi-2.63.1.jar                 metrics-healthchecks-3.1.2.jar
dropwizard-metrics-0.9.2.jar            jersey-bean-validation-2.22.1.jar       metrics-jdbi-3.1.2.jar
dropwizard-servlets-0.9.2.jar           jersey-client-2.22.1.jar            metrics-jersey2-3.1.2.jar
dropwizard-util-0.9.2.jar           jersey-common-2.22.1.jar            metrics-jetty9-3.1.2.jar
dropwizard-validation-0.9.2.jar         jersey-container-servlet-2.22.1.jar     metrics-json-3.1.2.jar
druid-lookups-cached-single-0.9.3-SNAPSHOT.jar  jersey-container-servlet-core-2.22.1.jar    metrics-jvm-3.1.2.jar
guava-16.0.1.jar                jersey-guava-2.22.1.jar             metrics-logback-3.1.2.jar
hibernate-validator-5.1.3.Final.jar     jersey-media-jaxb-2.22.1.jar            metrics-servlets-3.1.2.jar
hk2-api-2.4.0-b31.jar               jersey-metainf-services-2.22.1.jar      osgi-resource-locator-1.0.1.jar
hk2-locator-2.4.0-b31.jar           jersey-server-2.22.1.jar            slf4j-api-1.7.12.jar
hk2-utils-2.4.0-b31.jar             jetty-continuation-9.2.13.v20150730.jar     snakeyaml-1.15.jar
jackson-annotations-2.4.6.jar           jetty-http-9.2.13.v20150730.jar         stringtemplate-3.2.jar
jackson-core-2.4.6.jar              jetty-io-9.2.5.v20141112.jar            tomcat-jdbc-8.0.28.jar
jackson-databind-2.4.6.jar          jetty-security-9.2.5.v20141112.jar      tomcat-juli-8.0.28.jar
jackson-dataformat-yaml-2.6.3.jar       jetty-server-9.2.5.v20141112.jar        validation-api-1.1.0.Final.jar
jackson-datatype-guava-2.4.6.jar        jetty-servlet-9.2.5.v20141112.jar
jackson-datatype-jdk7-2.6.3.jar         jetty-servlets-9.2.5.v20141112.jar

It pulls in a hefty list.

drcrallen commented 8 years ago

I'm not quite sure if this is an improvement or a bug ticket

gianm commented 8 years ago

Would be nice to get this into the 0.9.2 distro so I'm happy calling it a bug :)

b-slim commented 8 years ago

@drcrallen thought the pom file is almost like the cache global one ... is there anything i can remove ?

drcrallen commented 8 years ago

@b-slim you'll have to go through the jars that get included and figure out what is pulling them in (http://maven.apache.org/plugins/maven-dependency-plugin/examples/resolving-conflicts-using-the-dependency-tree.html is helpful)

I suspect there might be one or two major dependency exclusions that are missing that pull in all the other stuff here.

gianm commented 8 years ago

Almost all of the dependencies come from dropwizard-core, pulled in through dropwizard-jdbi.