实习笔记之nexus maven私服搭建

1.下载 并安装nexus
2.运行私服nexus-2.14.4-03\bin\jsw\选择系统\:
这里写图片描述
3.运行网址并登录:http://127.0.0.1:8081/nexus
这里写图片描述
4.打开自动down包:
这里写图片描述
5.打开保存的仓库组
这里写图片描述
6配置maven setting.xml:

<server>    
      <id>nexus-releases</id>    
      <username>admin</username>    
      <password>admin123</password>    
    </server>    
    <server>    
      <id>nexus-snapshots</id>    
      <username>admin</username>    
      <password>admin123</password>    
    </server>   
<mirror>     
      <id>nexus-releases</id>     
      <mirrorOf>*</mirrorOf>     
      <url>http://localhost:8081/nexus/content/groups/public</url>     
    </mirror>    
    <mirror>     
      <id>nexus-snapshots</id>     
      <mirrorOf>*</mirrorOf>     
      <url>http://localhost:8081/nexus/content/repositories/snapshots/</url>     
    </mirror>  

<activeProfiles>
<!--激活了才生效-->
   <activeProfile>nexusProfile</activeProfile>    
</activeProfiles>
**7.配置pom.xml 博客编辑器有问题**
<distributionManagement>
    <repository>
        <id>nexus-releases</id>
        <name>nexus</name>
        <url>http://192.168.1.184:8081/nexus/content/groups/public/</url>
    </repository>

    <snapshotRepository>
        <id>nexus-snapshots</id>
        <name>snapshots</name>
        <url>http://192.168.1.184:8081/nexus/content/repositories/snapshots/</url>
    </snapshotRepository>
</distributionManagement>
  <repositories>
        <repository>
            <id>nexus</id>
            <name>nexus</name>
            <url>http://192.168.1.184:8081/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snaps
hots>
        </repository>
    </repositories>

然后就能用了。组员直接down:pom.xml就好了,能打包,有需要联系309947442

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值