You can find many tool to manage packages on MAC, Linux but on Windows maybe lesses.
This week, I read a blog use chocolaty to install packages on Windows via command line, so i create this post to share it to everybody.
The first, you can read chocolaty at: https://chocolatey.org/
and installation guide at: https://chocolatey.org/install.
** Installation steps
Step 1: You need install powershell in your windows first:
Download Windows Management Framework (WMF)
Step 2: Enable RemoteSigned for Powershell(Open with Administrator) via command:
Step 3: Install Chocolaty:
$iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
** Install some packages with Chocolaty
Install Java JDK:
Goto https://chocolatey.org/package and find Java JDK like screenshot below:
When you use chocolaty, the environment variable will be added to your system automatically. (:D)
2. Install maven