日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Nexus配置内部仓库

發(fā)布時間:2024/4/17 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Nexus配置内部仓库 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

http://blog.csdn.net/gl74gs48/article/details/7721758

關(guān)于創(chuàng)建Nexus不想多說,到官方網(wǎng)站http://www.sonatype.org/nexus下載WAR,直接在TOMCAT下發(fā)布就OK了。具體記錄怎樣配置Maven使用Nexus作為內(nèi)部庫,官方有一篇文章《Configuring Maven to Use a Single Nexus Group》

If you are adopting Nexus for internal development you should configure a single Nexus group which contains both releases and snapshots. To do this, add snapshot repositories to your public group, and add the following mirror configuration to your Maven settings in ~/.m2/settings.xml

[html] view plaincopyprint?
  • <SPAN?style="FONT-SIZE:?12px"><settings>??
  • ??<mirrors>??
  • ????<mirror>??
  • ??????<!--This?sends?everything?else?to?/public?-->??
  • ??????<id>nexus</id>??
  • ??????<mirrorOf>*</mirrorOf>??
  • ??????<url>http://localhost:8081/nexus/content/groups/public</url>??
  • ????</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>??
  • </SPAN>??
  • <settings><mirrors><mirror><!--This sends everything else to /public --><id>nexus</id><mirrorOf>*</mirrorOf><url>http://localhost:8081/nexus/content/groups/public</url></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>


    ?In Configuring Maven to Use a Single Nexus Group we have defined a single profile: nexus profile is configured to download from the central repository with a bogus URL. This URL is overridden by the mirror setting in the same settings.xml file to point to the URL of your single Nexus group. The nexus group is then listed as an active profile in the activeProfiles element.

    配置完成后,使用mv package命令出錯,提示:
    org.apache.maven.plugins:maven-resources-plugin:2.5 or one of its dependencies could not be resolved

    最后不斷嘗試,發(fā)現(xiàn)將<mirror>節(jié)點(diǎn)的<id>的值改為central,package命令成功執(zhí)行。而且發(fā)現(xiàn)無須配置<profiles>,依然可以執(zhí)行成功。

    settings.xml最終配置如下:

    [html] view plaincopyprint?
  • <?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:?~/.m2/repository??
  • ??<localRepository>C:/apache-maven-3.0.4/repository</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>??
  • ????-->??
  • ??
  • ????<pluginGroup>org.mortbay.jetty</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>??
  • ??</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>??
  • ????-->??
  • ????<server>??
  • ??????<id>nexus</id>??
  • ??????<username>admin</username>??
  • ??????<password>xxxxxx</password>??
  • ????</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??
  • ?????|?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>central</id>??
  • ??????<mirrorOf>*</mirrorOf>???
  • ??????<name>Maven?Central</name>????
  • ??????<url>http://localhost:8081/nexus/content/repositories/central/</url>????
  • ????</mirror>??????
  • ?????-->??
  • ??</mirrors>??
  • ????
  • ??
  • ??<profiles>??
  • ???<profile>??
  • ??????<id>dev</id>??
  • ??
  • ??????<repositories>??
  • ????????<repository>??
  • ??????????<id>nexus</id>??
  • ??????????<name>Nexus?Repository</name>??
  • ??????????<url>http://localhost:8081/nexus/content/groups/public/</url>??
  • ?????<releases>??
  • ???????????<enabled>true</enabled>??
  • ?????</releases>??
  • ??????????<snapshots>??
  • ????????????????<enabled>false</enabled>??
  • ??????????</snapshots>??
  • ????????</repository>??
  • ??
  • ????????<repository>??
  • ??????????<id>thirdparty</id>??
  • ??????????<name>thirdparty</name>??
  • ??????????<url>http://localhost:8081/nexus/content/repositories/thirdparty/</url>??
  • ?????<releases>??
  • ???????????<enabled>true</enabled>??
  • ?????</releases>??
  • ??????????<snapshots>??
  • ????????????????<enabled>false</enabled>??
  • ??????????</snapshots>??
  • ????????</repository>??
  • ??????</repositories>??
  • ????????
  • ??????<pluginRepositories>??
  • ????????<pluginRepository>??
  • ????????????<id>nexus</id>??
  • ????????????<url>http://localhost:8081/nexus/content/groups/public/</url>??
  • ????????????<releases>??
  • ??????????????<enabled>true</enabled>??
  • ????????????</releases>??
  • ????????????<snapshots>??
  • ????????????????<enabled>false</enabled>??
  • ????????????</snapshots>??
  • ????????</pluginRepository>??
  • ????</pluginRepositories>??
  • ??????
  • ????</profile>??
  • ??</profiles>??
  • ??
  • ??????
  • ??<activeProfiles>??
  • ????<activeProfile>dev</activeProfile>??
  • ??</activeProfiles>??
  • ????
  • ??<!--?activeProfiles??
  • ???|?List?of?profiles?that?are?active?for?all?builds.??
  • ???|??
  • ??
  • ??<activeProfiles>??
  • ????<activeProfile>alwaysActiveProfile</activeProfile>??
  • ????<activeProfile>anotherAlwaysActiveProfile</activeProfile>??
  • ??</activeProfiles>??
  • ??-->??
  • </settings>??
  • <?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: ~/.m2/repository<localRepository>C:/apache-maven-3.0.4/repository</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>--><pluginGroup>org.mortbay.jetty</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></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>--><server><id>nexus</id><username>admin</username><password>xxxxxx</password></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| 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>central</id><mirrorOf>*</mirrorOf> <name>Maven Central</name> <url>http://localhost:8081/nexus/content/repositories/central/</url> </mirror> --></mirrors><profiles><profile><id>dev</id><repositories><repository><id>nexus</id><name>Nexus Repository</name><url>http://localhost:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository><repository><id>thirdparty</id><name>thirdparty</name><url>http://localhost:8081/nexus/content/repositories/thirdparty/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>nexus</id><url>http://localhost:8081/nexus/content/groups/public/</url><releases><enabled>true</enabled></releases><snapshots><enabled>false</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>dev</activeProfile></activeProfiles><!-- activeProfiles| List of profiles that are active for all builds.|<activeProfiles><activeProfile>alwaysActiveProfile</activeProfile><activeProfile>anotherAlwaysActiveProfile</activeProfile></activeProfiles>--> </settings>


    注意:<profile>中的<id>的值一定要為nexus,而且要與<server>的<id>的值相同個人認(rèn)為此與Server配置下的Base URL:http://xxx.xx.xx.xxx:8081/nexus有關(guān),另外我注釋掉了<mirror>,主要在無法訪問MAVEN中心庫才啟用。

    ?

    ?

    ===============

    http://www.iteye.com/topic/306449

    我對比了一些maven的私服以后,感覺nexus最好使,把搭建的過程步驟一下吧,我的環(huán)境是cent5, tomcat 6
    1、下載war包,部署到tomcat中,啟動tomcat;
    2、訪問:http://xxx/nexus-1.1.1/index.html;
    3、用admin/admin123登錄;
    4、修改admin的密碼,但是不要修改別的屬性和修改別的用戶信息
    5、進(jìn)入administration中的repositories,依次修改三個type是proxy的項(xiàng)目,將其Download Remote Indexes修改為true;然后郵件他們,分別re-index一下;
    6、將你自己機(jī)器上的manven緩存(一般是在C:\Documents and Settings\登錄名\.m2下面)全部拷貝到/home/你的用戶名/sonatype-work/nexus/storage下面的central和releases各一份;
    7、修改你本地的(一般是在C:\Documents and Settings\登錄名\.m2下面)setting.xml文件改成下面的:

    Xml代碼 ?
  • <settings>??
  • ??????<proxies>??
  • ????????<proxy>??
  • ??????????<id>normal</id>??
  • ??????????<active>true</active>??
  • ??????????<protocol>http</protocol>??
  • ??????????<username>deployment</username>??
  • ??????????<password>deploy</password>??
  • ??????????<host>172.19.0.177:8080/nexus-1.1.1</host>??
  • ??????????<port>80</port>??
  • ??????????<nonProxyHosts>172.19.0.177:8080/nexus-1.1.1</nonProxyHosts>??
  • ????????</proxy>??
  • ??????</proxies>??
  • ??????<servers>??
  • ??????</servers>??
  • ??????<mirrors>??
  • ?????????<mirror>??
  • ??????????<id>nexus-public-snapshots</id>??
  • ??????????<mirrorOf>public-snapshots</mirrorOf>??
  • ??????????<url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public-snapshots</url>??
  • ????????</mirror>??
  • ????????<mirror>??
  • ??????????<!--This?sends?everything?else?to?/public?-->??
  • ??????????<id>nexus</id>??
  • ??????????<mirrorOf>*</mirrorOf>??
  • ??????????<url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public</url>??
  • ????????</mirror>??
  • ??????</mirrors>??
  • ??????<profiles>??
  • ????????<profile>??
  • ??????????<id>development</id>??
  • ??????????<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>??
  • ????????<profile>??
  • ??????????<id>public-snapshots</id>??
  • ??????????<repositories>??
  • ????????????<repository>??
  • ??????????????<id>public-snapshots</id>??
  • ??????????????<url>http://public-snapshots</url>??
  • ??????????????<releases><enabled>false</enabled></releases>??
  • ??????????????<snapshots><enabled>true</enabled></snapshots>??
  • ????????????</repository>??
  • ??????????</repositories>??
  • ?????????<pluginRepositories>??
  • ????????????<pluginRepository>??
  • ??????????????<id>public-snapshots</id>??
  • ??????????????<url>http://public-snapshots</url>??
  • ??????????????<releases><enabled>false</enabled></releases>??
  • ??????????????<snapshots><enabled>true</enabled></snapshots>??
  • ????????????</pluginRepository>??
  • ??????????</pluginRepositories>??
  • ????????</profile>??
  • ??????</profiles>??
  • ????????<activeProfiles>??
  • ????????<activeProfile>development</activeProfile>??
  • ??????</activeProfiles>??
  • </settings>??
  • <settings><proxies><proxy><id>normal</id><active>true</active><protocol>http</protocol><username>deployment</username><password>deploy</password><host>172.19.0.177:8080/nexus-1.1.1</host><port>80</port><nonProxyHosts>172.19.0.177:8080/nexus-1.1.1</nonProxyHosts></proxy></proxies><servers></servers><mirrors><mirror><id>nexus-public-snapshots</id><mirrorOf>public-snapshots</mirrorOf><url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public-snapshots</url></mirror><mirror><!--This sends everything else to /public --><id>nexus</id><mirrorOf>*</mirrorOf><url>http://172.19.0.177:8080/nexus-1.1.1/content/groups/public</url></mirror></mirrors><profiles><profile><id>development</id><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><profile><id>public-snapshots</id><repositories><repository><id>public-snapshots</id><url>http://public-snapshots</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></repository></repositories><pluginRepositories><pluginRepository><id>public-snapshots</id><url>http://public-snapshots</url><releases><enabled>false</enabled></releases><snapshots><enabled>true</enabled></snapshots></pluginRepository></pluginRepositories></profile></profiles><activeProfiles><activeProfile>development</activeProfile></activeProfiles> </settings>

    ?

    ??? 將172.19.0.177地址修改為你自己的服務(wù)器地址
    ???
    8、在你的項(xiàng)目中的pom.xml中增加一段:

    Xml代碼 ?
  • <distributionManagement>??
  • ????????<repository>??
  • ????????????<id>repo</id>??
  • ????????????<name>public</name>??
  • ????????????<url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/releases</url>??
  • ????????</repository>??
  • ????????<snapshotRepository>??
  • ????????????<id>Snapshots</id>??
  • ????????????<name>Snapshots</name>??
  • ????????????<url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/snapshots</url>??
  • ????????</snapshotRepository>??
  • ????</distributionManagement>??
  • <distributionManagement><repository><id>repo</id><name>public</name><url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/releases</url></repository><snapshotRepository><id>Snapshots</id><name>Snapshots</name><url>http://172.19.0.177:8080/nexus-1.1.1/content/repositories/snapshots</url></snapshotRepository></distributionManagement>

    ?


    這樣一來經(jīng)過我的測試,如果你在沒有局域網(wǎng)的環(huán)境中(也就是沒辦法訪問你的私服),只要將pom里面的那段刪除就可以了。

    ?

    ==================

    <?xml version="1.0" encoding="UTF-8"?>
    <settings xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" xmlns="http://maven.apache.org/SETTINGS/1.0.0"
    ??? xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    ?
    ?
    <!--? <proxies>
    ??? <proxy>
    ?? <active>true</active>
    ????? <protocol>http</protocol>
    ????? <host>webproxy.wlb.nsroot.net</host>
    ????? <port>8080</port>
    ????? <nonProxyHosts>host1|*.nam.nsroot.net</nonProxyHosts>
    ??? </proxy>
    ? </proxies>-->
    ?
    ? <localRepository>${user.home}/.m2/repository</localRepository>
    <!--? <localRepository>maven</localRepository>-->

    <mirrors>
    ?<mirror>
    ??? <id>Nexus</id>
    ??? <name>Nexus Public Mirror </name>
    ??? <url>http://host1:8081/nexus/content/repositories/Hermesmvnrep</url>
    ??? <mirrorOf>central</mirrorOf>
    ? </mirror>
    </mirrors>

    ? <servers>
    ??? <server>
    ????? <username>xxx</username>
    ????? <password>xxx</password>
    ????? <id>artifactory</id>
    ??? </server>
    ? </servers>
    ?
    ?
    ?
    ?
    ? <profiles>
    ?<profile>
    ? <activation>
    ?? <activeByDefault>True</activeByDefault>
    ? </activation>
    ?? <repositories>
    ??????? <repository>
    ????????? <snapshots>
    ??????????? <enabled>false</enabled>
    ????????? </snapshots>
    ????????? <id>central-local</id>
    ????????? <name>libs-release</name>
    ????????? <url>http://host2:8081/artifactory/libs-release-local</url>
    ??????? </repository>
    ??????? <repository>
    ????????? <snapshots>
    ??????????? <enabled>false</enabled>
    ????????? </snapshots>
    ????????? <id>central</id>
    ????????? <name>libs-release</name>
    ????????? <url>http://host2:8081/artifactory/libs-release</url>
    ??????? </repository>
    ??????? <repository>
    ????????? <snapshots />
    ????????? <id>snapshots</id>
    ????????? <name>libs-snapshot</name>
    ????????? <url>http://host2:8081/artifactory/libs-snapshot</url>
    ??????? </repository>
    ????? </repositories>
    ????? <pluginRepositories>
    ??????? <pluginRepository>
    ????????? <snapshots>
    ??????????? <enabled>false</enabled>
    ????????? </snapshots>
    ????????? <id>central</id>
    ????????? <name>plugins-release</name>
    ????????? <url>http://host2:8081/artifactory/plugins-release</url>
    ??????? </pluginRepository>
    ??????? <pluginRepository>
    ????????? <snapshots />
    ????????? <id>snapshots</id>
    ????????? <name>plugins-snapshot</name>
    ????????? <url>http://host2:8081/artifactory/plugins-snapshot</url>
    ??????? </pluginRepository>
    ????? </pluginRepositories>
    ????? <id>artifactory</id>
    ??? </profile>

    ? </profiles>
    </settings>

    ?

    ?

    總結(jié)

    以上是生活随笔為你收集整理的Nexus配置内部仓库的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。

    主站蜘蛛池模板: 交hdsexvideos娇小 | 2020国产在线 | 久伊人网 | 激情欧美一区二区 | 久久韩日 | 亚洲自偷自偷偷色无码中文 | 久久丁香网 | 少妇高潮迭起 | 国产在线网 | 亚洲av无码乱码在线观看性色 | av高清一区二区 | av在线麻豆 | 日韩激情影院 | av字幕网 | 欧美亚洲国产一区 | 国产一区二区三区影视 | 亚洲v| 国产精品一区二区久久国产 | 五月天激情视频在线观看 | 91色视频在线 | 肉丝袜脚交视频一区二区 | 亚洲自拍色| 国产无遮挡裸体免费视频 | 色图视频 | 亚洲五码av | 人与禽一级全黄 | 国产精品主播视频 | 熟妇高潮一区二区三区在线播放 | www.尤物| 免费看91视频| 国产区一区二区三区 | 国产精品免费一区二区三区在线观看 | 人人爽在线 | 好吊妞视频这里只有精品 | www.亚洲一区二区三区 | 精品一区二区在线播放 | 波多野结衣在线免费视频 | 欧美日韩一区二区三区在线观看 | 日韩亚洲欧美综合 | 精品一区二区三区日韩 | 99riAv国产精品无码鲁大师 | 竹菊影视一区二区三区 | 亚洲影库 | 91精品国产亚洲 | 成人国产一区二区三区精品麻豆 | 大学生av | 五月婷婷天 | 欧美日韩一区二区三区电影 | 国产又粗又猛又黄 | 禁漫天堂下载18 | 久草久| 日日夜夜网 | 制服丝袜影音先锋 | 国产日本一区二区三区 | 国产精品日韩一区 | 久久精品视频6 | 美女被艹视频网站 | 成人在线观看你懂的 | 四虎影院在线 | 美丽姑娘免费观看在线观看 | youjizz在线视频 | 国产原创在线视频 | 日本中文字幕在线观看视频 | 可以在线看黄的网站 | 操操操操操操操 | 日韩亚洲精品视频 | 日韩大片免费在线观看 | 中文字幕一二三区 | 91精品啪在线观看国产线免费 | 茄子视频懂你更多在线观看 | 全部孕妇毛片丰满孕妇孕交 | 日本韩国欧美一区二区三区 | 色男人天堂av | 欧美黑人做爰爽爽爽 | 高清免费av | 日韩欧美国产一区二区在线观看 | 91嫩草入口 | 狠狠干美女 | 自拍偷拍21p | 黄色一级片在线看 | 成人在线免费视频 | 亚洲精品另类 | 亚洲欧美一区二区三区不卡 | 日本少妇做爰全过程毛片 | 久久成人一区 | 伊人毛片 | 亚洲有吗在线 | 黄色在线免费看 | 亚洲成人1区 | 老子影院午夜伦不卡大全 | 狠狠操2019 | 人成午夜| 欧美丰满老熟妇xxxxx性 | 欧美日韩中 | 欧美一级黄色大片 | 99久久亚洲精品 | 久久久久国 | av福利在线 | 伊人久久爱 |