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 地址

  • 相关阅读:
    第三十七节 log日志模块
    第三十六节 更新备注信息
    第三十五节 取消关注的股票
    第三十四节 路由添加正则功能以及添加关注功能
    第三十三节 通过带有参数的装饰器完成路由功能
    第三十二节 带有参数的装饰器
    Web_CSS
    Web_HTML
    Python操作MySQL
    MySQL_索引原理
  • 原文地址:https://www.cnblogs.com/lyon91/p/9838589.html
Copyright © 2011-2022 走看看