Step 1: Search
$ apt-cache search maven
Step 2: Install
$ sudo apt-get install maven
Step 3: Test
$ mvn --version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.8.0_144, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-132-generic", arch: "amd64", family: "unix"
Step 4: Run
$ git clone git@github.com:Josaber/todo-list-api.git
$ cd todo-list-api
$ mvn spring-boot:run
Reference:
How to install maven in Ubuntu
网友评论