Project

General

Profile

Actions

How to connect to Nexus

By default, your local maven instance will download the required artifact from public maven repositories. This guides will make your maven to download all artifacts from the local Nexus instance.

  1. download the settings.xml and overwrite the one in your maven data folder:
    Windows XP:
    c:/Documents and Settings/<<username>>/.m2/settings.xml
    
    Windows Vista or 7:
    c:/Users/<<username>>/.m2/settings.xml
    
  2. edit settings.xml and replace the USER_NAME and PASSWORD with your Nexus a/c (see Add Nexus User):
      <server>
          <id>snapshots</id>
          <username>USER_NAME</username>
          <password>PASSWORD</password>
        </server>
    
        <server>
          <id>releases</id>
          <username>USER_NAME</username>
          <password>PASSWORD</password>
       </server>
    
  3. save the file
  4. done

Updated by chin-yeh over 13 years ago · 3 revisions