How to build package or program using maven
In order to build a package using maven, run
mvn package
If you also want to install the maven package in the local maven repository (usually in ~/.m2
), use
mvn install
In case you don’t have Maven installed, you can install it on Ubuntu using
sudo apt install maven