简体   繁体   中英

Issue with missing artifacts in a Maven/Spring project

I'm trying to learn REST with a Spring/Maven context and so I'm going through a Pankaj Kumar (JournalDev) tutorial. I set up a Spring project in STS (Spring Tool Suite), and according to the tutorial, I will need to include the following dependencies: jackson-databind, jackson-core, and jackson-annotations. I declared them in the pom.xml editor in STS.

I wanted to include the actual XML from the POM.xml file, everytime I tried to submit the question, I got the error "Your post appears to contain code that is not properly" and it would allow me to submit this posting at all. It's not code, it's XML and I did indent by 4 spaces per the instructions. If you need to see the actual XML, please tell how to get around this issue with StackOverflow and I will gladly include the actual XML.

I get three errors in the POM.xml file:

Missing artifact com.fasterxml.jackson.core:jackson-databind:bundle:2.5.3
Missing artifact com.fasterxml.jackson.core:jackson-core:bundle:2.5.3
Missing artifact com.fasterxml.jackson.core:jackson-annotations:bundle:2.5.3

Basically, everything looks good to the extent of my knowledge in this situation. Can anyone please help?

Regarding pom.xml error, You will get it when added dependencies are not updated in .m2 repository. Try it by deleting .m2 repository after closing STS. After deleting is finished, open STS and do the maven -> Update Project, it will update .m2 repository automatically.

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