views:

503

answers:

2

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).

+4  A: 

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.

sal
+1  A: 

See this answer if you don't want to install the JARs in your repository for whatever reason: http://stackoverflow.com/questions/396245/add-a-dependency-in-maven/765032#765032

Aaron Digulla
System scope replaces a problem rather than solving it. Its use of absolute paths tends to cause problems when dealing with more than one developer or when trying to use a CI server. Installing the jar in an company or group wide repository should be preferred.
sal
You can use properties in the path, so there is no need to make it absolute.
Aaron Digulla