<?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.安装的地方:...