成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久

您的位置:首頁技術文章
文章詳情頁

Idea配置Maven阿里云鏡像加速的實現

瀏覽:229日期:2024-07-17 10:40:51

如果沒有安裝過maven,是用的idea自帶的maven,那就是idea的安裝目錄下 /plugins/maven/lib/maven3這個目錄。

Idea配置Maven阿里云鏡像加速的實現

然后在conf下打開settings.xml,加入如下代碼:

<mirrors><mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共倉庫</name><url>https://maven.aliyun.com/repository/public</url></mirror> </mirrors>

如果默認用1.8jdk,可以添加:

<profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties></profile>

全部代碼如下:

<?xml version='1.0' encoding='UTF-8'?><!--Licensed to the Apache Software Foundation (ASF) under oneor more contributor license agreements. See the NOTICE filedistributed with this work for additional informationregarding copyright ownership. The ASF licenses this fileto you under the Apache License, Version 2.0 (the'License'); you may not use this file except in compliancewith the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing,software distributed under the License is distributed on an'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANYKIND, either express or implied. See the License for thespecific language governing permissions and limitationsunder the License.--><!-- | This is the configuration file for Maven. It can be specified at two levels: | | 1. User Level. This settings.xml file provides configuration for a single user, | and is normally provided in ${user.home}/.m2/settings.xml. | | NOTE: This location can be overridden with the CLI option: | | -s /path/to/user/settings.xml | | 2. Global Level. This settings.xml file provides configuration for all Maven | users on a machine (assuming they’re all using the same Maven | installation). It’s normally provided in | ${maven.conf}/settings.xml. | | NOTE: This location can be overridden with the CLI option: | | -gs /path/to/global/settings.xml | | The sections in this sample file are intended to give you a running start at | getting the most out of your Maven installation. Where appropriate, the default | values (values used when the setting is not specified) are provided. | |--><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>/path/to/local/repo</localRepository> --> <!-- interactiveMode | This will determine whether maven prompts you when it needs input. If set to false, | maven will use a sensible default value, perhaps based on some other setting, for | the parameter in question. | | Default: true <interactiveMode>true</interactiveMode> --> <!-- offline | Determines whether maven should attempt to connect to the network when executing a build. | This will have an effect on artifact downloads, artifact deployment, and others. | | Default: false <offline>false</offline> --> <!-- pluginGroups | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e. | when invoking a command line like 'mvn prefix:goal'. Maven will automatically add the group identifiers | 'org.apache.maven.plugins' and 'org.codehaus.mojo' if these are not already contained in the list. |--> <pluginGroups> <!-- pluginGroup | Specifies a further group identifier to use for plugin lookup. <pluginGroup>com.your.plugins</pluginGroup> --> </pluginGroups> <!-- proxies | This is a list of proxies which can be used on this machine to connect to the network. | Unless otherwise specified (by system property or command-line switch), the first proxy | specification in this list marked as active will be used. |--> <proxies> <!-- proxy | Specification for one proxy, to be used in connecting to the network. | <proxy> <id>optional</id> <active>true</active> <protocol>http</protocol> <username>proxyuser</username> <password>proxypass</password> <host>proxy.host.net</host> <port>80</port> <nonProxyHosts>local.net|some.host.com</nonProxyHosts> </proxy> --> </proxies> <!-- servers | This is a list of authentication profiles, keyed by the server-id used within the system. | Authentication profiles can be used whenever maven must make a connection to a remote server. |--> <servers> <!-- server | Specifies the authentication information to use when connecting to a particular server, identified by | a unique name within the system (referred to by the ’id’ attribute below). | | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are | used together. | <server> <id>deploymentRepo</id> <username>repouser</username> <password>repopwd</password> </server> --> <!-- Another sample, using keys to authenticate. <server> <id>siteServer</id> <privateKey>/path/to/private/key</privateKey> <passphrase>optional; leave empty if not used.</passphrase> </server> --> </servers> <!-- mirrors | This is a list of mirrors to be used in downloading artifacts from remote repositories. | | It works like this: a POM may declare a repository to use in resolving certain artifacts. | However, this repository may have problems with heavy traffic at times, so people have mirrored | it to several places. | | That repository definition will have a unique id, so we can create a mirror reference for that | repository, to be used as an alternate download site. The mirror site will be the preferred | server for that repository. |--> <mirrors><mirror><id>aliyunmaven</id><mirrorOf>*</mirrorOf><name>阿里云公共倉庫</name><url>https://maven.aliyun.com/repository/public</url></mirror> <!-- mirror | Specifies a repository mirror site to use instead of a given repository. The repository that | this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used | for inheritance and direct lookup purposes, and must be unique across the set of mirrors. | <mirror> <id>mirrorId</id> <mirrorOf>repositoryId</mirrorOf> <name>Human Readable Name for this Mirror.</name> <url>http://my.repository.com/repo/path</url> </mirror> --> </mirrors> <!-- profiles | This is a list of profiles which can be activated in a variety of ways, and which can modify | the build process. Profiles provided in the settings.xml are intended to provide local machine- | specific paths and repository locations which allow the build to work in the local environment. | | For example, if you have an integration testing plugin - like cactus - that needs to know where | your Tomcat instance is installed, you can provide a variable here such that the variable is | dereferenced during the build process to configure the cactus plugin. | | As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles | section of this document (settings.xml) - will be discussed later. Another way essentially | relies on the detection of a system property, either matching a particular value for the property, | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a | value of ’1.4’ might activate a profile when the build is executed on a JDK version of ’1.4.2_07’. | Finally, the list of active profiles can be specified directly from the command line. | | NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact | repositories, plugin repositories, and free-form properties to be used as configuration | variables for plugins in the POM. | |--> <profiles> <!-- profile | Specifies a set of introductions to the build process, to be activated using one or more of the | mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/> | or the command line, profiles have to have an ID that is unique. | | An encouraged best practice for profile identification is to use a consistent naming convention | for profiles, such as ’env-dev’, ’env-test’, ’env-production’, ’user-jdcasey’, ’user-brett’, etc. | This will make it more intuitive to understand what the set of introduced profiles is attempting | to accomplish, particularly when you only have a list of profile id’s for debug. | | This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo. <profile> <id>jdk-1.4</id> <activation><jdk>1.4</jdk> </activation> <repositories><repository> <id>jdk14</id> <name>Repository for JDK 1.4 builds</name> <url>http://www.myhost.com/maven/jdk14</url> <layout>default</layout> <snapshotPolicy>always</snapshotPolicy></repository> </repositories> </profile> --><profile><id>jdk-1.8</id><activation><activeByDefault>true</activeByDefault><jdk>1.8</jdk></activation><properties><maven.compiler.source>1.8</maven.compiler.source><maven.compiler.target>1.8</maven.compiler.target><maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion></properties></profile> <!-- | Here is another profile, activated by the system property ’target-env’ with a value of ’dev’, | which provides a specific path to the Tomcat instance. To use this, your plugin configuration | might hypothetically look like: | | ... | <plugin> | <groupId>org.myco.myplugins</groupId> | <artifactId>myplugin</artifactId> | | <configuration> | <tomcatLocation>${tomcatPath}</tomcatLocation> | </configuration> | </plugin> | ... | | NOTE: If you just wanted to inject this configuration whenever someone set ’target-env’ to | anything, you could just leave off the <value/> inside the activation-property. | <profile> <id>env-dev</id> <activation><property> <name>target-env</name> <value>dev</value></property> </activation> <properties><tomcatPath>/path/to/tomcat/instance</tomcatPath> </properties> </profile> --> </profiles> <!-- activeProfiles | List of profiles that are active for all builds. | <activeProfiles> <activeProfile>alwaysActiveProfile</activeProfile> <activeProfile>anotherAlwaysActiveProfile</activeProfile> </activeProfiles> --></settings>

到此這篇關于Idea配置Maven阿里云鏡像加速的實現的文章就介紹到這了,更多相關Idea Maven阿里云鏡像加速內容請搜索好吧啦網以前的文章或繼續瀏覽下面的相關文章希望大家以后多多支持好吧啦網!

標簽: IDEA
相關文章:
成人在线亚洲_国产日韩视频一区二区三区_久久久国产精品_99国内精品久久久久久久
看电视剧不卡顿的网站| 韩国女主播一区二区三区| 日本vs亚洲vs韩国一区三区二区 | 久久久国产午夜精品 | 精品亚洲porn| 欧美在线观看一二区| 日韩精品91亚洲二区在线观看 | 亚洲韩日在线| 国产精品国产三级国产普通话蜜臀| 国产老女人精品毛片久久| 在线看不卡av| 麻豆精品一二三| 91精品办公室少妇高潮对白| 日本不卡的三区四区五区| 色婷婷久久久亚洲一区二区三区| 午夜精品成人在线视频| 国产精品一区二区在线观看| 亚洲激情五月婷婷| 亚洲国产网站| 国产精品成人免费精品自在线观看 | 天堂久久久久va久久久久| 在线亚洲激情| 亚洲精品网站在线观看| 99伊人成综合| 亚洲成年人影院| 香蕉久久夜色精品国产| 午夜精品福利一区二区蜜股av| 久久久久久一区| 日韩av高清在线观看| 欧美在线999| 精品一区二区在线看| 91精品视频网| 成人97人人超碰人人99| 国产欧美日韩综合精品一区二区| 色综合一区二区| 中文一区在线播放| 最新国产乱人伦偷精品免费网站| 亚洲欧美经典视频| 亚洲一区精品视频| 日本网站在线观看一区二区三区| 在线观看91视频| 国产精品小仙女| 久久亚洲欧美国产精品乐播| 狠狠噜噜久久| 亚洲一卡二卡三卡四卡无卡久久 | 国产精品日韩欧美一区| 五月天国产精品| 欧美日韩在线直播| 成人激情小说网站| 国产精品私人影院| 免费日韩av片| 美美哒免费高清在线观看视频一区二区 | 精品少妇一区二区三区免费观看| 成人高清免费观看| 中文字幕精品在线不卡| 亚洲美女黄色| 石原莉奈一区二区三区在线观看| 欧美性大战久久久久久久蜜臀| 狠狠色丁香婷婷综合| 久久无码av三级| 影音先锋中文字幕一区| 日本不卡高清视频| 日韩欧美高清一区| 国一区二区在线观看| 午夜精品免费在线| 3751色影院一区二区三区| 99久久99久久精品国产片果冻| 国产精品久久久久国产精品日日| 国产毛片一区| 久国产精品韩国三级视频| 欧美精品一区二区在线观看| 在线欧美三区| 日韩中文字幕亚洲一区二区va在线| 欧美一三区三区四区免费在线看| 欧美日韩日本国产亚洲在线| 午夜视频一区在线观看| 91精品一区二区三区在线观看| 欧美日韩另类丝袜其他| 午夜精品福利一区二区三区蜜桃| 制服.丝袜.亚洲.中文.综合| 亚洲午夜极品| 婷婷丁香久久五月婷婷| 日韩精品在线网站| 夜久久久久久| 国内精品嫩模私拍在线| 国产午夜亚洲精品不卡| 久久一区二区三区超碰国产精品| 国产精品一色哟哟哟| 国产精品免费aⅴ片在线观看| 久久亚洲风情| 9人人澡人人爽人人精品| 亚洲国产一区二区a毛片| 精品三级在线观看| 久久www成人_看片免费不卡| 成人中文字幕电影| 亚洲香肠在线观看| 欧美mv日韩mv国产| 亚洲一区图片| 99久久伊人精品| 日本不卡不码高清免费观看| 国产精品网曝门| 欧美精三区欧美精三区| 一区二区视频欧美| 懂色av一区二区三区蜜臀| 亚洲制服欧美中文字幕中文字幕| 精品国产髙清在线看国产毛片| 先锋影音一区二区三区| 99精品偷自拍| 日韩中文字幕91| 国产精品乱码一区二区三区软件 | 欧美日韩精品免费观看视一区二区| 亚洲小说欧美激情另类| 精品99一区二区三区| 91久久精品国产91性色tv| 狠狠色噜噜狠狠色综合久| 国产在线国偷精品产拍免费yy| 亚洲品质自拍视频| 欧美精品一区二区三区四区 | 国产精品久久久久一区二区三区共| 欧美在线播放高清精品| 国产精品国产三级国产专区53| 久久疯狂做爰流白浆xx| 中文字幕一区二区三区色视频| 欧美精品1区2区3区| 亚洲尤物精选| 欧美一区综合| 国产精品1区2区| 亚洲一区二区三区四区在线| 久久综合资源网| 欧美日韩国产bt| 午夜一区不卡| 欧美91视频| 国产精品一区免费视频| 亚洲国产精品激情在线观看| 欧美男人的天堂一二区| 亚洲一区欧美激情| 亚洲欧美亚洲| 不卡av在线网| 国内一区二区在线视频观看 | 在线不卡欧美| 色婷婷久久99综合精品jk白丝| 在线视频一区二区三区| 国产日韩一级二级三级| 免费成人在线播放| 国产黄色精品网站| 欧美日韩在线免费视频| 成人国产亚洲欧美成人综合网 | 亚洲欧美日韩国产另类专区| 久久青草国产手机看片福利盒子| 欧美日韩国产欧美日美国产精品| 亚洲国产精品久久一线不卡| 欧美日本一区二区三区四区| 国产一区二区三区四| 色欧美乱欧美15图片| 精品国产一区a| 国产福利91精品| 在线精品观看国产| 日韩精品一二区| 蜜臀av性久久久久蜜臀aⅴ| 91影院在线免费观看| 国产精品国产自产拍在线| 亚洲高清资源| 91同城在线观看| 亚洲激情男女视频| 精品视频在线免费| 欧美一区成人| 国产中文一区二区三区| 国产日韩欧美综合在线| 色综合久久中文字幕综合网| 亚洲特级片在线| 国产成人免费视| 久久精品人人爽人人爽| 国产精品资源在线| 亚洲成人精品影院| 一区二区三区自拍| 亚洲精品免费在线| 中文字幕字幕中文在线中不卡视频| 中文字幕精品—区二区四季| 国产精品妹子av| 亚洲欧美激情插| 一区二区三区中文字幕在线观看| 亚洲综合一区二区| 亚洲成人免费在线| 日韩电影在线看| 精品一区二区三区免费| 国产精品一线二线三线| 成人污视频在线观看| 成人性生交大片免费| 成人动漫av在线| www.欧美色图| 欧美 日韩 国产一区二区在线视频 | 欧美女孩性生活视频| 777久久久精品| 精品国产髙清在线看国产毛片| 久久免费精品国产久精品久久久久| 国产亚洲美州欧州综合国| 国产精品视频第一区| 亚洲特黄一级片| 亚洲成人资源在线| 老色鬼精品视频在线观看播放|