美文网首页
解决Failure to find org.glassfish:

解决Failure to find org.glassfish:

作者: 鸡龙 | 来源:发表于2022-09-06 20:29 被阅读0次

    问题描述

    Maven项目编译打包报错

    Failure to find org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT.
    Failure to find org.glassfish:javax.el:pom:3.0.1-b07-SNAPSHOT.
    Failure to find org.glassfish:javax.el:pom:3.0.1-b08-SNAPSHOT.
    Failure to find org.glassfish:javax.el:pom:3.0.1-b011-SNAPSHOT.
    
        <dependencies>
            <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-hdfs</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.hadoop</groupId>
                <artifactId>hadoop-yarn-common</artifactId>
                <version>${hadoop.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-mapreduce-client-core</artifactId>
                <version>${hadoop.version}</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-auth</artifactId>
                <version>3.2.0</version>
                <exclusions>
                    <exclusion>
                        <artifactId>zookeeper</artifactId>
                        <groupId>org.apache.zookeeper</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hadoop</groupId>
                <artifactId>hadoop-hdfs-client</artifactId>
                <version>${hadoop.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hive</groupId>
                <artifactId>hive-exec</artifactId>
                <version>${hive.version}</version>
            </dependency>
    
            <dependency>
                <groupId>org.apache.hive</groupId>
                <artifactId>hive-serde</artifactId>
                <version>${hive.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hive</groupId>
                <artifactId>hive-service</artifactId>
                <version>${hive.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hive</groupId>
                <artifactId>hive-common</artifactId>
                <version>${hive.version}</version>
            </dependency>
            <dependency>
                <groupId>org.apache.hive.hcatalog</groupId>
                <artifactId>hive-hcatalog-core</artifactId>
                <version>${hive.version}</version>
            </dependency>
    
            <dependency>
                <groupId>com.alibaba.datax</groupId>
                <artifactId>datax-common</artifactId>
                <version>${datax-project-version}</version>
                <exclusions>
                    <exclusion>
                        <artifactId>slf4j-log4j12</artifactId>
                        <groupId>org.slf4j</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
            <dependency>
                <groupId>org.slf4j</groupId>
                <artifactId>slf4j-api</artifactId>
            </dependency>
            <dependency>
                <groupId>ch.qos.logback</groupId>
                <artifactId>logback-classic</artifactId>
            </dependency>
            <dependency>
                <groupId>com.alibaba.datax</groupId>
                <artifactId>plugin-unstructured-storage-util</artifactId>
                <version>${datax-project-version}</version>
            </dependency>
        </dependencies>
    

    排错步骤

    使用mvn dependency:tree,找出引用javax.el的依赖。报错

    [WARNING]
    [WARNING] Some problems were encountered while building the effective settings
    [WARNING] Unrecognised tag: 'release' (position: START_TAG seen ...</url>\r\n\t\t\t\t<release>... @371:14)  @ D:\dev\apache-maven-3.5.4\bin\..\conf\settings.xml, line 371, column 14
    [WARNING]
    [INFO] Scanning for projects...
    Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
    Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom (0 B at 0 B/s)
    Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom
    Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom (0 B at 0 B/s)
    Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar
    Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar (0 B at 0 B/s)
    Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom
    Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.pom (0 B at 0 B/s)
    Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar
    Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/apache/maven/plugins/maven-dependency-plugin/2.8/maven-dependency-plugin-2.8.jar (0 B at 0 B/s)
    [INFO]
    [INFO] -------------------< com.alibaba.datax:fihdfswriter >-------------------
    [INFO] Building fihdfswriter 0.0.1-SNAPSHOT
    [INFO] --------------------------------[ jar ]---------------------------------
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/maven-metadata.xml
    Downloading from huaweicloudsdk: https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/org/glassfish/javax.el/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/maven-metadata.xml
    Downloaded from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/maven-metadata.xml (1.2 kB at 15 kB/s)
    Downloaded from huaweicloudsdk: https://repo.huaweicloud.com/repository/maven/huaweicloudsdk/org/glassfish/javax.el/maven-metadata.xml (376 B at 3.5 kB/s)
    Downloaded from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/maven-metadata.xml (988 B at 1.6 kB/s)
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/javax.el-3.0.1-b06-SNAPSHOT.pom
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b06-SNAPSHOT/javax.el-3.0.1-b06-SNAPSHOT.pom
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b06-SNAPSHOT is missing, no dependency information available
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/javax.el-3.0.1-b07-SNAPSHOT.pom
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b07-SNAPSHOT/javax.el-3.0.1-b07-SNAPSHOT.pom
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b07-SNAPSHOT is missing, no dependency information available
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/javax.el-3.0.1-b08-SNAPSHOT.pom
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b08-SNAPSHOT/javax.el-3.0.1-b08-SNAPSHOT.pom
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b08-SNAPSHOT is missing, no dependency information available
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/javax.el-3.0.1-b11-SNAPSHOT.pom
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/org/glassfish/javax.el/3.0.1-b11-SNAPSHOT/javax.el-3.0.1-b11-SNAPSHOT.pom
    [WARNING] The POM for org.glassfish:javax.el:jar:3.0.1-b11-SNAPSHOT is missing, no dependency information available
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/com/alibaba/datax/datax-common/0.0.1-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/datax/datax-common/0.0.1-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/com/alibaba/datax/datax-all/0.0.1-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/datax/datax-all/0.0.1-SNAPSHOT/maven-metadata.xml
    Downloading from maven-public: http://10.194.188.225:18081/repository/maven-public/com/alibaba/datax/plugin-unstructured-storage-util/0.0.1-SNAPSHOT/maven-metadata.xml
    Downloading from aliyun maven: http://maven.aliyun.com/nexus/content/groups/public/com/alibaba/datax/plugin-unstructured-storage-util/0.0.1-SNAPSHOT/maven-metadata.xml
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 7.762 s
    [INFO] Finished at: 2022-09-07T19:48:12+08:00
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal on project fihdfswriter: Could not resolve dependencies for project com.alibaba.datax:fihdfswriter:jar:0.0.1-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.8 at specified path D:\dev\Java\jre1.8.0_241/../lib/tools.jar -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
    

    经检查,主要原因:hadoop-common依赖带了 tools的文件,和本机jdk带的冲突,去除hadoop-common自带的tools依赖

    <dependency>
        <groupId>org.apache.hadoop</groupId>
        <artifactId>hadoop-common</artifactId>
        <version>${hadoop.version}</version>
        <exclusions>
            <exclusion>
                <artifactId>jdk.tools</artifactId>
                <groupId>jdk.tools</groupId>
            </exclusion>
        </exclusions>
    </dependency>
    

    最后执行依赖树如下

    [INFO] com.alibaba.datax:fihdfsreader:jar:0.0.1-SNAPSHOT
    [INFO] +- org.apache.hadoop:hadoop-hdfs:jar:3.1.1:compile
    [INFO] |  +- com.google.guava:guava:jar:11.0.2:compile
    [INFO] |  +- org.eclipse.jetty:jetty-server:jar:9.3.19.v20170502:compile
    [INFO] |  |  \- org.eclipse.jetty:jetty-io:jar:9.3.19.v20170502:compile
    [INFO] |  +- org.eclipse.jetty:jetty-util:jar:9.3.19.v20170502:compile
    [INFO] |  +- org.eclipse.jetty:jetty-util-ajax:jar:9.3.19.v20170502:compile
    [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-server:jar:1.19:compile
    [INFO] |  +- commons-cli:commons-cli:jar:1.2:compile
    [INFO] |  +- commons-codec:commons-codec:jar:1.11:compile
    [INFO] |  +- commons-io:commons-io:jar:2.4:compile
    [INFO] |  +- commons-lang:commons-lang:jar:2.6:compile
    [INFO] |  +- commons-logging:commons-logging:jar:1.1.3:compile
    [INFO] |  +- commons-daemon:commons-daemon:jar:1.0.13:compile
    [INFO] |  +- log4j:log4j:jar:1.2.17:compile
    [INFO] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
    [INFO] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
    [INFO] |  +- io.netty:netty:jar:3.10.5.Final:compile
    [INFO] |  +- io.netty:netty-all:jar:4.0.52.Final:compile
    [INFO] |  +- org.apache.htrace:htrace-core4:jar:4.1.0-incubating:compile
    [INFO] |  +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
    [INFO] |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.7.8:compile
    [INFO] +- org.apache.hadoop:hadoop-common:jar:3.1.1:compile
    [INFO] |  +- org.apache.hadoop:hadoop-annotations:jar:3.1.1: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-net:commons-net:jar:3.6:compile
    [INFO] |  +- commons-collections:commons-collections:jar:3.2.2:compile
    [INFO] |  +- org.eclipse.jetty:jetty-servlet:jar:9.3.19.v20170502:compile
    [INFO] |  |  \- org.eclipse.jetty:jetty-security:jar:9.3.19.v20170502:compile
    [INFO] |  +- org.eclipse.jetty:jetty-webapp:jar:9.3.19.v20170502:compile
    [INFO] |  |  \- org.eclipse.jetty:jetty-xml:jar:9.3.19.v20170502:compile
    [INFO] |  +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
    [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] |  |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:compile
    [INFO] |  |  +- org.codehaus.jackson:jackson-mapper-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] |  +- 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.3.2: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] |  |  \- org.xerial.snappy:snappy-java:jar:1.0.5:compile
    [INFO] |  +- com.google.re2j:re2j:jar:1.1:compile
    [INFO] |  +- com.google.code.gson:gson:jar:2.2.4: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.zookeeper:zookeeper:jar:3.4.9: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] |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
    [INFO] |  \- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
    [INFO] +- org.apache.hadoop:hadoop-yarn-common:jar:3.1.1:compile
    [INFO] |  +- org.apache.hadoop:hadoop-yarn-api:jar:3.1.1:compile
    [INFO] |  +- javax.xml.bind:jaxb-api:jar:2.2.11:compile
    [INFO] |  +- com.sun.jersey:jersey-client:jar:1.19:compile
    [INFO] |  +- com.google.inject.extensions:guice-servlet:jar:4.0:compile
    [INFO] |  +- com.google.inject:guice:jar:4.0:compile
    [INFO] |  |  +- javax.inject:javax.inject:jar:1:compile
    [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:compile
    [INFO] |  +- com.sun.jersey.contribs:jersey-guice:jar:1.19:compile
    [INFO] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.7.8:compile
    [INFO] |  +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.7.8:compile
    [INFO] |  \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.7.8:compile
    [INFO] |     \- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.7.8:compile
    [INFO] +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:3.1.1:compile
    [INFO] |  \- org.apache.hadoop:hadoop-yarn-client:jar:3.1.1:compile
    [INFO] +- org.apache.hadoop:hadoop-client:jar:3.1.1:compile
    [INFO] |  \- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:3.1.1:compile
    [INFO] |     \- org.apache.hadoop:hadoop-mapreduce-client-common:jar:3.1.1:compile
    [INFO] +- org.apache.hadoop:hadoop-auth:jar:3.2.0:compile
    [INFO] |  +- com.nimbusds:nimbus-jose-jwt:jar:4.41.1:compile
    [INFO] |  |  \- com.github.stephenc.jcip:jcip-annotations:jar:1.0-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] +- org.apache.hadoop:hadoop-hdfs-client:jar:3.1.1:compile
    [INFO] |  +- com.squareup.okhttp:okhttp:jar:2.7.5:compile
    [INFO] |  |  \- com.squareup.okio:okio:jar:1.6.0:compile
    [INFO] |  \- com.fasterxml.jackson.core:jackson-annotations:jar:2.7.8:compile
    [INFO] +- org.apache.hive:hive-exec:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-vector-code-gen:jar:3.1.0:compile
    [INFO] |  |  \- org.apache.velocity:velocity:jar:1.5:compile
    [INFO] |  |     \- oro:oro:jar:2.0.8:compile
    [INFO] |  +- org.apache.hive:hive-llap-tez:jar:3.1.0:compile
    [INFO] |  |  \- org.apache.hive:hive-llap-client:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-shims:jar:3.1.0:compile
    [INFO] |  |  +- org.apache.hive.shims:hive-shims-common:jar:3.1.0:compile
    [INFO] |  |  +- org.apache.hive.shims:hive-shims-0.23:jar:3.1.0:runtime
    [INFO] |  |  |  \- org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:3.1.0:runtime
    [INFO] |  |  |     +- org.apache.hadoop:hadoop-yarn-server-common:jar:3.1.0:runtime
    [INFO] |  |  |     |  +- org.apache.geronimo.specs:geronimo-jcache_1.0_spec:jar:1.0-alpha-1:runtime
    [INFO] |  |  |     |  +- com.zaxxer:HikariCP-java7:jar:2.4.12:runtime
    [INFO] |  |  |     |  \- com.microsoft.sqlserver:mssql-jdbc:jar:6.2.1.jre7:runtime
    [INFO] |  |  |     +- org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:3.1.0:runtime
    [INFO] |  |  |     |  \- de.ruedigermoeller:fst:jar:2.50:runtime
    [INFO] |  |  |     |     \- com.cedarsoftware:java-util:jar:1.9.0:runtime
    [INFO] |  |  |     |        \- com.cedarsoftware:json-io:jar:2.5.1:runtime
    [INFO] |  |  |     \- org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:3.1.0:runtime
    [INFO] |  |  \- org.apache.hive.shims:hive-shims-scheduler:jar:3.1.0:runtime
    [INFO] |  +- org.apache.logging.log4j:log4j-1.2-api:jar:2.10.0:compile
    [INFO] |  |  +- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
    [INFO] |  |  \- org.apache.logging.log4j:log4j-core:jar:2.10.0:compile
    [INFO] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.10.0:compile
    [INFO] |  +- org.antlr:antlr-runtime:jar:3.5.2:compile
    [INFO] |  +- org.antlr:ST4:jar:4.0.4:compile
    [INFO] |  +- org.apache.ant:ant:jar:1.9.1:compile
    [INFO] |  |  \- org.apache.ant:ant-launcher:jar:1.9.1:compile
    [INFO] |  +- org.apache.thrift:libfb303:jar:0.9.3:compile
    [INFO] |  +- org.apache.hadoop:hadoop-yarn-registry:jar:3.1.0:compile
    [INFO] |  |  \- dnsjava:dnsjava:jar:2.1.7:compile
    [INFO] |  +- org.apache.ivy:ivy:jar:2.4.0:compile
    [INFO] |  +- org.apache.curator:apache-curator:pom:2.12.0:compile
    [INFO] |  +- org.codehaus.groovy:groovy-all:jar:2.4.11:compile
    [INFO] |  +- org.datanucleus:datanucleus-core:jar:4.1.17:compile
    [INFO] |  +- org.apache.calcite:calcite-core:jar:1.16.0:compile
    [INFO] |  |  +- org.apache.calcite:calcite-linq4j:jar:1.16.0:compile
    [INFO] |  |  +- commons-dbcp:commons-dbcp:jar:1.4:compile
    [INFO] |  |  +- com.esri.geometry:esri-geometry-api:jar:2.0.0:compile
    [INFO] |  |  +- com.yahoo.datasketches:sketches-core:jar:0.9.0:compile
    [INFO] |  |  |  \- com.yahoo.datasketches:memory:jar:0.9.0:compile
    [INFO] |  |  +- org.codehaus.janino:janino:jar:2.7.6:compile
    [INFO] |  |  \- org.codehaus.janino:commons-compiler:jar:2.7.6:compile
    [INFO] |  +- org.apache.calcite:calcite-druid:jar:1.16.0:compile
    [INFO] |  +- org.apache.calcite.avatica:avatica:jar:1.11.0:compile
    [INFO] |  +- stax:stax-api:jar:1.0.1:compile
    [INFO] |  \- org.apache.hive:hive-upgrade-acid:jar:3.1.0:compile
    [INFO] +- org.apache.hive:hive-serde:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-service-rpc:jar:3.1.0:compile
    [INFO] |  +- org.apache.arrow:arrow-vector:jar:0.8.0:compile
    [INFO] |  |  +- org.apache.arrow:arrow-format:jar:0.8.0:compile
    [INFO] |  |  +- org.apache.arrow:arrow-memory:jar:0.8.0:compile
    [INFO] |  |  +- io.netty:netty-buffer:jar:4.1.17.Final:compile
    [INFO] |  |  \- io.netty:netty-common:jar:4.1.17.Final:compile
    [INFO] |  +- com.carrotsearch:hppc:jar:0.7.2:compile
    [INFO] |  +- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
    [INFO] |  +- org.apache.thrift:libthrift:jar:0.9.3:compile
    [INFO] |  +- net.sf.opencsv:opencsv:jar:2.3:compile
    [INFO] |  \- org.apache.parquet:parquet-hadoop-bundle:jar:1.10.0:compile
    [INFO] +- org.apache.hive:hive-service:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-metastore:jar:3.1.0:compile
    [INFO] |  |  +- org.apache.hive:hive-standalone-metastore:jar:3.1.0:compile
    [INFO] |  |  |  +- org.datanucleus:datanucleus-api-jdo:jar:4.2.4:compile
    [INFO] |  |  |  +- org.datanucleus:datanucleus-rdbms:jar:4.1.19:compile
    [INFO] |  |  |  +- org.datanucleus:javax.jdo:jar:3.2.0-m3:compile
    [INFO] |  |  |  |  \- javax.transaction:transaction-api:jar:1.1:compile
    [INFO] |  |  |  \- sqlline:sqlline:jar:1.3.0:compile
    [INFO] |  |  +- org.apache.hbase:hbase-client:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase.thirdparty:hbase-shaded-protobuf:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-protocol-shaded:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-protocol:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  |  \- junit:junit:jar:4.11:compile
    [INFO] |  |  |  +- org.apache.hbase.thirdparty:hbase-shaded-miscellaneous:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.hbase.thirdparty:hbase-shaded-netty:jar:1.0.1:compile
    [INFO] |  |  |  +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
    [INFO] |  |  |  +- org.jruby.jcodings:jcodings:jar:1.0.18:compile
    [INFO] |  |  |  +- org.jruby.joni:joni:jar:2.1.11:compile
    [INFO] |  |  |  +- org.apache.commons:commons-crypto:jar:1.0.0:compile
    [INFO] |  |  |  \- org.apache.yetus:audience-annotations:jar:0.5.0:compile
    [INFO] |  |  +- com.jolbox:bonecp:jar:0.8.0.RELEASE:compile
    [INFO] |  |  +- com.zaxxer:HikariCP:jar:2.6.1:compile
    [INFO] |  |  +- org.apache.derby:derby:jar:10.14.1.0:compile
    [INFO] |  |  +- commons-pool:commons-pool:jar:1.5.4:compile
    [INFO] |  |  +- javax.jdo:jdo-api:jar:3.0.1:compile
    [INFO] |  |  |  \- javax.transaction:jta:jar:1.1:compile
    [INFO] |  |  +- co.cask.tephra:tephra-api:jar:0.6.0:compile
    [INFO] |  |  +- co.cask.tephra:tephra-core:jar:0.6.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.6.0-incubating:compile
    [INFO] |  |  |  +- org.apache.twill:twill-core:jar:0.6.0-incubating:compile
    [INFO] |  |  |  |  \- org.apache.twill:twill-api:jar:0.6.0-incubating:compile
    [INFO] |  |  |  +- org.apache.twill:twill-discovery-api:jar:0.6.0-incubating:compile
    [INFO] |  |  |  +- org.apache.twill:twill-discovery-core:jar:0.6.0-incubating:compile
    [INFO] |  |  |  \- org.apache.twill:twill-zookeeper:jar:0.6.0-incubating:compile
    [INFO] |  |  \- co.cask.tephra:tephra-hbase-compat-1.0:jar:0.6.0:compile
    [INFO] |  +- org.apache.hive:hive-llap-server:jar:3.1.0:compile
    [INFO] |  |  +- org.apache.hive:hive-llap-common:jar:3.1.0:compile
    [INFO] |  |  +- org.apache.hive:hive-llap-common:test-jar:tests:3.1.0:compile
    [INFO] |  |  +- org.apache.hbase:hbase-hadoop2-compat:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-metrics:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  \- org.apache.hbase:hbase-metrics-api:jar:2.0.0-alpha4:compile
    [INFO] |  |  +- org.apache.hbase:hbase-server:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-http:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  |  +- org.glassfish.jersey.core:jersey-server:jar:2.25.1:compile
    [INFO] |  |  |  |  |  +- org.glassfish.jersey.core:jersey-common:jar:2.25.1:compile
    [INFO] |  |  |  |  |  |  +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.25.1:compile
    [INFO] |  |  |  |  |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
    [INFO] |  |  |  |  |  +- org.glassfish.jersey.core:jersey-client:jar:2.25.1:compile
    [INFO] |  |  |  |  |  +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.25.1:compile
    [INFO] |  |  |  |  |  +- org.glassfish.hk2:hk2-api:jar:2.5.0-b32:compile
    [INFO] |  |  |  |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.5.0-b32:compile
    [INFO] |  |  |  |  |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b32:compile
    [INFO] |  |  |  |  |  +- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b32:compile
    [INFO] |  |  |  |  |  +- org.glassfish.hk2:hk2-locator:jar:2.5.0-b32:compile
    [INFO] |  |  |  |  |  |  \- org.javassist:javassist:jar:3.20.0-GA:compile
    [INFO] |  |  |  |  |  \- javax.validation:validation-api:jar:1.1.0.Final:compile
    [INFO] |  |  |  |  \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.25.1:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-procedure:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  |  \- org.apache.hbase:hbase-common:jar:tests:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-replication:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  +- org.apache.hbase:hbase-prefix-tree:jar:2.0.0-alpha4:runtime
    [INFO] |  |  |  +- org.apache.commons:commons-collections4:jar:4.1: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.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
    [INFO] |  |  |  +- com.lmax:disruptor:jar:3.3.6:compile
    [INFO] |  |  |  \- org.apache.hadoop:hadoop-distcp:jar:2.7.1:compile
    [INFO] |  |  +- org.apache.hbase:hbase-mapreduce:jar:2.0.0-alpha4:compile
    [INFO] |  |  +- org.apache.hbase:hbase-common:jar:2.0.0-alpha4:compile
    [INFO] |  |  |  \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
    [INFO] |  |  \- org.apache.hbase:hbase-hadoop-compat:jar:2.0.0-alpha4:compile
    [INFO] |  +- javax.servlet.jsp:javax.servlet.jsp-api:jar:2.3.1:compile
    [INFO] |  +- net.sf.jpam:jpam:jar:1.1:compile
    [INFO] |  +- org.eclipse.jetty:jetty-runner:jar:9.3.20.v20170531:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-plus:jar:9.3.20.v20170531:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-annotations:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  +- javax.annotation:javax.annotation-api:jar:1.2:compile
    [INFO] |  |  |  \- org.ow2.asm:asm-commons:jar:5.0.1:compile
    [INFO] |  |  |     \- org.ow2.asm:asm-tree:jar:5.0.1:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-jaas:jar:9.3.20.v20170531:compile
    [INFO] |  |  +- org.eclipse.jetty.websocket:websocket-server:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  +- org.eclipse.jetty.websocket:websocket-common:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  |  \- org.eclipse.jetty.websocket:websocket-api:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  +- org.eclipse.jetty.websocket:websocket-client:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  \- org.eclipse.jetty.websocket:websocket-servlet:jar:9.3.20.v20170531:compile
    [INFO] |  |  +- org.eclipse.jetty:jetty-jndi:jar:9.3.20.v20170531:compile
    [INFO] |  |  +- org.eclipse.jetty:apache-jsp:jar:9.3.20.v20170531:compile
    [INFO] |  |  |  +- org.eclipse.jetty.toolchain:jetty-schemas:jar:3.1:compile
    [INFO] |  |  |  \- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:compile
    [INFO] |  |  \- org.eclipse.jetty:apache-jstl:jar:9.3.20.v20170531:compile
    [INFO] |  |     +- org.apache.taglibs:taglibs-standard-spec:jar:1.2.5:compile
    [INFO] |  |     \- org.apache.taglibs:taglibs-standard-impl:jar:1.2.5:compile
    [INFO] |  \- org.jamon:jamon-runtime:jar:2.3.1:compile
    [INFO] +- org.apache.hive:hive-common:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-classification:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-storage-api:jar:2.7.0:compile
    [INFO] |  +- org.apache.orc:orc-core:jar:1.5.1:compile
    [INFO] |  |  \- org.apache.orc:orc-shims:jar:1.5.1:compile
    [INFO] |  +- jline:jline:jar:2.12:compile
    [INFO] |  +- org.eclipse.jetty:jetty-http:jar:9.3.20.v20170531:compile
    [INFO] |  +- org.eclipse.jetty:jetty-rewrite:jar:9.3.20.v20170531:compile
    [INFO] |  |  \- org.eclipse.jetty:jetty-client:jar:9.3.20.v20170531:compile
    [INFO] |  +- joda-time:joda-time:jar:2.9.9:compile
    [INFO] |  +- org.apache.logging.log4j:log4j-web:jar:2.10.0:compile
    [INFO] |  +- com.tdunning:json:jar:1.8:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-core:jar:3.1.0:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-jvm:jar:3.1.0:compile
    [INFO] |  +- io.dropwizard.metrics:metrics-json:jar:3.1.0:compile
    [INFO] |  +- com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter:jar:0.1.2:compile
    [INFO] |  \- javolution:javolution:jar:5.5.1:compile
    [INFO] +- org.apache.hive.hcatalog:hive-hcatalog-core:jar:3.1.0:compile
    [INFO] |  +- org.apache.hive:hive-cli:jar:3.1.0:compile
    [INFO] |  \- org.apache.hadoop:hadoop-archives:jar:3.1.0:compile
    [INFO] +- com.alibaba.datax:datax-common:jar:0.0.1-SNAPSHOT:compile
    [INFO] |  \- com.alibaba:fastjson:jar:1.2.79:compile
    [INFO] +- org.slf4j:slf4j-api:jar:1.7.10:compile
    [INFO] +- ch.qos.logback:logback-classic:jar:1.0.13:compile
    [INFO] |  \- ch.qos.logback:logback-core:jar:1.0.13:compile
    [INFO] +- com.alibaba.datax:plugin-unstructured-storage-util:jar:0.0.1-SNAPSHOT:compile
    [INFO] |  +- dom4j:dom4j:jar:1.6.1:compile
    [INFO] |  |  \- xml-apis:xml-apis:jar:1.0.b2:compile
    [INFO] |  +- net.sourceforge.javacsv:javacsv:jar:2.0:compile
    [INFO] |  +- org.anarres.lzo:lzo-core:jar:1.0.5:compile
    [INFO] |  |  \- com.google.code.findbugs:annotations:jar:2.0.3:compile
    [INFO] |  +- io.airlift:aircompressor:jar:0.3:compile
    [INFO] |  \- com.alibaba:easyexcel:jar:2.2.6:compile
    [INFO] |     +- org.apache.poi:poi:jar:3.17:compile
    [INFO] |     +- org.apache.poi:poi-ooxml:jar:3.17:compile
    [INFO] |     |  \- com.github.virtuald:curvesapi:jar:1.04:compile
    [INFO] |     +- org.apache.poi:poi-ooxml-schemas:jar:3.17:compile
    [INFO] |     |  \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:compile
    [INFO] |     +- cglib:cglib:jar:3.1:compile
    [INFO] |     \- org.ehcache:ehcache:jar:3.4.0:compile
    [INFO] \- org.hamcrest:hamcrest-core:jar:1.3:compile
    

    只引用了org.glassfish:javax.el:pom:3.0.1-b12,去除依赖后问题并未解决。

    <dependency>
        <groupId>org.apache.hive</groupId>
        <artifactId>hive-service</artifactId>
        <version>${hive.version}</version>
        <exclusions>
            <exclusion>
                <groupId>org.glassfish</groupId>
                <artifactId>javax.el</artifactId>
            </exclusion>
        </exclusions>
    </dependency>
    

    最后找到maven仓库,将SNAPSHOT的pom使用正式包代替,将org\glassfish\javax.el\3.0.1-b06中的javax.el-3.0.1-b06.pom移动到org\glassfish\javax.el\3.0.1-b06-SNAPSHOT中并更名为javax.el-3.0.1-b06-SNAPSHOT.pom
    javax.el-3.0.1-b06-SNAPSHOT.pom.lastupdate删除。

    关于7,8,11版本的快照版本也按照以上处理,最后打包无报错异常。

    相关文章

      网友评论

          本文标题:解决Failure to find org.glassfish:

          本文链接:https://www.haomeiwen.com/subject/jazgnrtx.html