IntelliJ 2020 java error: package com.fasterxml.jackson.dataformat.yaml does not exist

Answered

Just upgraded to IDEA Ultimate 2020.1 Build #IU-201.6668.121, built on April 8, 2020

I am now getting this error:

java: package com.fasterxml.jackson.dataformat.yaml does not exist

It is a Maven project. On the command line it builds just fine.

<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.10.3</version>
</dependency>

2
7 comments

Try to clear caches (File | Invalidate caches and Restart). Does it help? If not, please share a sample project where the issue could be reproduced. 

0

I tried by clearing cache not working...

0

Can you share a sample project to reproduce the issue?
By the way, does it help if you disable this option: https://i.imgur.com/8hJeqIp.png?

1

No working that way also. I share a sample project for this.

https://github.com/BhuwanUpadhyay/intellij-bug-2020.1 

<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId>
<version>5.6.0</version>
<scope>test</scope>
</dependency>
0

Could not reproduce that, here is the video: 

https://cloud.kannikov.ru/index.php/s/87irJZDGL4FLdXq

That means that the project is configured correctly and the cause is somewhere in caches. Try clearing Maven cache, reimport the project (after removing .idea directory) and, as the last step, reinstall IntelliJ IDEA. 

0

Please sign in to leave a comment.