[
https://issues.apache.org/jira/browse/HBASE-9083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13773038#comment-13773038
]
Michael Webster commented on HBASE-9083:
----------------------------------------
There are warnings about both "Used declared dependencies found" and "Unused
declared dependencies found". So I should add the used dependencies back in,
and remove the unused ones from the poms that list them? Here are the warnings
from mvn dependency:analyze:
[WARNING] Used undeclared dependencies found:
[WARNING] commons-lang:commons-lang:jar:2.4:compile
[WARNING] Unused declared dependencies found:
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] Unused declared dependencies found:
[WARNING]
com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] junit:junit:jar:4.11:compile
[WARNING] org.mockito:mockito-all:jar:1.9.0:test
[WARNING] Used undeclared dependencies found:
[WARNING] commons-lang:commons-lang:jar:2.4:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-common:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-common:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-protocol:jar:0.97.0-SNAPSHOT:compile
[WARNING] Unused declared dependencies found:
[WARNING]
com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] org.mockito:mockito-all:jar:1.9.0:test
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-hadoop-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
org.apache.hbase:hbase-hadoop-compat:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hadoop:hadoop-test:jar:1.2.1:test
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] org.mockito:mockito-all:jar:1.9.0:test
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-common:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-hadoop-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-hadoop1-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] org.mockito:mockito-all:jar:1.9.0:test
13/09/20 10:42:36 INFO mortbay.log: Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
[WARNING] Used undeclared dependencies found:
[WARNING] org.slf4j:slf4j-api:jar:1.6.4:compile
[WARNING] org.codehaus.jackson:jackson-core-asl:jar:1.8.8:compile
[WARNING] commons-lang:commons-lang:jar:2.5:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-common:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-protocol:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-client:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-prefix-tree:jar:0.97.0-SNAPSHOT:runtime
[WARNING] org.apache.hbase:hbase-common:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-hadoop-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
org.apache.hbase:hbase-hadoop-compat:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-hadoop1-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
org.apache.hbase:hbase-hadoop1-compat:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] commons-codec:commons-codec:jar:1.7:compile
[WARNING] org.codehaus.jackson:jackson-xc:jar:1.8.8:compile
[WARNING] tomcat:jasper-compiler:jar:5.5.23:runtime
[WARNING] tomcat:jasper-runtime:jar:5.5.23:runtime
[WARNING] org.codehaus.jettison:jettison:jar:1.3.1:test
[WARNING] org.cloudera.htrace:htrace-zipkin:jar:2.01:compile
[WARNING] Used undeclared dependencies found:
[WARNING] commons-lang:commons-lang:jar:2.5:compile
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-common:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-common:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-protocol:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-client:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-server:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-server:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-hadoop-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
org.apache.hbase:hbase-hadoop-compat:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-hadoop1-compat:jar:0.97.0-SNAPSHOT:compile
[WARNING]
org.apache.hbase:hbase-hadoop1-compat:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.cloudera.htrace:htrace-zipkin:jar:2.01:compile
[WARNING]
com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
[WARNING] log4j:log4j:jar:1.2.17:compile
[WARNING] org.mockito:mockito-all:jar:1.9.0:test
[WARNING] Unused declared dependencies found:
[WARNING] org.apache.hbase:hbase-common:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-common:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hbase:hbase-protocol:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-client:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-server:jar:0.97.0-SNAPSHOT:compile
[WARNING] org.apache.hbase:hbase-server:test-jar:tests:0.97.0-SNAPSHOT:test
[WARNING] org.apache.hadoop:hadoop-test:jar:1.2.1:test
[WARNING] log4j:log4j:jar:1.2.17:compile
> Downstreamers have to include a load of runtime dependencies
> ------------------------------------------------------------
>
> Key: HBASE-9083
> URL: https://issues.apache.org/jira/browse/HBASE-9083
> Project: HBase
> Issue Type: Sub-task
> Components: build
> Reporter: stack
> Labels: noob
> Fix For: 0.98.0
>
> Attachments: HBASE_9083.patch
>
>
> Here is example from 0.95. Downstream project includes hbase-client ONLY.
> To run the downstream project, here are the runtime dependencies currently.
> This is hadoop1.
> {code}
> java -cp
> target/client-1.0-SNAPSHOT.jar:/Users/stack/.m2/repository/org/apache/hbase/hbase-client/0.95.2-hadoop1-SNAPSHOT/hbase-client-0.95.2-hadoop1-SNAPSHOT.jar:/Users/stack/.m2/repository/org/apache/hbase/hbase-common/0.95.2-hadoop1-SNAPSHOT/hbase-common-0.95.2-hadoop1-SNAPSHOT.jar:/Users/stack/.m2/repository/org/apache/hadoop/hadoop-core/1.1.2/hadoop-core-1.1.2.jar:/Users/stack/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/stack/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar:/Users/stack/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/stack/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/stack/.m2/repository/org/apache/hbase/hbase-protocol/0.95.2-hadoop1-SNAPSHOT/hbase-protocol-0.95.2-hadoop1-SNAPSHOT.jar:/Users/stack/.m2/repository/org/apache/zookeeper/zookeeper/3.4.5/zookeeper-3.4.5.jar:/Users/stack/.m2/repository/org/slf4j/slf4j-api/1.6.4/slf4j-api-1.6.4.jar:/Users/stack/.m2/repository/com/google/guava/guava/12.0.1/guava-12.0.1.jar:/Users/stack/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.8/jackson-mapper-asl-1.8.8.jar:/Users/stack/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.8/jackson-core-asl-1.8.8.jar:/Users/stack/.m2/repository/org/cloudera/htrace/htrace/1.50/htrace-1.50.jar:/Users/stack/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/stack/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar
> org.hbase.downstream.Client
> {code}
> Thats:
> {code}
> hbase-client
> base-common
> hbase-protocol
> hadoop-core
> commons-logging
> protobuf
> commons-lang
> commons-configuration
> zookeeper
> slf4j-api (AND commons-logging!)
> guava
> jackson-mapper-asl
> jackson-core-asl
> htrace
> slf4j-log4j12
> slf4j
> {code}
> Most of the above come in because of hadoop and zk (zk wants slf4j).
> Can we shed any of these?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira