Skip to content

Latest commit

 

History

History
64 lines (51 loc) · 1.04 KB

README.md

File metadata and controls

64 lines (51 loc) · 1.04 KB

README

Installing Maven

sudo apt update
sudo apt install maven

Verify the Installation

mvn -version

Setup the Environment Variable

We open the command terminal and edit the .bashrc file using the below command.

nano ~/.bashrc 

Add maven-specific lines to the file.

export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9
export M2=$M2_HOME/bin
export MAVEN_OPTS=-Xms256m -Xmx512m
export PATH=$M2:$PATH 

Clone the Github Repository

Use the clone command to clone the repository.

git clone https://github.com/DipayanP007/Assignment-Maven.git

Executing the code

Change the working directory to the cloned directory

cd ../Assignment-Maven

Change directory to cal-api module

cd cal-api/
Run the following commands
mvn clean compile
mvn package
mvn install

Change directory to cal-impl module

cd cal-impl/
Run the following commands to execute the JAVA program
mvn clean compile
mvn exec:java