简体   繁体   中英

Maven not installing aws-encryption-sdk-java dependency

maven noob here

I have this in my pom.xml file

<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 . Also the jar file wouldn't appear under External Libraries in IntelliJ.

If my googling skills haven't filed me, isn't mvn dependency:resolve suppose to download the jar file? 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?
You can check the repositories in the settings.xml (usually in a .m2 folder).
If using nexus/artifactory/... please check in the respective application if something fails

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM