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

本秂侑毒 提交于 2019-12-09 12:22:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!