Project

General

Profile

How to connect to Nexus » History » Version 3

chin-yeh, 04/22/2011 12:02 PM

1 1 chin-yeh
h1. How to connect to Nexus
2 2 chin-yeh
3
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.
4
5 3 chin-yeh
# download the attachment:settings.xml and overwrite the one in your maven data folder:
6
<pre>
7
Windows XP:
8
c:/Documents and Settings/<<username>>/.m2/settings.xml
9
10
Windows Vista or 7:
11
c:/Users/<<username>>/.m2/settings.xml
12
</pre>
13
# edit *settings.xml* and replace the *USER_NAME* and *PASSWORD* with your Nexus a/c (see [[Add Nexus User]]):
14
<pre>
15
  <server>
16
      <id>snapshots</id>
17
      <username>USER_NAME</username>
18
      <password>PASSWORD</password>
19
    </server>
20
21
    <server>
22
      <id>releases</id>
23
      <username>USER_NAME</username>
24
      <password>PASSWORD</password>
25
   </server>
26
</pre>
27
# save the file
28
# done