首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

去指定的网站上载maven库

2012-10-26 
去指定的网站下载maven库在.m2文件夹内建立settings.xml贴入如下内容:?xml version1.0 encodingUTF-

去指定的网站下载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>

热点排行