Linux安装git和maven |
您所在的位置:网站首页 › go开源项目打成镜像了 › Linux安装git和maven |
我们知道最后的代码都是要运行在Linux系统中的,所以就需要在Linux中安装git,从而能够拉取代码,安装maven,从而能够进行项目的打包。 本篇博客以centos为例,介绍如何安装git,安装maven3.8,配置环境变量,并使用命令进行打包,然后运行jar包。 其他相关的maven和git的博客文章如下 【IDEA】IntelliJ IDEA的使用 和 配置相关 & Maven项目 &Tomcat Web项目 git的使用——结合具体问题记录git的使用 & 代码提交从入门到熟练 git的使用——如何创建.gitignore文件,排除target、.idea文件夹的提交 目录 前言引出Linux安装git安装git 安装maven1.查找版本2.下载和解压3.配置环境变量4.配置阿里云仓库5.先清理后打包 运行jar包总结附录:pom.xml文件 引出1.介绍如何安装git; 2.安装maven3.8,配置环境变量; 3.使用命令进行打包,然后运行jar包 Linux安装git 安装git yum install -y git然后就可以进行代码的克隆 git clone https://gitee.com/pet365/java-gc-demo 安装maven 1.查找版本https://maven.apache.org/download.cgi 是配置生效 source /etc/profile输入mvn -version查看安装版本 1.介绍如何安装git; 2.安装maven3.8,配置环境变量; 3.使用命令进行打包,然后运行jar包 附录:pom.xml文件 4.0.0 com.tianju spring-gc-demo 1.0-SNAPSHOT jar 8 8 UTF-8 2.3.8.RELEASE org.springframework.boot spring-boot-starter-web org.projectlombok lombok org.springframework.boot spring-boot-dependencies ${spring-boot.version} pom import org.springframework.boot spring-boot-maven-plugin 2.3.8.RELEASE repackage com.tianju.GcApp |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |