Installing Maven and Spring Boot CLI #20
akash-coded
started this conversation in
Guidelines
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How to install Maven and Spring Boot CLI on Windows, macOS, and Ubuntu (or other Debian OS)
Windows
Run Windows Terminal/Powershell (if not available, download the latest versions of Powershell and/or Windows Terminal from the Microsoft Store)
Open a modern Windows Terminal or Powershell (NOT cmd), and execute the following commands to install
scoop:Set-ExecutionPolicy RemoteSigned -scope CurrentUser(This might not work if your execution policy is already set or if your PowerShell version is older. Latest PowerShell is recommended)Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')scoop install curlRemove-item alias:curljava -version(Make sure Java 11+ is installed and visible)mvn -vscoop install mavenscoop bucket add extrasscoop install springbootAlternatively, if
scoopdoesn't work for you, usechocolateyto installMavenandSpring Boot CLI. Open a terminal or PowerShell as administrator and execute the following:Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('[https://community.chocolatey.org/install.ps1'))](https://us06st1.zoom.us/web_client/0urcsz4/html/externalLinkPage.html?ref=https://community.chocolatey.org/install.ps1%27)))choco install mavenchoco install spring-boot-cliMacOS
Open a terminal and execute the following:
brew updatebrew install mavenbrew tap spring-io/tapORbrew tap pivotal/tapbrew install springbootUbuntu
sudo apt updatesudo apt upgradesudo apt dist-upgradesudo apt install mavenmvn -version(to check if maven was installed)java -version(to check Java 11+ is installed and visible)sudo apt install unzip zipcurl -s https://get.sdkman.io | bashsource "/home/username/.sdkman/bin/sdkman-init.sh"sdk flush candidatesand restart the terminalsdk install springbootspring --version(to test if Spring Boot CLI installation was successful)Beta Was this translation helpful? Give feedback.
All reactions