Downloading all maven dependencies to a directory

Use case: Tired of having unwanted jars? Tired of finding dependent jars? Maven shall help to download all the dependencies of the project into a folder. Solution: If you already have a pom.xml execute command “mvn dependency:copy-dependencies” and you will find target/dependencies folder filled with all the dependencies. Else you can create simple pom.xml

Continue reading…

 

How to create java maven project in Eclipse?

In this post we will talk about creating java maven project.  Steps involved in creating java maven project. 1. Lunch eclipse. Click “File->New->Maven Project” menu item. 2. In the new maven project dialog, select “create  a simple project” check box and click “Next” button. 3. Give appropriate “Group Id”, “Artifact Id”, “Version” and “Packaging Type”. [...]
Continue reading…