Showing posts with label maven. Show all posts
Showing posts with label maven. Show all posts

Saturday, July 2, 2016

Using maven to include dependency jars in export

Here's a good example Maven Assembly Plugin

http://www.mkyong.com/maven/create-a-fat-jar-file-maven-assembly-plugin/

Setting up maven in eclipse

Here's what you do to open a maven project in eclipse:

1. Install maven (m2e) plugin:
http://stackoverflow.com/questions/8620127/maven-in-eclipse-step-by-step-installation
http://o7planning.org/web/fe/default/en/document/5189/install-maven-into-eclipse
http://www.vogella.com/tutorials/EclipseMaven/article.html


2. In eclipse, choose File-> Import -> Maven -> Existing Maven Projects, and then Enter

3. Root Directory -> Browse and choose the directory where the pom.xml file exists

4. Finish

And you are done! (build the project as the next step via Run As -> Maven Build)