Does Intellij Automatically Handle Nexus Follow
We have a Maven project already so I'm wondering if I need to install the separate Sonatype war file for the nexus repository of if Intellij will automatically handle getting whatever is required from the nexus repo? We will require nexus to do our actual builds.
Is having Intellij handle nexus (in addition to the normal maven repo) just a matter of setting values in the POM file?
If so, are there any examples of how to set this up in Intellij?
Thanks in advance for any information and suggestions.
Please sign in to leave a comment.
Yes. As long you can build it via maven from the command line, IDEA can handle it.
However, there is a small amount of functionality that is unavailable without some additional configuration. If you want the Nexus repository to be included in search when IDEA searches for a dependency -- for example -- when using the "insert dependency" action in a POM or the "Add maven dependency" quick fix for "not found" classes -- you need to add the repository to File > Settings > [IDE Settings] > Maven > Repositories On the bottom is a place to add a Nexus or Artifactory repository. By default IDEA only indexes your local repository, maven central, and specific repositories it encounters in a POM.
I am working in intelliJ Ultimate 2019... I do not see where I can add in nexus repos. I am looking in File -> Settings... -> Build, Execution, Deployment -> Build Tools -> Maven -> Repositories. Is there an update where can add NEXUS repos?
These settings only display the repositories that you configure in Maven for the Maven project. You should add the repositories in Maven.