• Failure to find org.glassfish:javax.el:pom:3.0.1-b08-SNAPSHOT in https://repository.apache.org/snapshots was cached in the local repository,


    Failure to find org.glassfish:javax.el:pom:3.0.1-b08-SNAPSHOT in xxx

    问题描述:

      在进行程序编译编译的时候发生通过pom下载文件之后进行编译报错: 

     看到这个问题首要想到的就是,可能jar冲突了,查看一下项目的mvn依赖情况,找到这个包(javax.el)引用的地方:

    问题分析: 

    IDEA终端执行命令:mvn dependency:tree

     得到如下结果:

    [INFO] Scanning for projects...
    [WARNING] 
    [WARNING] Some problems were encountered while building the effective model for com.winner.phoenix:hky_Spark:jar:1.0-SNAPSHOT
    [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 238, column 21
    [WARNING] 
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING] 
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING] 
    [INFO] 
    [INFO] --------------------< com.winner.phoenix:hky_Spark >--------------------
    [INFO] Building hky_Spark 1.0-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b07-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b08-SNAPSHOT is missing, no dependency information available
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b11-SNAPSHOT is missing, no dependency information available
    [INFO] 
    [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ hky_Spark ---
    [INFO] com.winner.phoenix:hky_Spark:jar:1.0-SNAPSHOT
    [INFO] +- io.delta:delta-core_2.11:jar:0.3.0:compile
    [INFO] |  - org.scala-lang:scala-library:jar:2.11.12:compile
    [INFO] +- org.apache.hadoop:hadoop-common:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hadoop:hadoop-annotations:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  - jdk.tools:jdk.tools:jar:1.8:system
    [INFO] |  +- com.google.guava:guava:jar:28.0-jre:compile
    [INFO] |  |  +- com.google.guava:failureaccess:jar:1.0.1:compile
    [INFO] |  |  +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
    [INFO] |  |  +- org.checkerframework:checker-qual:jar:2.8.1:compile
    [INFO] |  |  +- com.google.errorprone:error_prone_annotations:jar:2.3.2:compile
    [INFO] |  |  +- com.google.j2objc:j2objc-annotations:jar:1.3:compile
    [INFO] |  |  - org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
    [INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
    [INFO] |  +- org.apache.commons:commons-math3:jar:3.1.1:compile
    [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
    [INFO] |  |  - org.apache.httpcomponents:httpcore:jar:4.4.4:compile
    [INFO] |  +- commons-codec:commons-codec:jar:1.11:compile
    [INFO] |  +- commons-io:commons-io:jar:2.5:compile
    [INFO] |  +- commons-net:commons-net:jar:3.6:compile
    [INFO] |  +- commons-collections:commons-collections:jar:3.2.2:compile
    [INFO] |  +- org.eclipse.jetty:jetty-server:jar:9.3.24.v20180605:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-http:jar:9.3.24.v20180605:compile
    [INFO] |  |  - org.eclipse.jetty:jetty-io:jar:9.3.24.v20180605:compile
    [INFO] |  +- org.eclipse.jetty:jetty-util:jar:9.3.24.v20180605:compile
    [INFO] |  +- org.eclipse.jetty:jetty-servlet:jar:9.3.24.v20180605:compile
    [INFO] |  |  - org.eclipse.jetty:jetty-security:jar:9.3.24.v20180605:compile
    [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:9.3.24.v20180605:compile
    [INFO] |  |  - org.eclipse.jetty:jetty-xml:jar:9.3.24.v20180605:compile
    [INFO] |  +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
    [INFO] |  +- com.sun.jersey:jersey-core:jar:1.19:compile
    [INFO] |  |  - javax.ws.rs:jsr311-api:jar:1.1.1:compile
    [INFO] |  +- com.sun.jersey:jersey-servlet:jar:1.19:compile
    [INFO] |  +- com.sun.jersey:jersey-json:jar:1.19:compile
    [INFO] |  |  +- org.codehaus.jettison:jettison:jar:1.1:compile
    [INFO] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
    [INFO] |  |  |  - javax.xml.bind:jaxb-api:jar:2.2.2:compile
    [INFO] |  |  |     - javax.xml.stream:stax-api:jar:1.0-2:compile
    [INFO] |  |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile
    [INFO] |  |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.2:compile
    [INFO] |  |  - org.codehaus.jackson:jackson-xc:jar:1.9.2:compile
    [INFO] |  +- com.sun.jersey:jersey-server:jar:1.19:compile
    [INFO] |  +- commons-logging:commons-logging:jar:1.1.3:compile
    [INFO] |  +- log4j:log4j:jar:1.2.17:compile
    [INFO] |  +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
    [INFO] |  +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
    [INFO] |  +- org.apache.commons:commons-lang3:jar:3.4:compile
    [INFO] |  +- org.slf4j:slf4j-api:jar:1.7.25:compile
    [INFO] |  +- org.slf4j:slf4j-log4j12:jar:1.7.25:compile
    [INFO] |  +- org.apache.avro:avro:jar:1.7.7:compile
    [INFO] |  |  - com.thoughtworks.paranamer:paranamer:jar:2.3:compile
    [INFO] |  +- com.google.re2j:re2j:jar:1.1:compile
    [INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
    [INFO] |  +- com.google.code.gson:gson:jar:2.2.4:compile
    [INFO] |  +- org.apache.hadoop:hadoop-auth:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  +- com.nimbusds:nimbus-jose-jwt:jar:4.41.1:compile
    [INFO] |  |  +- net.minidev:json-smart:jar:2.3:compile
    [INFO] |  |  |  - net.minidev:accessors-smart:jar:1.2:compile
    [INFO] |  |  |     - org.ow2.asm:asm:jar:5.0.4:compile
    [INFO] |  |  - org.apache.curator:curator-framework:jar:2.12.0:compile
    [INFO] |  +- com.jcraft:jsch:jar:0.1.54:compile
    [INFO] |  +- org.apache.curator:curator-client:jar:2.12.0:compile
    [INFO] |  +- org.apache.curator:curator-recipes:jar:2.12.0:compile
    [INFO] |  +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
    [INFO] |  +- org.apache.htrace:htrace-core4:jar:4.1.0-incubating:compile
    [INFO] |  +- org.apache.zookeeper:zookeeper:jar:3.4.6.3.1.4.0-315:compile
    [INFO] |  |  - jline:jline:jar:0.9.94:compile
    [INFO] |  +- org.apache.commons:commons-compress:jar:1.4.1:compile
    [INFO] |  |  - org.tukaani:xz:jar:1.0:compile
    [INFO] |  +- org.apache.kerby:kerb-simplekdc:jar:1.0.1:compile
    [INFO] |  |  +- org.apache.kerby:kerb-client:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.kerby:kerby-config:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.kerby:kerb-core:jar:1.0.1:compile
    [INFO] |  |  |  |  - org.apache.kerby:kerby-pkix:jar:1.0.1:compile
    [INFO] |  |  |  |     +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
    [INFO] |  |  |  |     - org.apache.kerby:kerby-util:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.kerby:kerb-common:jar:1.0.1:compile
    [INFO] |  |  |  |  - org.apache.kerby:kerb-crypto:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.kerby:kerb-util:jar:1.0.1:compile
    [INFO] |  |  |  - org.apache.kerby:token-provider:jar:1.0.1:compile
    [INFO] |  |  - org.apache.kerby:kerb-admin:jar:1.0.1:compile
    [INFO] |  |     +- org.apache.kerby:kerb-server:jar:1.0.1:compile
    [INFO] |  |     |  - org.apache.kerby:kerb-identity:jar:1.0.1:compile
    [INFO] |  |     - org.apache.kerby:kerby-xdr:jar:1.0.1:compile
    [INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9.1:compile
    [INFO] |  |  - com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
    [INFO] |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
    [INFO] |  - com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
    [INFO] +- org.apache.spark:spark-core_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.avro:avro-mapred:jar:hadoop2:1.7.7:compile
    [INFO] |  |  +- org.apache.avro:avro-ipc:jar:1.7.7:compile
    [INFO] |  |  - org.apache.avro:avro-ipc:jar:tests:1.7.7:compile
    [INFO] |  +- com.twitter:chill_2.11:jar:0.8.4:compile
    [INFO] |  |  - com.esotericsoftware:kryo-shaded:jar:3.0.3:compile
    [INFO] |  |     +- com.esotericsoftware:minlog:jar:1.3.0:compile
    [INFO] |  |     - org.objenesis:objenesis:jar:2.1:compile
    [INFO] |  +- com.twitter:chill-java:jar:0.8.4:compile
    [INFO] |  +- org.apache.xbean:xbean-asm5-shaded:jar:4.4:compile
    [INFO] |  +- org.apache.hadoop:hadoop-client:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hadoop:hadoop-hdfs-client:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  |  - com.squareup.okhttp:okhttp:jar:2.7.5:compile
    [INFO] |  |  |     - com.squareup.okio:okio:jar:1.6.0:compile
    [INFO] |  |  +- org.apache.hadoop:hadoop-yarn-api:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hadoop:hadoop-yarn-client:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  |  - org.apache.hadoop:hadoop-yarn-common:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  |     +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.9:compile
    [INFO] |  |  |     - com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.9:compile
    [INFO] |  |  |        - com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.9.9:compile
    [INFO] |  |  - org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |     - org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  +- org.apache.spark:spark-launcher_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.spark:spark-kvstore_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  |  - org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
    [INFO] |  +- org.apache.spark:spark-network-common_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.spark:spark-network-shuffle_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.spark:spark-unsafe_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- javax.activation:activation:jar:1.1.1:compile
    [INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
    [INFO] |  +- org.slf4j:jul-to-slf4j:jar:1.7.16:compile
    [INFO] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.16:compile
    [INFO] |  +- com.ning:compress-lzf:jar:1.0.3:compile
    [INFO] |  +- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
    [INFO] |  +- org.lz4:lz4-java:jar:1.4.0:compile
    [INFO] |  +- com.github.luben:zstd-jni:jar:1.3.2-2:compile
    [INFO] |  +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:compile
    [INFO] |  +- org.scala-lang:scala-reflect:jar:2.11.12:compile
    [INFO] |  +- org.json4s:json4s-jackson_2.11:jar:3.2.11:compile
    [INFO] |  |  - org.json4s:json4s-core_2.11:jar:3.2.11:compile
    [INFO] |  |     +- org.json4s:json4s-ast_2.11:jar:3.2.11:compile
    [INFO] |  |     - org.scala-lang:scalap:jar:2.11.0:compile
    [INFO] |  |        - org.scala-lang:scala-compiler:jar:2.11.0:compile
    [INFO] |  |           - org.scala-lang.modules:scala-xml_2.11:jar:1.0.1:compile
    [INFO] |  +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:compile
    [INFO] |  |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
    [INFO] |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile
    [INFO] |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile
    [INFO] |  |  |  - org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile
    [INFO] |  |  +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile
    [INFO] |  |  - org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile
    [INFO] |  |     - org.javassist:javassist:jar:3.18.1-GA:compile
    [INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:compile
    [INFO] |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
    [INFO] |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:compile
    [INFO] |  |  - org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
    [INFO] |  +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:compile
    [INFO] |  |  +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:compile
    [INFO] |  |  - javax.validation:validation-api:jar:1.1.0.Final:compile
    [INFO] |  +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:compile
    [INFO] |  +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:compile
    [INFO] |  +- io.netty:netty-all:jar:4.1.17.Final:compile
    [INFO] |  +- io.netty:netty:jar:3.9.9.Final:compile
    [INFO] |  +- com.clearspring.analytics:stream:jar:2.7.0:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-core:jar:3.1.5:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-jvm:jar:3.1.5:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-json:jar:3.1.5:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-graphite:jar:3.1.5:compile
    [INFO] |  +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.9.9:compile
    [INFO] |  |  - com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.9.9:compile
    [INFO] |  +- org.apache.ivy:ivy:jar:2.4.0:compile
    [INFO] |  +- oro:oro:jar:2.0.8:compile
    [INFO] |  +- net.razorvine:pyrolite:jar:4.13:compile
    [INFO] |  +- net.sf.py4j:py4j:jar:0.10.7:compile
    [INFO] |  +- org.apache.spark:spark-tags_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.commons:commons-crypto:jar:1.0.0:compile
    [INFO] |  - org.spark-project.spark:unused:jar:1.0.0:compile
    [INFO] +- org.apache.spark:spark-sql_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- com.univocity:univocity-parsers:jar:2.5.9:compile
    [INFO] |  +- org.apache.spark:spark-sketch_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.spark:spark-catalyst_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.1.0:compile
    [INFO] |  |  +- org.codehaus.janino:janino:jar:3.0.8:compile
    [INFO] |  |  +- org.codehaus.janino:commons-compiler:jar:3.0.8:compile
    [INFO] |  |  - org.antlr:antlr4-runtime:jar:4.7:compile
    [INFO] |  +- org.apache.orc:orc-core:jar:nohive:1.4.4:compile
    [INFO] |  |  - io.airlift:aircompressor:jar:0.8:compile
    [INFO] |  +- org.apache.orc:orc-mapreduce:jar:nohive:1.4.4:compile
    [INFO] |  +- org.apache.parquet:parquet-column:jar:1.8.3:compile
    [INFO] |  |  +- org.apache.parquet:parquet-common:jar:1.8.3:compile
    [INFO] |  |  - org.apache.parquet:parquet-encoding:jar:1.8.3:compile
    [INFO] |  +- org.apache.parquet:parquet-hadoop:jar:1.8.3:compile
    [INFO] |  |  +- org.apache.parquet:parquet-format:jar:2.3.1:compile
    [INFO] |  |  - org.apache.parquet:parquet-jackson:jar:1.8.3:compile
    [INFO] |  - org.apache.arrow:arrow-vector:jar:0.8.0.3.1.4.0-315:compile
    [INFO] |     +- org.apache.arrow:arrow-format:jar:0.8.0.3.1.4.0-315:compile
    [INFO] |     +- org.apache.arrow:arrow-memory:jar:0.8.0.3.1.4.0-315:compile
    [INFO] |     +- com.carrotsearch:hppc:jar:0.7.2:compile
    [INFO] |     - com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
    [INFO] +- org.apache.spark:spark-streaming_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] +- org.apache.spark:spark-hive_2.11:jar:2.3.2.3.1.4.0-315:compile
    [INFO] |  +- com.twitter:parquet-hadoop-bundle:jar:1.6.0:compile
    [INFO] |  +- org.spark-project.hive:hive-exec:jar:1.21.2.3.1.4.0-315:compile
    [INFO] |  |  +- javolution:javolution:jar:5.5.1:compile
    [INFO] |  |  +- log4j:apache-log4j-extras:jar:1.2.17:compile
    [INFO] |  |  +- org.antlr:antlr-runtime:jar:3.4:compile
    [INFO] |  |  |  +- org.antlr:stringtemplate:jar:3.2.1:compile
    [INFO] |  |  |  - antlr:antlr:jar:2.7.7:compile
    [INFO] |  |  +- org.antlr:ST4:jar:4.0.4:compile
    [INFO] |  |  +- com.googlecode.javaewah:JavaEWAH:jar:0.3.2:compile
    [INFO] |  |  +- org.iq80.snappy:snappy:jar:0.2:compile
    [INFO] |  |  +- stax:stax-api:jar:1.0.1:compile
    [INFO] |  |  - net.sf.opencsv:opencsv:jar:2.3:compile
    [INFO] |  +- org.spark-project.hive:hive-metastore:jar:1.21.2.3.1.4.0-315:compile
    [INFO] |  |  +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
    [INFO] |  |  +- com.zaxxer:HikariCP:jar:2.5.1:compile
    [INFO] |  |  +- org.datanucleus:datanucleus-api-jdo:jar:4.2.1:compile
    [INFO] |  |  +- org.datanucleus:datanucleus-rdbms:jar:4.1.7:compile
    [INFO] |  |  +- commons-pool:commons-pool:jar:1.5.4:compile
    [INFO] |  |  +- commons-dbcp:commons-dbcp:jar:1.4:compile
    [INFO] |  |  +- javax.jdo:jdo-api:jar:3.0.1:compile
    [INFO] |  |  |  - javax.transaction:jta:jar:1.1:compile
    [INFO] |  |  - org.datanucleus:javax.jdo:jar:3.2.0-m3:compile
    [INFO] |  |     - javax.transaction:transaction-api:jar:1.1:compile
    [INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
    [INFO] |  +- org.apache.calcite:calcite-avatica:jar:1.2.0-incubating:compile
    [INFO] |  +- org.apache.calcite:calcite-core:jar:1.2.0-incubating:compile
    [INFO] |  |  +- org.apache.calcite:calcite-linq4j:jar:1.2.0-incubating:compile
    [INFO] |  |  - net.hydromatic:eigenbase-properties:jar:1.1.5:compile
    [INFO] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
    [INFO] |  +- joda-time:joda-time:jar:2.9.3:compile
    [INFO] |  +- org.jodd:jodd-core:jar:3.5.2:compile
    [INFO] |  +- org.datanucleus:datanucleus-core:jar:4.1.6:compile
    [INFO] |  +- org.apache.thrift:libthrift:jar:0.12.0:compile
    [INFO] |  +- org.apache.thrift:libfb303:jar:0.9.3:compile
    [INFO] |  - org.apache.derby:derby:jar:10.12.1.1:compile
    [INFO] +- mysql:mysql-connector-java:jar:5.1.24:compile
    [INFO] +- com.alibaba:fastjson:jar:1.2.31:compile
    [INFO] +- commons-lang:commons-lang:jar:2.6:compile
    [INFO] +- fastutil:fastutil:jar:5.0.9:compile
    [INFO] +- org.apache.hbase:hbase-spark:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:2.2.0:compile
    [INFO] |  +- org.apache.hbase:hbase-protocol:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  - junit:junit:jar:4.12:compile
    [INFO] |  |     - org.hamcrest:hamcrest-core:jar:1.3:compile
    [INFO] |  +- org.apache.hbase:hbase-protocol-shaded:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hbase:hbase-zookeeper:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hbase:hbase-server:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hbase:hbase-http:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  |  - org.eclipse.jetty:jetty-util-ajax:jar:9.3.27.v20190418:compile
    [INFO] |  |  +- org.apache.hbase:hbase-procedure:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hbase:hbase-replication:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hbase:hbase-metrics-api:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.apache.hbase:hbase-metrics:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  |  +- org.glassfish.web:javax.servlet.jsp:jar:2.3.2:compile
    [INFO] |  |  |  +- org.glassfish:javax.el:jar:3.0.1-b12:compile (version selected from constraint [3.0.0,))
    [INFO] |  |  |  - javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
    [INFO] |  |  +- org.jamon:jamon-runtime:jar:2.4.1:compile
    [INFO] |  |  +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
    [INFO] |  |  +- com.lmax:disruptor:jar:3.3.6:compile
    [INFO] |  |  +- org.apache.hadoop:hadoop-distcp:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  - org.apache.hadoop:hadoop-hdfs:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |     - commons-daemon:commons-daemon:jar:1.0.13:compile
    [INFO] |  +- org.apache.hbase:hbase-mapreduce:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  - org.apache.yetus:audience-annotations:jar:0.5.0:compile
    [INFO] +- org.apache.hbase:hbase-client:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:2.2.0:compile
    [INFO] |  +- org.apache.hbase:hbase-hadoop-compat:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hbase:hbase-hadoop2-compat:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  +- org.apache.hadoop:hadoop-aws:jar:3.1.1.3.1.4.0-315:compile
    [INFO] |  |  - com.amazonaws:aws-java-sdk-bundle:jar:1.11.375:compile
    [INFO] |  +- org.apache.hbase.thirdparty:hbase-shaded-netty:jar:2.2.0:compile
    [INFO] |  +- org.jruby.jcodings:jcodings:jar:1.0.18:compile
    [INFO] |  +- org.jruby.joni:joni:jar:2.1.11:compile
    [INFO] |  - com.fasterxml.jackson.core:jackson-annotations:jar:2.9.9:compile
    [INFO] +- org.apache.hbase:hbase-common:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |  - com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
    [INFO] +- org.apache.phoenix:phoenix-spark:jar:5.0.0.3.1.4.0-315:compile
    [INFO] |  - org.apache.phoenix:phoenix-core:jar:5.0.0.3.1.4.0-315:compile
    [INFO] |     +- org.apache.tephra:tephra-api:jar:0.14.0-incubating:compile
    [INFO] |     +- org.apache.tephra:tephra-core:jar:0.14.0-incubating:compile
    [INFO] |     |  +- com.google.inject:guice:jar:3.0:compile
    [INFO] |     |  |  +- javax.inject:javax.inject:jar:1:compile
    [INFO] |     |  |  - aopalliance:aopalliance:jar:1.0:compile
    [INFO] |     |  +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
    [INFO] |     |  +- it.unimi.dsi:fastutil:jar:6.5.6:compile
    [INFO] |     |  +- org.apache.twill:twill-common:jar:0.8.0:compile
    [INFO] |     |  +- org.apache.twill:twill-core:jar:0.8.0:compile
    [INFO] |     |  |  +- org.apache.twill:twill-api:jar:0.8.0:compile
    [INFO] |     |  |  - org.ow2.asm:asm-all:jar:5.0.2:compile
    [INFO] |     |  +- org.apache.twill:twill-discovery-api:jar:0.8.0:compile
    [INFO] |     |  +- org.apache.twill:twill-discovery-core:jar:0.8.0:compile
    [INFO] |     |  - org.apache.twill:twill-zookeeper:jar:0.8.0:compile
    [INFO] |     +- org.apache.tephra:tephra-hbase-compat-2.0:jar:0.14.0-incubating:compile
    [INFO] |     +- sqlline:sqlline:jar:1.2.0:compile
    [INFO] |     +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
    [INFO] |     +- org.apache.commons:commons-csv:jar:1.0:compile
    [INFO] |     +- org.apache.hbase:hbase-annotations:jar:2.0.2.3.1.4.0-315:compile
    [INFO] |     - com.salesforce.i18n:i18n-util:jar:1.0.4:compile
    [INFO] |        +- com.ibm.icu:icu4j:jar:60.2:compile
    [INFO] |        +- com.ibm.icu:icu4j-localespi:jar:60.2:compile
    [INFO] |        - com.ibm.icu:icu4j-charset:jar:60.2:compile
    [INFO] +- com.mchange:c3p0:jar:0.9.5:compile
    [INFO] |  - com.mchange:mchange-commons-java:jar:0.2.9:compile
    [INFO] +- com.alibaba:druid:jar:1.0.31:compile
    [INFO] |  +- com.alibaba:jconsole:jar:1.8.0:system
    [INFO] |  - com.alibaba:tools:jar:1.8.0:system
    [INFO] +- org.mongodb:mongo-java-driver:jar:3.8.2:compile
    [INFO] - org.mongodb.spark:mongo-spark-connector_2.11:jar:2.3.2:compile
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD SUCCESS
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time:  3.503 s
    [INFO] Finished at: 2020-12-27T18:14:14+08:00
    [INFO] ------------------------------------------------------------------------
    

      可以看到这个包引用的地方是在hbase-server中引用的,但是我的maven中就没有这个引入hbase-server,下面是我的maven中涉及到hbase的地方:

    <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-spark</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-client</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-common</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.phoenix</groupId>
                <artifactId>phoenix-spark</artifactId>
                <version>5.0.0.3.1.4.0-315</version>
            </dependency>
    

      虽然没有直接的引入hbase-server的依赖,不过这样看来,hbase-spark与phoenix-spark这两个中应该是用到了hbase-server的包,所以这样以来,问题就好处理了。

    解决:

      在maven依赖中将涉及到hbase-server依赖的配置中将javax.el这个包给排除掉即可,最终结果如下面这样:

    <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-spark</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.glassfish</groupId>
                        <artifactId>javax.el</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-client</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hbase</groupId>
                <artifactId>hbase-common</artifactId>
                <version>2.0.2.3.1.4.0-315</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.phoenix</groupId>
                <artifactId>phoenix-spark</artifactId>
                <version>5.0.0.3.1.4.0-315</version>
                <exclusions>
                    <exclusion>
                        <groupId>org.glassfish</groupId>
                        <artifactId>javax.el</artifactId>
                    </exclusion>
                </exclusions>
            </dependency>
    

      加上这两项之后,再次进行编译,打包,成功

  • 相关阅读:
    VS编译错误:#error: Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version
    C++ STL std::copy 详解
    JavaScript:{}、new Object和Object.create的区别
    函数声明和函数表达式的区别
    Java基础重写override
    Java基础多态数组
    Java基础编译类型和运行类型(多态)
    Java基础继承的内存分析
    Java基础访问修饰符
    Java基础继承的使用
  • 原文地址:https://www.cnblogs.com/Gxiaobai/p/14198255.html
Copyright © 2020-2023  润新知