My company uses an internally-hosted Nexus repo. My Maven settings mirror all repository requests to the internal Nexus repo first, which mirrors the public repos like http://central. However, our Nexus repo is secured with a username and password; is this something that's supported by IDEA 13.1?
The reason I want to do this is so that IDEA will automatically download artifacts from our private Nexus server as needed, instead of me having to build everything on the command line first, to force Maven to download all the required jars and poms.
My ~/.m2/settings.xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?><settings> <mirrors> <mirror> <id>nexus</id> <mirrorOf>*</mirrorOf> <url>https://nexus.internal/nexus/content/groups/public</url> </mirror> </mirrors> <profiles> <profile> <id>nexus</id> <repositories> <repository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>http://central</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </pluginRepository> </pluginRepositories> </profile> </profiles> <activeProfiles> <activeProfile>nexus</activeProfile> </activeProfiles> <servers> <server> <id>nexus</id> <username>skingsland</username> <password>{...=}</password> <filePermissions>664</filePermissions> <directoryPermissions>775</directoryPermissions> </server> </servers></settings>
In Project Settings | Maven, I've configured these properties:
User settings file: /Users/skingsland/.m2/settings.xml
Local repository: /Users/skingsland/.m2/repository