Does Intellij Automatically Handle Nexus

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.

- M

1 comment
Comment actions Permalink

Morkafur wrote:

Is having Intellij handle nexus (in addition to the normal maven repo) just a matter of setting values in the POM file?

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.

0

Please sign in to leave a comment.