Add Maven Artifact Dependency

Answered

Hello I tried to add a “Maven Artifact Dependency” in gradle and noticed that nothing is being returned. I investigated further and tried to update the Repository cache for Maven. However hitting update does nothing, doesnt spawn a process…
I was wondering if anybody has also run into the same issue.

 

0
7 comments

Hello,

Can you check if you have this problem in version 2025.1.4.1 of the IDE too? Or just 2025.2?

Is the IDE installed via Toolbox or manually?

Please also provide IDE logs for analysis (entire archive): Help | Collect Logs and Diagnostic Data. I will search for exceptions and check your system environment settings.

Logs can be uploaded securely to our server at https://uploads.jetbrains.com. Make sure to share the id of the upload here so that I can find it.

0

Hello, I uploaded my logs to the following Upload id: 2025_09_02_Vt6qaABaw1zAWTQJrpFhoF (file: idea-logs-20250902-18071612188372870202820689.zip).
Deleting the gradle cache did not resolve my issue

0

Peterflis01 The idea.log file in the archive is empty. Could you look for older log files with names like idea1.log in the same folder and upload them too?

0

I have uploaded again, idea.log looks to be populated in this one.

Upload id: 2025_09_03_4XYJip5UUMaQ84rFQtMWJW (file: idea-logs-20250903-1646419969851168700040238.zip)

 

0

There is the following error in the logs which indicates corrupted Maven dependency cache:

2025-09-03 16:45:23,252 [   4050]   INFO - #o.j.i.maven - Starting update maven index for local:local:C:\Users\<YOUR_USERNAME>\.m2\repository
2025-09-03 16:45:23,258 [   4056]   WARN - #o.j.i.maven - Error updating repository C:\Users\<YOUR_USERNAME>\.m2\repository GAV index
java.nio.file.NoSuchFileException: C:\Users\YOUR_USERNAME\.m2\repository
	at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
    ...
	at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
    ...
	at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:197)
	at com.intellij.platform.core.nio.fs.DelegatingFileSystemProvider.readAttributes(DelegatingFileSystemProvider.java:233)
	at java.base/java.nio.file.Files.readAttributes(Files.java:1854)
	at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:220)
	at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:277)
	at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:323)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2792)
	at java.base/java.nio.file.Files.walkFileTree(Files.java:2870)
	at org.jetbrains.idea.maven.indices.MavenLocalGavIndexImplKt.walkBottomUp(MavenLocalGavIndexImpl.kt:26)
	at org.jetbrains.idea.maven.indices.MavenLocalGavIndexImplKt.access$walkBottomUp(MavenLocalGavIndexImpl.kt:1)
	at org.jetbrains.idea.maven.indices.MavenLocalGavIndexImpl$update$2.invokeSuspend(MavenLocalGavIndexImpl.kt:80)
	at org.jetbrains.idea.maven.indices.MavenLocalGavIndexImpl$update$2.invoke(MavenLocalGavIndexImpl.kt)
	at org.jetbrains.idea.maven.indices.MavenLocalGavIndexImpl$update$2.invoke(MavenLocalGavIndexImpl.kt)
    ...

Have you tried to also close the IDE and delete the entire C:\Users\<YOUR_USERNAME>\.m2\repository folder, then reopen the project and reload it from the Maven tool window?

0

I did try this, which did work for local dependencies that I have installed. I was looking to be able to query maven central so i look up guava and it comes up with whats on maven central. idk if that is still supported

0
It seems to be a known issue with IDEA-371470 . I see the same exception in the shared logs. Please follow the bug for further updates from the developers. 
0

Please sign in to leave a comment.