我正在使用 IntelliJ Ultimate 版本 2022.1。我有以下 pom.file:
....
</build>
<dependencies>
<dependency>
<groupId>io.dexi</groupId>
<artifactId>webi-common-rest-service</artifactId>
<version>1.15.61</version>
</dependency>
</dependencies>
</project>
我已經從終端和 IntelliJ 運行命令 mvn clean install
。要檢查我是否有正確版本的庫,我運行命令mvn dependency:tree
,結果如下:
[INFO] - io.dexi:webi-common-rest-service:jar:1.15.61:compile
[INFO] | - com.squareup.retrofit2:retrofit:jar:2.4.0:compile
[INFO] | | \- com.squareup.okhttp3:okhttp:jar:3.10.0:compile
[INFO] | - com.squareup.okio:okio:jar:1.13.0:compile
它檢索庫的正確版本(1.15.61)。但是當我在 IntelliJ 中打開該庫的檔案時,它默認為錯誤的版本,如下所示:
我嘗試將 IntelliJ 更新到最新版本并下載最新補丁,但問題仍然存在。
此外,我試圖使快取無效并重新啟動 IntelliJ。盡管我做了一切,這個 IntelliJ 沒有顯示正確的版本庫。
uj5u.com熱心網友回復:
我通過使用 IntelliJ 降級版本解決了這個問題。對我有用的版本是:IntelliJ 2019.1.4。
我希望 IntelliJ 能解決這個問題,因為使用舊版本并不理想。
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/505774.html