<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository -->
<localRepository>E:/maven/response</localRepository>
<!--pluginGroups>
</pluginGroups-->
<!--proxies>
</proxies-->
<servers>
<server>
<id>nexus-releases</id>
<username>admin</username>
<password>nexusadmin</password>
</server>
<server>
<id>nexus-snapshots</id>
<username>admin</username>
<password>nexusadmin</password>
</server>
</servers>
<pluginRepositories>
<pluginRepository>
<id>mypublic</id>
<name>Public Repositories</name>
<url>http://192.168.1.199:8081/nexus/content/groups/public/</url>
</pluginRepository>
</pluginRepositories>
<mirrors>
<mirror>
<id>central</id>
<name>internal nexus repository</name>
<url>http://192.168.1.199:8081/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>
<profiles>
<profile>
<id>nexus</id>
<!--Enable snapshots for the built in central repo to direct -->
<!--all requests to nexus via the mirror -->
<repositories>
<repository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>central</id>
<url>http://central</url>
<releases><enabled>true</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>
<activeProfiles>
<!--make the profile active all the time -->
<activeProfile>nexus</activeProfile>
</activeProfiles>
</settings>
maven setting_ql
最后编辑于 :
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- 有些时候打包的时候需要指定Maven settings.xml(譬如从内部Nexus 私服获取依赖),如下: Ma...
- setting.xml配置文件详解 maven的配置文件settings.xml存在于两个地方: 1.安装的地方:...