找不到依赖项javax.mail:mail:1.4 [英] Dependency javax.mail:mail:1.4 not found

查看:396
本文介绍了找不到依赖项javax.mail:mail:1.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IntelliJ IDEA中导入了maven项目之后,pom.xml文件中出现两个错误:

After I imported a maven project in IntelliJ IDEA, there are two errors in the pom.xml file:

无法读取javax.mail:mail:jar:1.4的工件描述符"

"Failed to read artifact descriptor for javax.mail:mail:jar:1.4"

未找到依赖项javax.mail:mail:1.4"

"Dependency javax.mail:mail:1.4 not found"

有人知道这些错误的原因吗?我该如何解决?

Does anyone know the reason behind these errors and how can I fix them?

谢谢你,祝你有美好的一天!

Thank you and have a great day!

推荐答案

由于许可证限制,较早的Java邮件类不在maven Central或java.net存储库中.通常,公司会托管自己的Maven代理并在其中添加这些类.

Due to license restrictions the older java mail classes are not in maven central or the java.net repository. usually companies host their own maven proxy and add these classes there.

从1.4.5版开始,相关性在

Since around version 1.4.5 the dependencies are available in the java.net repository. Some later versions are also in maven central.

所有其他版本都需要从 oracle网站下载并添加到Maven代理或本地Maven存储库中-例如使用依赖插件.

All other versions need to be downloaded from the oracle website and either added to a maven proxy or to your local maven repository - for example using the dependency plugin.

这篇关于找不到依赖项javax.mail:mail:1.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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