设置阿里云maven中央仓库的l

更新时间:2023-05-29 21:53:28 阅读: 评论:0

设置阿⾥云maven中央仓库的l
本来想找⼀个可⽤的设置⽂件,结果乱七⼋糟的,⼲脆⾃⼰做了⼀个,同时还放上了Spring的SNAPSHOT和MILESTONE/RELEASE仓库,希望能帮到⼀些⼈。<?xml version="1.0" encoding="UTF-8"?>
<ttings xmlns="/SETTINGS/1.0.0"
xmlns:xsi="/2001/XMLSchema-instance"
xsi:schemaLocation="/SETTINGS/1.0.0 /xsd/ttings-1.0.0.xsd">
<!-- 默认的值是${ur.home}/.m2/repository -->
<localRepository>D:/Program/.m2/repository</localRepository>
昆明在线<!-- 如果Maven要试图与⽤户交互来得到输⼊就设置为true,否则就设置为fal,默认为true。 -->
free fron
<interactiveMode>true</interactiveMode>
energy什么意思<!-- 如果Maven使⽤${ur.home}/.l来管理plugin的版本,就设置为true,默认为fal。 -->
<uPluginRegistry>fal</uPluginRegistry>
<!-- 如果构建系统要在离线模式下⼯作,设置为true,默认为fal。如果构建服务器因为⽹络故障或者安全问题不能与远程仓库相连,那么这个设置是⾮常有⽤的。 -->
<offline>fal</offline>
<mirrors>
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>/nexus/content/groups/public/</url>
lycra
</mirror>
</mirrors>
<!-- l中的profile是l中的profile的简洁形式。它包含了激活(activation),仓库(repositories),插件仓库(pluginRepositories)和属性(properties)元素。
瑜伽的英语profile元素仅包含这四个元素是因为他们涉及到整个的构建系统,⽽不是个别的POM配置。如果ttings中的profile被激活,那么它的值将重载POM或者l中的任何相等ID的profiles。 --> <profiles>
<profile>
<id>default</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<repositories>
<repository>
<id>spring-milestone</id>
汤唯韩国获奖<name>Spring Milestone Repository</name>
汉语四级
<url>repo.spring.io/milestone</url>
<releas>
<enabled>true</enabled>
</releas>
<snapshots>
<enabled>fal</enabled>
</snapshots>
<layout>default</layout>
</repository>
<repository>
<id>spring-snapshot</id>
<name>Spring Snapshot Repository</name>chaco
<url>repo.spring.io/snapshot</url>
<releas>
<enabled>fal</enabled>
</releas>
<snapshots>
<enabled>true</enabled>
</snapshots>
<layout>default</layout>
</repository>aga
</repositories>
</profile>
skyfire</profiles>
<!-- activations是profile的关键,就像POM中的profiles,profile的能⼒在于它在特定情况下可以修改⼀些值。
⽽这些情况是通过activation来指定的。 -->
<!-- <activeProfiles/> -->
</ttings>
参考资料:

本文发布于:2023-05-29 21:53:28,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/809259.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:设置   仓库   元素   系统
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图