赞
踩
apt install maven
root@ubuntu:/usr/share/maven/conf# mvn -v
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_382, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.15.0-84-generic", arch: "amd64", family: "unix"
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
root@ubuntu:/usr/share/maven# mkdir repository
root@ubuntu:/usr/share/maven# ls
bin boot conf lib man repository
cd 项目路径
mvn clean package
wget https://mirrors.cloud.tencent.com/gradle/gradle-6.8-bin.zip
export GRADLE_HOME=/gradle/gradle-6.8
export PATH=$GRADLE_HOME/bin:$PATH
source /etc/profile
root@ubuntu:/springbootdemo/test_gradle/build/libs# gradle -v
------------------------------------------------------------
Gradle 6.8
------------------------------------------------------------
Build time: 2021-01-08 16:38:46 UTC
Revision: b7e82460c5373e194fb478a998c4fcfe7da53a7e
Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_382 (Private Build 25.382-b05)
OS: Linux 5.15.0-84-generic amd64
构建成功,在build/libs jar包运行成功
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。