zoukankan      html  css  js  c++  java
  • maven nexus 部署

    一.nexus部署
      1>.下载安装包【nexus-2.14.1-01-bundle.zip】
      2>.安装nexus【E:Linux exus-2.14.1-01-bundle exus-2.14.1-01injswwindows-x86-64】,依次运行以下两个批处理
        install-nexus.bat
        start-nexus.bat
      3>.部署完后浏览器【http://localhost:8081/nexus/#welcome】
      用户名:admin/admin123

    二.maven安装与nexus集成

      1>.apache 官网下载mavn 组件【apache-maven-3.3.9-bin.zip】
        我的解压到:E:Linuxapache-maven-3.3.9-bin
      2>.配置环境变量【MAVEN_HOME=F:Mavenapache-maven-3.0.4-binapache-maven-3.0.4,Path配置】
      3>.cmd检查环境变量配置是否成功mvn -version
      4>.maven与nexus集成
      修改配置文件【E:Linuxapache-maven-3.3.9-binconfsettings.xml】,修改内容如下:
      

    <mirror>
    
    <id>nexus</id>
    
    <mirrorOf>*</mirrorOf>
    
    <url>http://localhost:8081/nexus/content/groups/public</url>
    
    </mirror>
    
    <profile>
    
    <id>nexus</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>
    
    
    
    <activeProfiles>
    
    <activeProfile>nexus</activeProfile>
    
    </activeProfiles>
    

      

      5>.与eclipse集成:--->Windows-->Prerences-->Maven-->User settings
      User settings选项改为:E:Linuxapache-maven-3.3.9-binconfsettings.xml

      6>.创建maven 项目,pom.xml手动增加节点依赖,如果没有jar文件会在progress 中有下载

  • 相关阅读:
    导包Scanner类---Java
    标准类组成---Java
    Educational Codeforces Round 54 (Rated for Div. 2) A. Minimizing the String
    [专题总结] 二分搜索专题
    [最大权森林] [POJ] 3723 Conscription
    [模板] 快读快写
    [模板] 常用数论 -> gcd、exgcd、乘法逆元、快速幂、快速乘、筛素数、快速求逆元、组合数
    [模板] 堆 heap
    牛客小白月赛8 F-数列操作 (有序表)
    [模板] 字符串处理函数
  • 原文地址:https://www.cnblogs.com/zhangxiaolin/p/6586452.html
Copyright © 2011-2022 走看看