Maven无法解决依赖关系-javax.activation [英] Maven failed to resolve dependencies - javax.activation

查看:949
本文介绍了Maven无法解决依赖关系-javax.activation的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用许多jar的可运行的Maven Web应用程序.尝试添加javax.activation并执行mvn全新安装失败.

I have a working maven web application which uses many jars. Trying to add javax.activation and do a mvn clean install fails.

我收到无法在项目xxx上执行目标:无法解决中央(http://build02.efollett.com:8081/artifactory/libs-释放)

I get "Failed to execute goal on project xxx: Could not resolve dependencies for project javax.activation:activation:jar:1.0.2 in central (http://build02.efollett.com:8081/artifactory/libs-release)

当我检查我的Maven存储库时,我在那看到激活罐.例如,导航到C:\ Users \ me.m2 \ repository \ javax \ activation \ activation \ 1.0.2,我看到以下内容.

When I check my maven repository I see the activation jar there. For example, navigating to C:\Users\me.m2\repository\javax\activation\activation\1.0.2 I see the following.

activation-1.0.2.jar.lastUpdated
activation-1.0.2.pom
activation-1.0.2.pom.sha1
activation-1.0.2.pom.tmp.sha1.tmp

我的同事使用的是相同的settings.xml,并且我已经将本地pom.xml与cvs中的版本进行了比较.他们都是一样的!对我想念的东西有什么想法吗?

My colleague is using the same settings.xml and I have compared my local pom.xml to the version in cvs. They are all the same! Any thoughts on what I am missing?

感谢您的帮助.

推荐答案

您需要的工件是javax.activation:activation:jar:1.0.2(请注意jar部分),而您的存储库中的工件是javax.activation:activation:pom:1.0.2.将jar放入您的仓库中,或者将<classifier>pom</classifier>添加到您的<dependency>.

The artifact you need is javax.activation:activation:jar:1.0.2 (pay attention to the jar part), while the artifact you have in your repo is javax.activation:activation:pom:1.0.2. Either place a jar one into your repo or add <classifier>pom</classifier> to your <dependency>.

这篇关于Maven无法解决依赖关系-javax.activation的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆