zoukankan      html  css  js  c++  java
  • 10.23 maven地址配置 | git的使用

    1、maven地址配置

    仓库的地址不一定非要配置成镜像,

    公司给了一个地址,配置成镜像的时候 下载不下来,如下配置OK

      <profiles>
       <profile>
            <id>central-repository</id>
          <repositories>
            <repository>
                  <id>central</id>
                  <name>central</name>
                  <url>http://xxx.79:8082/repository/maven-public/</url>
                  <layout>default</layout>
                  <releases>
                        <enabled>true</enabled>
                        </releases>
                        <snapshots>
                            <enabled>true</enabled>
                        </snapshots>
                   </repository>
          </repositories>
        </profile>
      </profiles>
    
       <activeProfiles>
        <activeProfile>central-repository</activeProfile>
      </activeProfiles>

    2、git 的使用

    使用的客户端SourceTree

    1. 去掉注册登录

    2.生成sshkey

    一、引子:

    什么是ssh:ssh是Secure Shell(安全外壳协议)的缩写,建立在应用层和传输层基础上的安全协议。为了便于访问github,要生成ssh公钥,这样就不用每一次访问github都要输入用户名和密码。

    二、生成条件:

    请在github上先注册账号,本地安装git。

    三、生成步骤:

    1、本地成功安装了git后,单击鼠标右键,选择Git Bush here,打开git bush。

    2、 键入命令:ssh-keygen -t rsa -C "email@email.com",引号中是你在github上的注册邮箱,之后设定你的ssh密码,如图:

    3、配置sshkey

    生成key以后打开,配置

    在gitleb 里面 也就是公司git地址

    4、拉取项目

    复制项目的ssh 地址

  • 相关阅读:
    windows下安装rabbitmq
    selectors
    修改Docker默认镜像和容器的存储位置
    eclipse配置jdk的src.zip源代码步骤
    Zookeeper WINDOWS 安装配置
    zookeeper windows 入门安装和测试
    zookeeper集群搭建(windows环境下)
    ant使用指南详细入门教程
    linux查看系统版本和系统位数
    suse linux 命令
  • 原文地址:https://www.cnblogs.com/lyon91/p/9838589.html
Copyright © 2011-2022 走看看