Steps to build maven project offline.
- Open the the project that you want to build offline.
- Run the following command:
mvn dependency: go -offline
- See the output.
- Run the following command:
mvn -o clean package
- Build is successfully completed offline.