读书人

去指定的网站上载maven库

发布时间: 2012-10-26 10:30:58 作者: rapoo

去指定的网站下载maven库

在.m2文件夹内建立settings.xml

贴入如下内容:

<?xml version="1.0" encoding="UTF-8"?>
<settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
??? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
? <profiles>
??? <profile>
????? <repositories>
??????? <repository>
????????? <snapshots>
??????????? <enabled>false</enabled>
????????? </snapshots>
????????? <id>central</id>
????????? <name>libs-release</name>
????????? <url>http://192.168.3.132:8080/artifactory/libs-release</url>
??????? </repository>
??????? <repository>
????????? <snapshots />
????????? <id>snapshots</id>
????????? <name>libs-snapshot</name>
????????? <url>http://192.168.3.132:8080/artifactory/libs-snapshot</url>
??????? </repository>
????? </repositories>
????? <pluginRepositories>
??????? <pluginRepository>
????????? <snapshots>
??????????? <enabled>false</enabled>
????????? </snapshots>
????????? <id>central</id>
????????? <name>plugins-release</name>
????????? <url>http://192.168.3.132:8080/artifactory/plugins-release</url>
??????? </pluginRepository>
??????? <pluginRepository>
????????? <snapshots />
????????? <id>snapshots</id>
????????? <name>plugins-snapshot</name>
????????? <url>http://192.168.3.132:8080/artifactory/plugins-snapshot</url>
??????? </pluginRepository>
????? </pluginRepositories>
????? <id>artifactory</id>
??? </profile>
? </profiles>
? <activeProfiles>
??? <activeProfile>artifactory</activeProfile>
? </activeProfiles>
</settings>

读书人网 >编程

热点推荐