Update Nexus repository indexes? Follow
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
Please sign in to leave a comment.
in the "Sync" pane.
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.
>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
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.