Maven配置之Setting文件详解
来源:互联网 发布:图书推荐系统 php源码 编辑:程序博客网 时间:2024/06/06 18:34
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <!--本地仓库。该值表示构建系统本地仓库的路径。其默认值为${user.home}/.m2/repository。 --> <localRepository>D:/Software/Maven/Repository</localRepository> <!--Maven是否需要和用户交互以获得输入。如果Maven需要和用户交互以获得输入,则设置成true,反之则应为false。默认为true。 --> <interactiveMode>true</interactiveMode> <!--Maven是否需要使用plugin-registry.xml文件来管理插件版本。 --> <!--如果设置为true,则在{user.home}/.m2下需要有一个plugin-registry.xml来对plugin的版本进行管理 --> <!--默认为false。 --> <usePluginRegistry>false</usePluginRegistry> <!--表示Maven是否需要在离线模式下运行。如果构建系统需要在离线模式下运行,则为true,默认为false。 --> <!--当由于网络设置原因或者安全因素,构建服务器不能连接远程仓库的时候,该配置就十分有用。 --> <offline>false</offline> <!--当插件的组织Id(groupId)没有显式提供时,供搜寻插件组织Id(groupId)的列表。 --> <!--该元素包含一个pluginGroup元素列表,每个子元素包含了一个组织Id(groupId)。 --> <!--当我们使用某个插件,并且没有在命令行为其提供组织Id(groupId)的时候,Maven就会使用该列表。 --> <!--默认情况下该列表包含了org.apache.maven.plugins。 --> <pluginGroups> <!--plugin的组织Id(groupId) --> <pluginGroup>org.cis.test</pluginGroup> </pluginGroups> <!--用来配置不同的代理,多代理profiles可以应对笔记本或移动设备的工作环境:通过简单的设置profile id就可以很容易的更换整个代理配置。 --> <proxies> <!--代理元素包含配置代理时需要的信息 --> <proxy> <!--代理的唯一定义符,用来区分不同的代理元素。 --> <id>myproxy</id> <!--该代理是否是激活的那个。true则激活代理。当我们声明了一组代理,而某个时候只需要激活一个代理的时候,该元素就可以派上用处。 --> <active>false</active> <!--代理的协议。 协议://主机名:端口,分隔成离散的元素以方便配置。 --> <protocol>http://…</protocol> <!--代理的主机名。协议://主机名:端口,分隔成离散的元素以方便配置。 --> <host>proxy.somewhere.com</host> <!--代理的端口。协议://主机名:端口,分隔成离散的元素以方便配置。 --> <port>8080</port> <!--代理的用户名,用户名和密码表示代理服务器认证的登录名和密码。 --> <username>proxyuser</username> <!--代理的密码,用户名和密码表示代理服务器认证的登录名和密码。 --> <password>somepassword</password> <!--不该被代理的主机名列表。该列表的分隔符由代理服务器指定;例子中使用了竖线分隔符,使用逗号分隔也很常见。 --> <nonProxyHosts>*.google.com|ibiblio.org</nonProxyHosts> </proxy> </proxies> <!--配置服务端的一些设置。一些设置如安全证书不应该和pom.xml一起分发。这种类型的信息应该存在于构建服务器上的settings.xml文件中。 --> <servers> </servers> <!--为仓库列表配置的下载镜像列表。 --> <mirrors> <!--给定仓库的下载镜像。 --> <mirror> <!--This sends everything else to /public --> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror> </mirrors> <!--根据环境参数来调整构建配置的列表。settings.xml中的profile元素是pom.xml中profile元素的裁剪版本。 --> <!--它包含了id,activation, repositories, pluginRepositories和 properties元素。 --> <!--这里的profile元素只包含这五个子元素是因为这里只关心构建系统这个整体(这正是settings.xml文件的角色定位),而非单独的项目对象模型设置。 --> <!--如果一个settings中的profile被激活,它的值会覆盖任何其它定义在POM中或者profile.xml中的带有相同id的profile。 --> <profiles> </profiles></settings>
注:本文件详情介绍来自网络大神,在此表示感谢。
阅读全文
0 0
- Maven配置之Setting文件详解
- maven配置setting.xml文件详解
- maven的setting.xml文件配置详解
- maven的setting.xml文件配置详解
- maven的setting.xml文件配置详解
- maven的setting.xml文件配置详解
- maven配置setting.xml文件详解
- maven的setting.xml文件配置详解
- Maven之setting.xml配置详解
- Maven之setting.xml文件标签详解
- maven setting 文件配置
- maven配置之setting配置
- maven配置setting.xml文件、POM.xml详解
- maven配置setting.xml文件、POM.xml详解
- maven配置setting.xml详解
- Maven--setting.xml 配置详解
- Maven setting.xml 配置详解
- maven的setting文件详解
- 高德地图api JavaScript鼠标点击获取地图经纬度
- 《ABAP技术总结》
- android活动的启动模式
- Activity欢迎页退出时的放大淡出效果
- django-admin:command not found的解决办法
- Maven配置之Setting文件详解
- Yii 表单交互的三种方式
- 实战Apache安装配置
- vs中debug和release版本的区别
- Java入门基础之数组以及类与对象 个人笔记
- 51采集PCF8591数据通过ESP8266上传C#上位机
- 采访优秀学长学姐后的感悟与体会
- 机器学习笔记——半监督学习
- Shell中的数组及其相关操作