0% found this document useful (0 votes)
16 views

Assignment 2

asd

Uploaded by

mst6mtdxp5
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Assignment 2

asd

Uploaded by

mst6mtdxp5
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Maven

MCDA 5512 Assignment #2


Set Up
In this assignment you will understand Maven.

Make sure you have Java and Maven setup on your workstation.
You can use download Java from https://www.oracle.com/ca-en/java/technologies/downloads/
Also you can download Maven from https://maven.apache.org/download.cgi

Once you download Java and Maven, add it in the PATH environment variable. Make sure you add full path till your
bin folder of maven and java.

Download and install IntelliJ community version from below link

https://www.jetbrains.com/idea/download/?section=windows

You will submit the source code zip for the maven project assignment along with the screenshot of successful run

Homework
(1) Create a maven project with groupId as com.smu.mscda and artifactId as MavenAssingment which will
take string as input in lower case from user. Capitalized the user input string and generate the MD5 hex
of the input string

(2) Add the required maven dependency in pom.xml to Capitalize the string and generate the MD5 hex

(3) Add the dependency for Junit and write one Junit test case for each scenario i.e., to test Capitalize string
and generate MD5 hex

(4) Build the project by running clean and package goal of maven and share the Junit run results

Below is the expected output screenshot when you run the main class of the project:
Bonus Question: Package project into one single jar including the all dependencies and run it as the jar
(Hint: Use maven-shade-plugin to package everything into one jar)

Expected output is as below to run the jar:

You might also like