How to resolve missing artifact error when using E

2019-09-16 05:39发布

I am using the aws Java plugin for Eclipse. I didn't have any issues during the installation process but after I used the plugin to create a sample DynamoDB project, I got this error

Missing artifact com.amazonaws:aws-java-sdk-cl....watchmetris.jar:1.11.123(click for 156 more...).

clicking didn't do anything.

I thought the error was due to the fact that I didn't install that jar during the installation process - I only installed "AWS Toolkit for Eclipse".

I went back into Eclipse and installed every non optional plugin from the aws(see below) enter image description here

After I restarted Eclipse and tried creating my DynamoDB project again, I get a different failed to read artifact descriptor error(see below) enter image description here

Has anyone experienced this issue before or know what the solution is? Elastic load balancer should be apart of AWS Toolkit which I installed. I've tried removing and reinstalling the aws plugin but I'am still getting missing artifact errors. I've looked at other threads on AWS plugin for Eclipse as well.

3条回答
干净又极端
2楼-- · 2019-09-16 06:09

The problem is not your AWS Toolket, it's a problem of your maven. Please try to create a project with maven to check if maven's setting is correct. If maven is correct, please see your pom file in xml and check the dependency is correct? If you cannot create maven project, it's means that your maven setting is wrong somewhere!

查看更多
别忘想泡老子
3楼-- · 2019-09-16 06:11

I received a similar error "failure to transfer com.amazonaws:aws-java-sdk ...". The pom resolution could work, but here's another solution. So, when you start an aws project for the first time, certain artifacts necessary for maven are stored under .m2\repository\com\amazonaws.

What happened to me was that when I deleted one of my aws projects, I also deleted the resources being referred to which was somewhere in the aforementioned directory. And because the directory existed, eclipse's aws toolkit didn't bother downloading it again. I solved it by just deleting the $home.m2\repository\com\amazonaws directory. So next time I created a new aws project, it had to download all the artifacts.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2019-09-16 06:28

For anyone dealing with this issue with this issue, I got it to work! I can't really explain why it works though - maybe Maven's way of resetting some setting.

What I did was go inside pom.xml, the configuration file for Maven, and into the Dependencies tab. This is what I saw enter image description here

I reasoned that the missing artifact was in the aws-java-sdk jar so I removed it. I then deleted the project from disk and created a new one. The new project came with the correct dependencies and no compiler errors!

查看更多
登录 后发表回答