当前位置:网站首页>settings.xml
settings.xml
2022-07-29 04:21:00 【Deluxe big bowl tea】
<?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 Represents the location where the local library is saved , That is to say maven2 The main jar Save the location , Default in ${user.dir}/.m2/repository, If you need additional settings , Just switch to another path . -->
<!-- <localRepository>D:\software\apache-maven-3.6.0-bin\localRepository</localRepository> -->
<localRepository>D:\software\maven\repository</localRepository>
<!-- offline: If you don't want to compile every time , Go to the remote center library , Then set it to true. Of course, if you have downloaded the necessary dependency package . Default false.-->
<offline>false</offline>
<!--Servers : stay POM Medium distributionManagement Element defines the development library . However , specific username and pwd Can't be used in pom.xml, So save... With this configuration server Information .
id:server Of id, Used for matching distributionManagement library id, More important .
username, password: The user name and password used to log in to this server
privateKey, passphrase: Set up private key, as well as passphrase
filePermissions, directoryPermissions: When a library file or directory is created , You need permission to access .
<servers>
<server>
<id>server001</id>
<username>my_login</username>
<password>my_password</password>
<privateKey>${usr.home}/.ssh/id_dsa</privateKey>
<passphrase>some_passphrase</passphrase>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>
<server>
<id>server002</id>
<username>my_login</username>
<password>my_password</password>
<privateKey>${usr.home}/.ssh/id_dsa</privateKey>
<passphrase>some_passphrase</passphrase>
<filePermissions>664</filePermissions>
<directoryPermissions>775</directoryPermissions>
<configuration></configuration>
</server>
</servers> -->
<!-- Mirrors
Image library , Specify the image of the library , Used to add other libraries
id,name: The only sign , Used to distinguish images
url: mirrored url
mirrorOf: The service this image points to id -->
<!--<mirrorOf> It's just for central Image the warehouse , If you want to mirror all the warehouses, you can change it to :<mirrorOf>*</mirrorOf>-->
<mirrors>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>central</id>
<name>Maven Repository Switchboard</name>
<url>http://repo1.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
<mirror>
<id>ibiblio</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</mirror>
<mirror>
<id>jboss-public-repository-group</id>
<mirrorOf>central</mirrorOf>
<name>JBoss Public Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</mirror>
<mirror>
<id>google-maven-central</id>
<name>Google Maven Central</name>
<url>https://maven-central.storage.googleapis.com
</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- The image of central warehouse in China -->
<mirror>
<id>maven.net.cn</id>
<name>oneof the central mirrors in china</name>
<url>http://maven.net.cn/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<!-- Maven2 -->
<mirror>
<id>maven2</id>
<name>Maven Repository Switchboard</name>
<url>http://central.maven.org/maven2/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<mirror>
<id>release</id>
<name>release</name>
<url>https://maven.springframework.org/release/</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
<!-- Proxies
This proxy setting , It is mainly used for library user configuration that cannot directly access the center .
id: Agent's logo
active: Whether to activate the agent
protocol, host, port:protocol://host:port agent
username, password: User name and password
nonProxyHosts: You don't need an agent host
<proxies>
<proxy>
<id>myproxy</id>
<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> -->
<proxies />
<!-- Profiles
Be similar to pom.xml Medium profile Elements
It mainly includes activation,repositories,pluginRepositories and properties Elements
At the beginning of contact , Will be confused , This is a maven2 The more powerful function of —— Personality configuration .
Individually define profile after , It doesn't work , Need to activate... By satisfying conditions . -->
<!-- repositories and pluginRepositories According to the following configuration , Define the local development library , be used for release Release .
releases, snapshots: The version of each product Release perhaps snapshot
( notes :release and snapshot The difference between ,release It's usually a more stable version , and snapshot Basically unstable , Just as a snapshot ) -->
<Profiles>
<profile>
<id>spring</id>
<!--Activation Used to activate this profile
jdk: If it matches the specified jdk edition , Will activate
os: operating system
property: If maven Can detect the corresponding properties
file: Used to determine whether a file exists or does not exist
<activation>
<activeByDefault>false</activeByDefault>
<jdk>1.5</jdk>
<os>
<name>Windows XP</name>
<family>Windows</family>
<arch>x86</arch>
<version>5.1.2600</version>
</os>
<property>
<name>mavenVersion</name>
<value>2.0.3</value>
</property>
<file>
<exists>${basedir}/file2.properties</exists>
<missing>${basedir}/file1.properties</missing>
</file>
</activation> -->
<repositories>
<repository>
<id>spring</id>
<name>release/</name>
<url>https://maven.springframework.org/release/</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>repo-local</id>
<name>Internal Development Library </name>
<url>http://192.168.0.2:8082/repo-local</url>
<releases>
<enabled>true</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
</Profiles>
<!-- Besides using activation To activate profile, It can also be done by activeProfiles To activate env-test Indicates the specified profile id -->
<activeProfiles>
<activeProfile>spring</activeProfile>
</activeProfiles>
<!--interactiveMode: Indicates whether to use interactive mode , The default is true; If it is set to false, So when Maven When you need input from users , It will use a default value .-->
<interactiveMode>true</interactiveMode>
<!--pluginGroups: stay pluginGroups A series of... Can be defined under the element pluginGroup Elements . Means to pass plugin The prefix to parse plugin Where to look for .
pluginGroup The element specifies plugin Of groupId. By default ,Maven Will automatically org.apache.maven.plugins and org.codehaus.mojo Add to pluginGroups Next .
<pluginGroups>
<pluginGroup>com.your.plugins</pluginGroup>
</pluginGroups>-->
</settings>
边栏推荐
- 10. Fallback message
- 不会就坚持67天吧 平方根
- C language: structure simple syntax summary
- 编译与链接
- Don't insist on 66 days. Weight generates random numbers
- C语言:typedef知识点总结
- Implementation of jump connection of RESNET (pytorch)
- 信号处理中的反傅里叶变换(IFFT)原理
- Introduction and examples of parameters in Jenkins parametric construction
- Don't stick to it for 68 days. Baboons eat bananas
猜你喜欢
随机推荐
12.优先级队列和惰性队列
Wechat applet parameter transfer
Opengauss pre check installation
Code or script to speed up the video playback of video websites
Openfeign asynchronous call problem
Object detection: object_ Detection API +ssd target detection model
C语言力扣第61题之旋转链表。双端队列与构造循环链表
Definition and implementation of stack and queue (detailed)
索引的最左前缀原理
The principle of inverse Fourier transform (IFFT) in signal processing
Multi card training in pytorch
Jenkins 参数化构建中 各参数介绍与示例
kotlin的List,Map,Set等集合类不指定类型
不会就坚持59天吧 替换单词
No, just stick to it for 59 days
C语言:typedef知识点总结
安装postgis时报找不到“POSTGIS_VERSION”这个函数
14.haproxy+keepalived负载均衡和高可用
View partition table format
Machine vision Series 2: vs DLL debugging







