Update Nexus repository indexes?


Currently I get errors like peer not authenticated when using maven from IntelliJ IDEA.

The nexus repositories are internal with https etc.

I remember in the past I had to edit the vm options to include truststore information but I've checked those and that's all still there.

I notice now that when it's failing like this i'm not seeing anything in the idea.log unlike previous occasions.

This is with 2021.1.1 

Comment actions Permalink


I'm seeing

java.lang.NoSuchMethodError: org.apache.maven.model.building.ModelBuildingRequest.setRawModel.....

in the "Sync" pane.

Comment actions Permalink

This is likely related but I didn't know you had to add your truststore settings to the Maven Runner VM Options. Since I had them defined at the idea.vmoptions top level but it appears you do.

Comment actions Permalink

>I didn't know you had to add your truststore settings to the Maven Runner VM Options.

Yes, since when you run Maven goals IDE creates separate Java process and uses the JDK specified in the Maven Runner. So the VM Options for IDE process are not passed to the Maven runner process. The same is for the process which imports the Maven project and updates Maven indexes: the VM Options for it you can specify in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Importing | VM options for importer.

>Also, I'm seeing

>java.lang.NoSuchMethodError: org.apache.maven.model.building.ModelBuildingRequest.setRawModel.....

We plan to fix this in next 2021.1.X IDE updates, please follow the https://youtrack.jetbrains.com/issue/IDEA-268495 for updates. As a workaround, please set Maven to the bundled with the IDE.


Please sign in to leave a comment.