Maven: use dependencies from repository when running command line app ?

Posted by Leonel on Stack Overflow See other posts from Stack Overflow or by Leonel
Published on 2010-05-31T12:09:34Z Indexed on 2010/05/31 12:12 UTC
Read the original article Hit count: 190

Filed under:

Hi,

I've used Maven to build my command line application. Now I'm going to distribute it as a jar file, and I need to handle the app's dependencies.

I don't want to include all dependencies in the jar file as described here.

The environment where my app will be run has Maven. I'd like Maven to run my jar looking at file META-INF/groupId/artifactId/pom.xml inside the package so it knows what the dependencies are and can find them in the repository.

Any ideas ?

© Stack Overflow or respective owner

Related posts about maven