- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在应用程序中使用 guava 23-5 和 hbase-testing-util
1.2.0。这会导致我的应用程序发生冲突,并在我尝试使用 startMiniCluster()
时抛出以下异常。有人可以告诉我如何解决这个问题吗?
java.lang.NoSuchMethodError: com.google.common.base.Objects.toStringHelper(Ljava/lang/Object;)Lcom/google/common/base/Objects$ToStringHelper;
at org.apache.hadoop.metrics2.lib.MetricsRegistry.toString(MetricsRegistry.java:406)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at org.apache.hadoop.ipc.metrics.RpcMetrics.<init>(RpcMetrics.java:74)
at org.apache.hadoop.ipc.metrics.RpcMetrics.create(RpcMetrics.java:80)
at org.apache.hadoop.ipc.Server.<init>(Server.java:2252)
at org.apache.hadoop.ipc.RPC$Server.<init>(RPC.java:1042)
at org.apache.hadoop.ipc.ProtobufRpcEngine$Server.<init>(ProtobufRpcEngine.java:535)
at org.apache.hadoop.ipc.ProtobufRpcEngine.getServer(ProtobufRpcEngine.java:510)
at org.apache.hadoop.ipc.RPC$Builder.build(RPC.java:887)
at org.apache.hadoop.hdfs.server.namenode.NameNodeRpcServer.<init>(NameNodeRpcServer.java:341)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createRpcServer(NameNode.java:695)
at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:672)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:838)
at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:817)
at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1538)
at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNode(MiniDFSCluster.java:1114)
at org.apache.hadoop.hdfs.MiniDFSCluster.createNameNodesAndSetConf(MiniDFSCluster.java:985)
at org.apache.hadoop.hdfs.MiniDFSCluster.initMiniDFSCluster(MiniDFSCluster.java:814)
at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:745)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:585)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:987)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:868)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:862)
at org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:806)
at com.vnera.storage.metrics.HBaseTestTableFactory.<init>(HBaseTestTableFactory.java:24)
at com.vnera.storage.metrics.HBaseTests.testCounterTimetamp(HBaseTests.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
版本
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<version>1.2.0-cdh5.7.0</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>23.5-jre</version>
</dependency>
编辑如前所述here我尝试在名为 shadedcdh
的新模块中隐藏 Hbase 依赖项。 pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>main</artifactId>
<groupId>com.vnera</groupId>
<version>0.001-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>shaded-cdh</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-testing-util</artifactId>
<version>1.2.0-cdh5.7.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common</artifactId>
<version>${hadoop.version}</version>
</dependency>
<dependency>
<groupId>org.apache.hbase</groupId>
<artifactId>hbase-client</artifactId>
<!-- This must stay in sync with hbase version we deploy. -->
<version>1.2.0-cdh5.7.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>shaded.com.google.common</shadedPattern>
</relocation>
</relocations>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" />
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>cloudera</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
</repositories>
</project>
然后从模块中排除 hbase 和 hadoop 依赖项,并添加 shadedcdh
作为依赖项。 maven的依赖树如下所示
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building metrics 0.001-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ arkin-storage-metrics ---
[INFO] com.vnera:arkin-storage-metrics:jar:0.001-SNAPSHOT
[INFO] +- com.vnera:storage-common:jar:0.001-SNAPSHOT:compile
[INFO] | +- net.spy:spymemcached:jar:2.11.4:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
[INFO] +- com.vnera:core-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- com.vnera:meta-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- com.vnera:denorm-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- com.vnera:flow-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- org.reflections:reflections:jar:0.9.9-RC1:compile
[INFO] | | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.6.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.3:compile
[INFO] | +- commons-validator:commons-validator:jar:1.6:compile
[INFO] | | \- commons-digester:commons-digester:jar:1.8.1:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | \- org.unitils:unitils-core:jar:3.3:compile
[INFO] | \- ognl:ognl:jar:2.6.9:compile
[INFO] +- com.vnera:data-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- com.vnera:base-model:jar:0.001-SNAPSHOT:compile
[INFO] | +- commons-io:commons-io:jar:2.4:compile
[INFO] | \- org.ardverk:patricia-trie:jar:0.7-SNAPSHOT:compile
[INFO] +- com.vnera:shaded-cdh:jar:0.001-SNAPSHOT:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- com.jcraft:jsch:jar:0.1.54:compile
[INFO] +- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- com.vnera:common:jar:0.001-SNAPSHOT:compile
[INFO] | +- com.koloboke:koloboke-api-jdk8:jar:1.0.0:compile
[INFO] | +- com.koloboke:koloboke-impl-jdk8:jar:1.0.0:runtime
[INFO] | | \- com.koloboke:koloboke-impl-common-jdk8:jar:1.0.0:runtime
[INFO] | +- it.unimi.dsi:fastutil:jar:8.1.0:compile
[INFO] | +- com.amazonaws:aws-java-sdk:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-pinpoint:jar:1.11.77:compile
[INFO] | | | \- com.amazonaws:jmespath-java:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-xray:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-opsworkscm:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-support:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-simpledb:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-servicecatalog:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-servermigration:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-route53:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-s3:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-importexport:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-sts:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-sqs:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-rds:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-redshift:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-glacier:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-iam:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elasticloadbalancingv2:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-emr:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elasticache:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-ec2:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-sns:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-budgets:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-logs:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-events:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-directconnect:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-kinesis:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-opsworks:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-ses:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-kms:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-config:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-lambda:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-ecs:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-ecr:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-ssm:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-workspaces:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-directory:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-efs:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-codecommit:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-elasticsearch:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-waf:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-marketplacecommerceanalytics:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-inspector:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-iot:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-api-gateway:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-acm:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-gamelift:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-dms:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-marketplacemeteringservice:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-cognitoidp:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-discovery:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-applicationautoscaling:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-snowball:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-rekognition:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-polly:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-lightsail:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-stepfunctions:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-health:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-codebuild:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-appstream:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-shield:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-batch:jar:1.11.77:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-core:jar:1.11.77:compile
[INFO] | | | \- software.amazon.ion:ion-java:jar:1.0.1:compile
[INFO] | | +- com.amazonaws:aws-java-sdk-models:jar:1.11.77:compile
[INFO] | | \- com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22:compile
[INFO] | +- org.springframework:spring-core:jar:4.3.7.RELEASE:compile
[INFO] | +- com.vnera:utility:jar:0.001-SNAPSHOT:compile
[INFO] | +- joda-time:joda-time:jar:2.9.4:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] | +- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] | +- log4j:log4j:jar:1.2.17:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | +- commons-configuration:commons-configuration:jar:1.6:compile
[INFO] | | \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
[INFO] | +- com.codahale.metrics:metrics-core:jar:3.0.1:compile
[INFO] | +- com.codahale.metrics:metrics-healthchecks:jar:3.0.1:compile
[INFO] | +- com.ning:async-http-client:jar:1.9.38:compile
[INFO] | +- com.esotericsoftware:kryo-shaded:jar:3.0.0:compile
[INFO] | | +- com.esotericsoftware:minlog:jar:1.3.0:compile
[INFO] | | \- org.objenesis:objenesis:jar:2.1:compile
[INFO] | +- com.codahale.metrics:metrics-graphite:jar:3.0.1:compile
[INFO] | +- com.librato.metrics:metrics-librato:jar:4.1.2.4:compile
[INFO] | | +- com.librato.metrics:librato-java:jar:1.0.13:compile
[INFO] | | \- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
[INFO] | +- org.mockito:mockito-all:jar:1.10.19:compile
[INFO] | +- org.powermock:powermock-module-junit4:jar:1.6.4:compile
[INFO] | | \- org.powermock:powermock-module-junit4-common:jar:1.6.4:compile
[INFO] | | +- org.powermock:powermock-core:jar:1.6.4:compile
[INFO] | | \- org.powermock:powermock-reflect:jar:1.6.4:compile
[INFO] | +- org.powermock:powermock-api-mockito:jar:1.6.4:compile
[INFO] | | +- org.mockito:mockito-core:jar:1.10.19:compile
[INFO] | | \- org.powermock:powermock-api-support:jar:1.6.4:compile
[INFO] | +- com.vmw.vli:licensecheck:jar:1.4-RELEASE:compile
[INFO] | +- org.bouncycastle:bcprov-jdk15on:jar:1.57:compile
[INFO] | +- org.bouncycastle:bcpkix-jdk15on:jar:1.57:compile
[INFO] | +- commons-logging:commons-logging-api:jar:1.1:compile
[INFO] | +- org.coursera:metrics-datadog:jar:1.1.13:compile
[INFO] | | +- org.apache.httpcomponents:fluent-hc:jar:4.3.6:compile
[INFO] | | \- com.datadoghq:java-dogstatsd-client:jar:2.3:compile
[INFO] | +- com.vnera:reg-common:jar:0.001-SNAPSHOT:compile
[INFO] | \- com.vnera:rpc-saasinterface:jar:0.001-SNAPSHOT:compile
[INFO] +- org.elasticsearch:elasticsearch:jar:2.3.1:compile
[INFO] | +- org.apache.lucene:lucene-core:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-backward-codecs:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-analyzers-common:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-queries:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-memory:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-highlighter:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-queryparser:jar:5.5.0:compile
[INFO] | | \- org.apache.lucene:lucene-sandbox:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-suggest:jar:5.5.0:compile
[INFO] | | \- org.apache.lucene:lucene-misc:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-join:jar:5.5.0:compile
[INFO] | | \- org.apache.lucene:lucene-grouping:jar:5.5.0:compile
[INFO] | +- org.apache.lucene:lucene-spatial:jar:5.5.0:compile
[INFO] | | +- org.apache.lucene:lucene-spatial3d:jar:5.5.0:compile
[INFO] | | \- com.spatial4j:spatial4j:jar:0.5:compile
[INFO] | +- org.elasticsearch:securesm:jar:1.0:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.6.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.6.2:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.15:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.6.2:compile
[INFO] | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.2:compile
[INFO] | +- com.tdunning:t-digest:jar:3.0:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
[INFO] | +- commons-cli:commons-cli:jar:1.3.1:compile
[INFO] | \- com.twitter:jsr166e:jar:1.1.0:compile
[INFO] +- com.opencsv:opencsv:jar:3.7:compile
[INFO] +- org.codehaus.groovy:groovy-all:jar:2.4.4:compile
[INFO] +- org.codehaus.jettison:jettison:jar:1.3.8:compile
[INFO] | \- stax:stax-api:jar:1.0.1:compile
[INFO] +- com.jayway.jsonpath:json-path:jar:0.9.1:compile
[INFO] | \- net.minidev:json-smart:jar:1.2:compile
[INFO] +- com.google.guava:guava:jar:23.5-jre:compile
[INFO] | +- org.checkerframework:checker-qual:jar:2.0.0:compile
[INFO] | +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
[INFO] | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] +- com.google.code.findbugs:jsr305:jar:2.0.3:provided
[INFO] +- org.apache.commons:commons-lang3:jar:3.4:compile
[INFO] +- org.glassfish.jersey.core:jersey-client:jar:2.23.2:compile
[INFO] | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
[INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.23.2:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.2:compile
[INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | +- org.glassfish.hk2:hk2-api:jar:2.5.0-b05:compile
[INFO] | | +- org.glassfish.hk2:hk2-utils:jar:2.5.0-b05:compile
[INFO] | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b05:compile
[INFO] | +- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b05:compile
[INFO] | \- org.glassfish.hk2:hk2-locator:jar:2.5.0-b05:compile
[INFO] | \- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] +- commons-net:commons-net:jar:3.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] +- org.apache.commons:commons-jexl:jar:2.1.1:compile
[INFO] +- com.google.inject:guice:jar:3.0:compile
[INFO] +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] +- com.googlecode.protobuf-java-format:protobuf-java-format:jar:1.2:compile
[INFO] +- org.apache.thrift:libthrift:jar:0.9.1:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
[INFO] +- com.typesafe.akka:akka-actor_2.11:jar:2.5.8:compile
[INFO] | +- com.typesafe:config:jar:1.3.2:compile
[INFO] | \- org.scala-lang.modules:scala-java8-compat_2.11:jar:0.7.0:compile
[INFO] +- org.quartz-scheduler:quartz:jar:2.2.1:compile
[INFO] | \- c3p0:c3p0:jar:0.9.1.1:compile
[INFO] +- com.github.rholder:guava-retrying:jar:1.0.5:compile
[INFO] +- org.scala-lang:scala-library:jar:2.11.8:compile
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] \- org.assertj:assertj-core:jar:3.5.2:test
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.091 s
[INFO] Finished at: 2018-01-20T11:56:42+05:30
[INFO] Final Memory: 27M/445M
[INFO] ------------------------------------------------------------------------
但我仍然遇到同样的错误。
最佳答案
hbase-common@1.2.0
具有古老的 Guava 依赖(12.0.1),会出现问题(某些方法,例如 Guava 12.0.1 和 23.5 之间的 Objects#toStringHelper
were (re)moved)。
您可以尝试hbase-testing-util@2.0.0-alpha4
(并等待2.0.0版本),该版本似乎没有这个问题。
关于java - Guava 23.5 与 hbase-testing-util 1.2 冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48140339/
我的工作是将每条记录写入 Hadoop 映射中的 DynamoDB。 我无法使用具有 httpclient-4.2.5.jar 和 httpcore-4.2.5.jar 的 Hadoop 2.6 运行
我在 JavaScript 中嵌套了循环开关,例如: for (var i = 0; i < checkBoxIds.length; i++) { if ($('#' + checkB
我有一个文件夹被重命名的分支。现在我正在尝试合并从主干到这个分支的更改,但是在主干中修改的文件仍然在原始文件夹名称下,因此 svn 引发了树冲突。我该如何解决这个问题? 该文件夹已使用 svn ren
我在使用 jquery 暴露插件和 Masked 输入插件时遇到了问题。问题是它们都占用 $.mask 函数,从而导致冲突。但我非常需要这两个插件一起工作。我会将其中一个中的 $.mask 重命名为.
我正在尝试为我所有的 INPUT 元素做一个简单的 :focus 效果,就像这样: INPUT:focus { border-color: orange; } 这很好用,直到我将这段 CSS 添加到样
我是 javascript 的新手。 在 wordpress 上工作,我在自定义 js 中为我的主题输入了以下函数: document.getElementsByName("empty_cart")[
为什么有些 javascript 会与其他的发生冲突?我的意思是我一直在为图片库使用 javascript 代码,然后尝试在 jquery 中获取文本水印。为什么在使用 jquery 之后,画廊完全消
是否可以根据已知的输入值创建 MD5 碰撞? 所以例如我有输入字符串 abc与 MD5 900150983cd24fb0d6963f7d28e17f72 . 现在我想将字节添加到字符串 def获得相同
我在我的项目中使用原型(prototype): NodeParser.prototype.getChildren = function(parentContainer) { return fl
根据我对 merge 冲突的理解,当两个人更改了同一文件和/或修改了该文件中的同一行时,就会发生 merge 冲突。所以当我做一个 git pull origin master 我期望 merge 冲
iPad 上 Mobile Safari 中的 HTML5 模板。带 iScroll 的 Div 工作正常。 if/else 语句中还包含一个 jQuery 函数。该函数测试用户是否在 iScroll
我一直在尝试使 2 个脚本(1 个 mootol 和 1 个 jquery)在同一页面上工作,但没有成功。我一直在研究许多论坛等,但我仍然无法使这两个脚本同时工作。 这就是它在我的标题中的样子: /w
我想克隆带标题的问号。一切正常,但是当我将鼠标悬停在新问号上时,第一个问号上会出现工具提示。有什么想法吗? 我正在使用 jQuery 和醉酒的工具提示。 Demo here click here
好吧,我已经在一个 friend 的网站上工作了一段时间了。我的编码技能......值得怀疑,而且我遇到了很多问题。 目前我网站上的 jQuery 停止工作了,我找不到原因,并且我已尽一切努力让它工作
我想使用一个文件来保存所有#define 和常量:示例 #ifndef CONSTANTS_H_ #define CONSTANTS_H_ #include //OVERALL DEFS
我在我的表单中的所有 HTML 下都有一些验证码,这似乎阻止了我的复选框验证码的工作,一旦我在我的 HTML 下的代码周围添加/* */(使其不活动),我就得出了这个结论) 复选框验证代码开始正常工作
我是新手。我的页面上有两个 javascript/jquery。如果我使用第一个脚本,第二个脚本将不起作用。如果我删除第一个脚本,第二个脚本就可以正常工作。我不知道如何解决这个问题。我知道有一个“无冲
我是 Bison 新手,在处理 Shift/Reduce 冲突时遇到了麻烦... 我正在为C语言编写语法规则:ID是标识变量的标记,我编写此规则是为了确保即使将标识符写在括号中,也可以考虑它。 id
我目前正在使用 LibGdx 开发我的第一个 Android 游戏项目。这是一款 2D 迷宫游戏,您可以使用触摸输入从其中一个入口到其中一个导出“画出”一条线。世界本身是一个 TiledMap,目前仅
我正在尝试通过 javascript 完成表单验证,并在 #form# 标记中放置一个要执行的 .py 文件操作。但问题是,当我提交数据后,它不会重定向到 .py 操作。所以我摆脱了 preventd
我是一名优秀的程序员,十分优秀!