Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Including a non-Mavenized dependency so it works with maven-shade-plugin

I want to include GData Client, which doesn't use Maven, as a dependency into my Maven project. It ships as a bunch of JAR files.

Additionaly, I use Maven Shade Plugin to build an executable JAR without any external dependencies (with the default configuration, no renaming/including/excluding/transforming of dependencies).

How can I do that?

(Just adding the JARs as resources wouldn't work, since the Shade plugin must extract them).

like image 619
Jaka Jančar Avatar asked May 12 '09 14:05

Jaka Jančar


2 Answers

you want to check the maven docs on installing 3rd party jars

Once installed into your local maven repository, shade should be able to use them like any other dependency.

like image 172
sal Avatar answered Oct 29 '22 06:10

sal


See this answer if you don't want to install the JARs in your repository for whatever reason: Add a dependency in Maven

like image 26
Aaron Digulla Avatar answered Oct 29 '22 05:10

Aaron Digulla