[英]Maven not installing aws-encryption-sdk-java dependency
maven noob here这里的行家菜鸟
I have this in my pom.xml
file我的
pom.xml
文件中有这个
<dependency>
<groupId>com.amazonaws</groupId>
<artifactId>aws-encryption-sdk-java</artifactId>
<version>1.6.1</version>
</dependency>
but for some reason, when I do mvn dependency:resolve
, this will never show up in the list, and the code itself is forever failing to import com.amazonaws.encryptionsdk
.但出于某种原因,当我执行
mvn dependency:resolve
,这将永远不会出现在列表中,并且代码本身永远无法import com.amazonaws.encryptionsdk
。 Also the jar file wouldn't appear under External Libraries
in IntelliJ.此外,jar 文件不会出现在 IntelliJ 的
External Libraries
下。
If my googling skills haven't filed me, isn't mvn dependency:resolve
suppose to download the jar file?如果我的谷歌搜索技能没有给我归档,是不是
mvn dependency:resolve
想下载 jar 文件? Please let me know what I'm missing.请让我知道我错过了什么。 Thanks!
谢谢!
Which repositories are you connecting to?您连接到哪些存储库?
Are you connecting to nexus/artifactory/... which in its turn cannot download the dependency?您是否连接到 nexus/artifactory/... 而它又无法下载依赖项?
You can check the repositories in the settings.xml (usually in a .m2 folder).您可以检查 settings.xml 中的存储库(通常在 .m2 文件夹中)。
If using nexus/artifactory/... please check in the respective application if something fails如果使用 nexus/artifactory/... 如果出现问题,请检查相应的应用程序
Are you behind some kind of proxy server?您是否支持某种代理服务器?
You can check additional logging output by adding one of following flags to the command:您可以通过向命令添加以下标志之一来检查其他日志输出:
-e, --errors (Produce execution error messages)
-X, --debug (Produce execution debug output)
I commonly use mvn clean install
我通常使用
mvn clean install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.