问题
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).
回答1:
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.
回答2:
See this answer if you don't want to install the JARs in your repository for whatever reason: Add a dependency in Maven
来源:https://stackoverflow.com/questions/852952/including-a-non-mavenized-dependency-so-it-works-with-maven-shade-plugin