If you want the deps extracted, you need to do a combination of [1] and [2].

If you want the dep jars included in the final jar, I think you best option
is to use the maven-assembly-plugin [3]. You also need to make the final
jar executable in this case.

[1]
http://maven.apache.org/plugins/maven-shade-plugin/examples/includes-excludes.html
[2]
http://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html
[3] http://maven.apache.org/plugins/maven-assembly-plugin/

/Anders


On Wed, Jun 12, 2013 at 5:35 AM, Jorge Infante Osorio <[email protected]>wrote:

> Hi all.
>
> I´m newbie in maven.
>
> I have a Maven project and I need to build a jar file with the maven
> dependencies inside, like I do with export jar as runnable in Eclipse to
> execute the functionality from the command line.
>
> What plugin can I use for this with what config?
>
> Thanks.
>
> Saludos,
> Ing. Jorge Infante Osorio.
> CDAE.
> Fac. 5.
> UCI.
> “En un mundo perfecto las pizzas serían una comida saludable, las laptops
> se
> cargarían desde una fuente de corriente inalámbrica y todos los JAR serían
> bundles de OSGI ”
>
>
> http://www.uci.cu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to