Skip to content

DipayanP007/Assignment-Maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages