Maven 第二天:关于引入包的问题=from the specified remote repositories

在使用BboneCP时,遇到hbnpojogen-persistence包引入困难,尝试多种网上建议未果。将包放入本地仓库仍无法解决。最终发现是Maven的引入源存在问题,删除原有引入源后问题解决。提示需针对具体问题进行分析,确保Maven私服配置正确。

问题:

首先是由于导入包的时候,我在用BboneCP的时候,下了官网的地址,这里是遇到了他的引入包hbnpojogen-persistence的时候遇到问题。刚开始死活不知道怎么回事儿,网上也看了很多,说什么插件,什么解决解决的。可总是没有解决。

 

其次,我把他的包下到本地,放到自己本地的仓库,还是不行。这可是怎么回事儿?把我一度弄得怀疑自己建的Maven私服是否有问题。

 

可是自己还是坚信自己的私服是可以用的。所以,我去.m2下把这个包的相关都删除掉。居然成功了,唉,原来是引入的地方本来就使得Maven的引入源有问题,所以才导致了这个问题的存在,所以删除原来的引入源,就成功解决了。

 

当然,这个只是自己遇到的情况,因为看他的官网的Maven私服,似乎缺少了一些东西,所以才导致下载会失败。而现实当中,可能有这样那样的问题存在,这个就得是所谓的具体问题具体分析了,所以还请各位仔细的观察自己的问题所在。

mvn -X dependency:get -DgroupId=org.apache.hive -DartifactId=hive-jdbc -Dversion=3.1.3 -U 执行时报错[WARNING] Plugin validation issues were detected in 2 plugin(s) [WARNING] Plugin validation issues were detected in 2 plugin(s) [WARNING] [WARNING] * org.apache.maven.plugins:maven-site-plugin:3.12.1 [WARNING] * org.apache.maven.plugins:maven-dependency-plugin:2.8 [WARNING] [WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE] [WARNING] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: No versions are present in the repository for the artifact with a range [3.0.0,) [ERROR] org.glassfish:javax.el:jar:null [ERROR] [ERROR] from the specified remote repositories: [ERROR] aliyun-mirror (https://maven.aliyun.com/repository/public, releases=true, snapshots=false) [ERROR] Path to dependency: [ERROR] 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0 [ERROR] 2) org.apache.hive:hive-jdbc:jar:3.1.3 [ERROR] 3) org.apache.hive:hive-service:jar:3.1.3 [ERROR] 4) org.apache.hive:hive-llap-server:jar:3.1.3 [ERROR] 5) org.apache.hbase:hbase-server:jar:2.0.0-alpha4 [ERROR] 6) org.glassfish.web:javax.servlet.jsp:jar:2.3.2 [ERROR] [ERROR] [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:get (default-cli) on project standalone-pom: Couldn't download artifact: No versions are present in the repository for the artifact with a range [3.0.0,) org.glassfish:javax.el:jar:null from the specified remote repositories: aliyun-mirror (https://maven.aliyun.com/repository/public, releases=true, snapshots=false) Path to dependency: 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0 2) org.apache.hive:hive-jdbc:jar:3.1.3 3) org.apache.hive:hive-service:jar:3.1.3 4) org.apache.hive:hive-llap-server:jar:3.1.3 5) org.apache.hbase:hbase-server:jar:2.0.0-alpha4 6) org.glassfish.web:javax.servlet.jsp:jar:2.3.2 Caused by: org.apache.maven.plugin.MojoExecutionException: Couldn't download artifact: No versions are present in the repository for the artifact with a range [3.0.0,) org.glassfish:javax.el:jar:null from the specified remote repositories: aliyun-mirror (https://maven.aliyun.com/repository/public, releases=true, snapshots=false) Path to dependency: 1) org.apache.maven.plugins:maven-downloader-plugin:jar:1.0 2) org.apache.hive:hive-jdbc:jar:3.1.3 3) org.apache.hive:hive-service:jar:3.1.3 4) org.apache.hive:hive-llap-server:jar:3.1.3 5) org.apache.hbase:hbase-server:jar:2.0.0-alpha4 6) org.glassfish.web:javax.servlet.jsp:jar:2.3.2 [ERROR] [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/MojoExecutionException
11-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值