Create pom.xml

mvn archetype:generate -DgroupId=com.anshu.core -DartifactId=SpringCollectionsExample -DarchetypeArtifactId=maven-archetype-quickstart
cd SpringCollectionsExample
mvn package
java -jar /target/SpringCollectionsExample-jar-with-dependencies.jar