Skip to content

web-slate/java-basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Basics

Install Java

# download and Install Java manually
java -version

Install and Setup Maven

brew install maven # For Mac
scoop install maven # For Windows
mvn -version # Check version
mvn install # Install POM XML Dependencies
mvn dependency:tree
mvn clean compile
mvn test

Run Test

mvn test

Generate Docs

mvn javadoc:javadoc

Check Coverage Report

mvn verify

Other usefull maven commands.

Revalidate the Dependencies Force Maven to revalidate all dependencies and clean the project by running the following commands:

mvn clean
mvn dependency:purge-local-repository
mvn dependency:resolve
mvn install

Local Setup

python3 -m pip install --upgrade pip
pip install mkdocs mkdocs-material mkdocs-gen-nav-plugin mkdocs-awesome-pages-plugin
chmod +x ./generate_docs.sh
./generate_docs.sh
mkdocs serve