Questions tagged [maven-shade-plugin]

This plugin provides the capability to package the artifact in an uber-jar, including its dependencies and to shade - i.e. rename or remove - the packages of some of the dependencies.

Sources : http://maven.apache.org/plugins/maven-shade-plugin/index.html

Goals Overview

The Shade Plugin has a single goal:

shade:shade is bound to the package phase and is used to create a shaded jar.

Usage

General instructions on how to use the Shade Plugin can be found on the usage page. Some more specific use cases are described in the examples given below. Last but not least, users occasionally contribute additional examples, tips or errata to the plugin's wiki page.

In case you still have questions regarding the plugin's usage, please feel free to contact the user mailing list. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the mail archive.

If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our issue tracker. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our source repository and will find supplementary information in the guide to helping with Maven.

Official site : http://maven.apache.org/plugins/maven-shade-plugin/

Maven Repository site : https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-shade-plugin

529 questions
0
votes
1 answer

merge jar using maven assembly without dependencies and overlay reources

I want to merge two jar project and overlay some resource in that .i have project A that have some other dependency and project type is jar . another project B depend to project a . i want to merge project A,B but i do not need fat jar for all…
ali akbar azizkhani
  • 2,213
  • 5
  • 31
  • 48
0
votes
1 answer

How to add MAVEN SHADE plugin to eclipse

I have a maven project in eclipse. I was able to create the jar using maven build. Now I am trying to create jar using maven shade. But how do I add it in eclipse? I don't see any installation on the website. All tutorials show the edited pom.xml…
Atihska
  • 4,803
  • 10
  • 56
  • 98
0
votes
1 answer

Given model profile directory does not exist (FirefoxProfile)

I have a profile folder src/main/resources/firefox/profile/selenium and an extension folder under src/main/resources/firefox/extensions/ I am using the maven shade plugin to package this as an uber jar so we can run the test suite on our server. …
Faulkry
  • 7
  • 4
0
votes
1 answer

Create JAR file if package type is POM

How can I make a JAR file if project packaging type is "POM". The reason is that I have couple of sub-modules which added in this project. I'm using shaded plug-ins to make a JAR file but looks its not getting created in .m2 directory, but it…
0
votes
1 answer

HBase MapReduce with google.inject mismatch

I'm trying to do a map reduce against a HBase table using our in-house framework which makes use of Guice 4.0 It looks like yarn might be using version 3.0 and I'm getting a type mismatch. 2016-03-25 08:19:45,784 ERROR [main]…
owenrumney
  • 1,520
  • 3
  • 18
  • 37
0
votes
1 answer

Spring cannot find class path resource

I googled my problem several times. Some of them was good, but not the solution for my problem. Since now, I took hours, to solve my problem. I started a project in eclipse using maven. After that, I added spring and hibernate as dependencies. This…
Jan Höck
  • 1
  • 2
0
votes
1 answer

Shaded joda time does not contain classes

I'm trying to shade Joda time 2.9.2 into my final jar file, using the maven shade plugin. But Joda time's classes are not getting added to the final jar, some packages and other files are getting added, but not the .class files. Here's my…
0
votes
0 answers

Added or merging manifest sections with maven shade plugin?

I create a "fat jar" using the maven shade plugin (version 2.4.3). I want to merge the manifest sections from several jar's into the MANIFEST.MF file of the target (fat) jar. IFAIK this is not possible. Second try is to add the needed manifest…
rmuller
  • 12,062
  • 4
  • 64
  • 92
0
votes
1 answer

Camel: how do Type Converters load?

When run my application through mvn compile exec:java it says: [main] DefaultTypeConverter INFO Loaded 199 type converters When run through java -jar (uberjar made with maven-shade-plugin) it says: [main] DefaultTypeConverter …
Archer
  • 5,073
  • 8
  • 50
  • 96
0
votes
0 answers

How to build an executable jar with embedded jetty containing tld files using maven shade

I want to make executable jar file using apache shade plugin. The project is a webapp with a bunch of jsp s. We are using embedded jetty with jasper jsp engine. Some jstl tag are used in these jsp's. So I need to properly pack all the tld files in…
pomkine
  • 1,605
  • 4
  • 18
  • 29
0
votes
2 answers

Maven Shade Plugin Create Jar Without Dependencies and load dependency jars from another location

I want to create a jar file using maven-shade-plugin without 3rd party dependencies. However, 3rd party dependency jars should be copied to some folder (say libs). So, when I distribute my application, I distribute main.jar and libs folder together,…
Yasitha Waduge
  • 13,180
  • 5
  • 35
  • 42
0
votes
2 answers

I cannot package maven-plugin-api into uber jar using maven-shade-plugin

My pom.xml looks as follows: org.apache.maven.plugins maven-shade-plugin 2.4.2
user1615664
  • 591
  • 2
  • 11
  • 24
0
votes
2 answers

How to use Maven Shade plugin?

In my project I want to avoid version conflict of neo4j lucene indexer (which uses lucene version - 3.6.2) and apache lucene (lucene version - 5.3.0). For this I want to use Maven shade plugin. Actually, I added plugin to my projects 'pom.xml' file…
Display Name
  • 139
  • 1
  • 11
0
votes
1 answer

How to access file inside maven shaded jar

I'm using Maven Shade to make a shaded .jar file for a Jetty project. This project includes some resource files (text property files) that I'd like to read. How do I access the files inside the said .jar file? The current folder structure inside…
nipuna-g
  • 6,252
  • 3
  • 31
  • 48
0
votes
2 answers

Maven shade plugin usage

The following section shows the configuration for the shade plugin in my pom.xml: org.apache.maven.plugins maven-shade-plugin 2.4
WestCoastProjects
  • 58,982
  • 91
  • 316
  • 560