简体   繁体   中英

The jar package version in idea maven is not updated

I was using IDEA java for my project when I upgraded the guava version in maven to the latest. And the file shows the latest version number, but why does idea still have the old version number and the version numbers don't match?


The idea shows a guava version 20 in the toolbox.

在此处输入图片说明

but the actual toobox pom.xml has guava version 31.0.1-jre

在此处输入图片说明

PS. I have recompiled the project using the mvn idea:modul command and the version has not changed

idea version 2020.3

What am I doing wrong?

Sometimes its simply the IDEA cache not cleared properly.Try File->Invalidate cache and restart

Updated Solution 2: 依赖树

I have tried to build this project on my local, but with eclipse https://github.com/HughWick/toolbox/tree/2.0.X Its resolving properly.

As long as dependencies resolving properly IDE doesnt matter. If this is not the right version to verify please let me know the project version you trying to built or share the pom details.

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