我是靠谱客的博主 包容老鼠,这篇文章主要介绍使用maven编译时遇到 Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to nexus,现在分享给大家,希望可以做个参考。

在maven进行编译的时候遇到如下的错误

Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to nexus maven (https://repo.maven.apache.org/maven2/)

修改pom文件

<dependency>
    <groupId>org.apache.hive</groupId>
    <artifactId>hive-jdbc</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.glassfish</groupId>
            <artifactId>javax.el</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-runner</artifactId>
        </exclusion>
    </exclusions>
    <version>3.1.2</version>
</dependency>

然后重新编译,问题得到解决

最后

以上就是包容老鼠最近收集整理的关于使用maven编译时遇到 Could not transfer artifact org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT from/to nexus的全部内容,更多相关使用maven编译时遇到内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(108)

评论列表共有 0 条评论

立即
投稿
返回
顶部