Assignment 2
Assignment 2
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.
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)