1.Maven pre-reliance
Check that your computer is whether to install java
2. Download maven
URL www.apache.org
Extracting archive maven,
And create the appropriate path maven local repository.
Open the conf folder modify file settings.xml
3. settings.xml study and modify the
Setting.xml Mavenconf can directly modify file folder, or create a setting · xml file in the folder .m2.
setting.xml mirrors inside a node, to configure the image URL. a plurality of mirrors may be arranged mirror, each mirror has id, name, url, mirrorOf properties.
- id uniquely identifies a mirror
- name seemingly not much use, corresponds described
- url is the official bank address
- Alternatively mirrorOf represents a mirror position, for example on the central place of the official expressed central repository.
mirror is not like that in order to write the settings.xml query. The so-called first is not necessarily the top one.
When there id to order B, A, C in the mirrors of the mirror node, maven will be specified in accordance with the first alphabetically, so no matter how arranged, will find this A mirror to find it, when A is unable to connect, there case of an accident, only to B queries.
Add the following code in setting · xml: