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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

Why is Maven shade skipping a file from the MCCoroutine library

When running my Spigot plugin (built with Kotlin and Maven) I'm receiving an error about a missing class. The file 'com.github.shynixn.mccoroutine.bukkit.impl.MCCoroutineImpl' is missing in my .jar. ...
sd_master92's user avatar
0 votes
0 answers
43 views

ERROR StatusLogger Log4j2 could not find a logging implementation. while running executable jar

I have one spring application(dependency) as a lib and other is simple java application(dependenct). I am trying to run java class from which i am calling spring main method. after running java -cp ...
govind's user avatar
  • 1
0 votes
0 answers
33 views

MaryConfigurationException: MaryTTS and Maven shade plugin build executable jar

I am working on a JavaFX application in Eclipse that uses MaryTTS. In Eclipse the application works fine, but if I generate a runnable jar with Mavens shade plugin I get marytts.exceptions....
Alex's user avatar
  • 1,497
0 votes
0 answers
34 views

maven-shade-plugin: How to copy classes under BOOT-INF in the root of the generated jar?

So I have a spring boot application and I am creating a fat jar with the maven-shade-plugin like below <plugin> <groupId>org.apache.maven.plugins</groupId> <...
Da Mike's user avatar
  • 455
0 votes
0 answers
17 views

set maven property during build process [duplicate]

I need to create fat jar of mongo-kafka-connect and save it to some directory, lets say jars mongo-connect.jar so that I can copy it into image using Dockerfile. I did this using maven shade plugin ...
papaj's user avatar
  • 1
0 votes
0 answers
61 views

Spring Boot Maven Plugin With Maven Shade Plugin - Replace single class in dependency

I have project with Spring Boot. It uses Spring Boot Maven Plugin. I need to replace single class in one of my dependencies with my own implementation. I am struggling with it. I am running into cuch ...
Mateusz Stefaniak's user avatar
0 votes
1 answer
38 views

Include&relocate maven dependency in another module java

I have a multi module maven project which I build with maven's shade plugin. I have a module called "distribution" which includes all the other modules and then builds. My problem is that I ...
Nandor Dukat's user avatar
0 votes
1 answer
63 views

NoClassDefFoundError: org/apache/commons/cli/ParseException - Maven Shade Plugin - Fat Jar

I am attempting to make a fat jar using Maven Shade Plugin, but I am having trouble. Every time I run the shaded jar file, I get this error: Error: Unable to initialize main class nz.ac.wgtn.swen301....
MagicKoyFish's user avatar
0 votes
1 answer
41 views

How can I relocate the properties files from an EXTERNAL library using maven?

I want to shade and relocate a library into my plugin using the maven shade plugin. The classes are relocate but I am getting an error while using the plugin and, after asking on the support server, I ...
user avatar
0 votes
0 answers
14 views

How to shade a jar into uber jar and make uber jar's pom depending on shaded jar's dependencies?

I created a multi-module maven project in my IDE, which is structured in following form: ├── pom.xml # root pom.xml ├── commons │   ├── pom.xml # commons pom.xml -[child of ]-> root pom.xml │  ...
Acech's user avatar
  • 1
1 vote
0 answers
60 views

Maven Shade Plugin transformer to merge text files, discarding duplicate lines

Is there a resource transformer available for the Apache Maven Shade Plugin that will merge text files of the same name as does the AppendingTransformer, but throw out duplicate lines (i.e. perform a ...
Garret Wilson's user avatar
0 votes
0 answers
21 views

Maven is not adding my dependencies to my jar

I am trying to deploy a jar to a maven repo with some dependencies, from the maven. I tried using aven-assembly-plugin and maven-shade-plugin and some other ones. And I am trying to deploy using clean ...
MaikyDev's user avatar
0 votes
0 answers
6 views

How can I shade cells between 'Prep to QR' based on action 'N' using VBA macros?

How to shade the cells from "Prep to QR" if action "N" is detected. enter image description here Dim R As Range Sub ShadeCells() color "N", wdGray50 color "Y", ...
Eevelynn's user avatar
1 vote
0 answers
121 views

Maven Launch4j Plugin InaccessibleObject // add JVM argument to POM

first: Please be gentle, I'm very new to this. I have a java application which is a client connecting to a wildfly instance. Running this from IDE works. Now i want to wrap the client to an .EXE using ...
derYak's user avatar
  • 11
1 vote
1 answer
107 views

Helidon MP/Maven: Adding path to custom config source in child project inherited from shared library

I have a shared library which has a class that implements org.eclipse.microprofile.config.spi.ConfigSource (let's call this CustomConfigSource.java). In the shared library's META-INF/services folder ...
swing1234's user avatar
  • 253
0 votes
0 answers
191 views

Maven shade plugin conflict resolution for overlapping classes and resources

In my maven project there are multiple shaded jars. Few of them have same dependency like jackson but without doing relocation. Whenever i try to create a fat jar of my project using maven shade ...
best wishes's user avatar
  • 5,934
1 vote
1 answer
70 views

JavaFX build with shade, LoadException?

After following this SO post (JavaFX build with shade, Location is required. Where is it looking?), I have configured my project to be the same. But when running: java -jar .\target\app-name-1.0.0-...
Conor Egan's user avatar
1 vote
0 answers
112 views

Maven Shade Plugin - add version of dependency jar in MANIFEST

I'm using the shade plugin to deploy a 'fat' jar of our application. One of the dependencies in our application utilizes ClassName.class.getPackage().getImplementationVersion(); Which, from my ...
Kevin's user avatar
  • 11
0 votes
1 answer
250 views

How do I create a Fat Jar with Maven Shade?

I am trying to create a fat jar using Maven. Everyone says the Shade plugin is the simplest way to do it, so that is what I am trying. I've tried a good dozen example projects. All of them are ...
Alcamtar's user avatar
  • 1,512
2 votes
1 answer
421 views

Error creating shaded jar: Error in ASM processing class kotlin/collections/ArraysKt___ArraysKt.class: UTF8 string too large

I am trying to upgrade kotlin version of shading project but i am getting below issue when i upgrade to kotlin 1.5.30: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal ...
Aayush Agrawal's user avatar
0 votes
0 answers
114 views

Maven Shade Plugin ignoring explicitly declared dependency versions

I am running into an issue where when building a java project at work where despite the build showing using a specific dependency version of a package. For this project I am setting up a gRPC client ...
Nathan Buczkowski's user avatar
0 votes
1 answer
32 views

Deafult Build Plugin is used instead maven-shade

I want to use maven to create out of two modules jar files, (each as a single fat jar), depending on a third module. My problem is that if I use "mvn package" it does not use the maven-shade-...
flying_kaktus's user avatar
0 votes
0 answers
16 views

override the default font folder in the Maven JAR for JasperReports

I am trying to override the default font folder in the Maven JAR for JasperReports with my custom font folder. Below is my pom.xml file, but I am encountering the following error: [ERROR] Failed to ...
Cristina Moretti's user avatar
0 votes
0 answers
42 views

Unexpected shading behavior during Jenkins build

I am experiencing a very weird behavior when building our project with Jenkins. During the build we use the Maven Shading Plugin to relocate some artifacts. The desired behavior would be that the ...
Peter Ivony's user avatar
0 votes
0 answers
142 views

Maven example to add extended agent

I m writing my own extension with maven and I wanted to embed the extension and create a single jar. I saw an example in https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/...
Koki's user avatar
  • 1
1 vote
1 answer
141 views

Geotools: Getting IllegalArgumentException: Argument "ellipsoid" should not be null after "org.opengis.referncing.NoSuchAuthorityCodeException" error

I encountered the common "org.opengis.referencing.NoSuchAuthorityCodeException: No code "EPSG:4326" from authority "EPSG" found for object of type "EngineeringCRS" ...
Komal's user avatar
  • 17
0 votes
0 answers
78 views

VBA Powerpoint: Can i hide shapes randomly on a slide?

you can use VBA to hide shapes: VBA PowerPoint Display and Hide Shapes But can you hide shapes randomly on a slide (all but one specific)? I don´t know how to make a random on a ActivePresentation....
o0Julia0o's user avatar
0 votes
1 answer
244 views

how to use apache-maven-shade plugin to resovle multi dependency conflict

Maven shade plugin is very powerful for resolving dependency conclict, but a situation I have is as follows : myproject guava 31 thridparty-dependency-1 guava18 I could relocate the guava 31 ...
Kane.Sun's user avatar
  • 1,233
0 votes
0 answers
281 views

maven-shade-plugin: Cannot load implementation hint

I want to create a simple uber-jar for my non-modular project using shade. I followed the documentation at [https://maven.apache.org/plugins/maven-shade-plugin/examples/executable-jar.html] but ...
Fernando Afonso's user avatar
0 votes
1 answer
965 views

How to create a test runner class with JUnit5, Cucumber and run test from jar file (maven shade)?

I am trying to switch from JUni4 & io.cukes to JUnit5 & io.cucumber. Currently i run "mvn clean package" command to create a jar file. And then run the test using java command (java -...
bStk83's user avatar
  • 19
1 vote
0 answers
92 views

Spring boot 2.7.3 and custom CharsetProvider

I'm trying to register a custom CharsetProvider. As suggested in the https://stackoverflow.com/questions/39641604/spring-boot-1-4-x-and-custom-charsetprovider post we upgraded our application to use ...
Adarsh Mishra's user avatar
0 votes
0 answers
811 views

Exclude a specific class from Maven dependency at runtime

I am working with a Spring Boot application, where I have added one dependency in pom.xml, but I would like to remove one specific class from one of the dependencies as follows: pom.xml <project ...
Joy's user avatar
  • 4,285
0 votes
1 answer
437 views

How the class loader works in Java with a shaded jar

My experience with Java class loading is limited. With tools like Maven I have a rusty understanding of how they resolve dependency versions. But I've hit a problem that's making me question how Java ...
Shane Gannon's user avatar
  • 6,990
0 votes
2 answers
276 views

matplotlib fill_between leaving gaps between regions

I'm trying to use fill_between to fill different regions of a plot, but I get gaps between the regions I'm trying to fill. I've tried using interpolate=True, but this results in non rectangular shapes....
Joe Roberts's user avatar
2 votes
0 answers
303 views

How to use Kotlin in a library without forcing consumers to take Kotlin Stdlib as a dependency?

I am working on a Java-based library, and I'd like to start using Kotlin. However, there are over 10k known direct consumers, and I don't want to introduce a new dependency to all of the consumers. ...
Matthew Pope's user avatar
  • 7,362
4 votes
1 answer
304 views

How to run maven integration tests on shaded artifact?

I have a simple goal: I want to be able to use the maven-failsafe-plugin, or any viable alternative, to run tests against a jar I'm building with the maven-shade-plugin. Specifically, I want to run ...
Logic32's user avatar
  • 43
0 votes
3 answers
283 views

maven-shade-plugin relocate classes under META-INF/versions in multi-release jar

I'm using shade to create uber jar. I relocated dependency classes to avoid conflicts. However, I can't find online docs about how to relocate classes under META-INF/versions.
sify's user avatar
  • 655
0 votes
0 answers
155 views

Maven Shade Plugin does not include needed classes from dependancy

In a project, I use as a dependancy an artifact which is in the same groupId than this project. The dependancy is well imported and used in my IDE, but when I compile the jar, no classes from the ...
Damien Verlynde's user avatar
2 votes
1 answer
2k views

Maven-shade-plugin has detected that some class files are present in two or more JARs

I'm trying to use the maven-shade-plugin but I get a warning: javafx-controls-18.0.1-win.jar, javafx-graphics-18.0.1-win.jar, javafx-media-18.0.1-win.jar, javafx-web-18.0.1-win.jar define 1 ...
Dmitriy's user avatar
  • 385
0 votes
1 answer
315 views

Is there a sample project in github that shows how to use the maven-shade-plugin?

As the title says, I'm looking for a simple example in github that contains a code example that shows how to use the [the maven-shade-plugin] to rename classes when two versions of a library must be ...
PatS's user avatar
  • 9,283
3 votes
1 answer
310 views

Within the ecosystem of Java, Scala or Kotlin, is there a reliable way to repackage a library dependency to avoid version conflict?

This may be an old question but is still pending a solution. The entire question stemmed from a small detail in the development of Apache Spark, one of the largest open source project in history. ...
tribbloid's user avatar
  • 3,756
1 vote
1 answer
4k views

Spring Boot is not compatible with this Spring Cloud release train

I am trying to create shaded jar for my spring project with bellow pom.xml, which runs fine in IDE but when I run mvn clean package and execute the jar with java -jar .\flink-0.0.1-SNAPSHOT-test.jar ...
ihristov's user avatar
  • 107
0 votes
0 answers
165 views

Shade multiple versions of a direct dependency in a maven project

We have a maven project, A, which depends on B. We are planning to use multiple (three) versions of B so that A could work on those multiple versions directly and produce a single uber-jar which ...
MaJoR's user avatar
  • 964
2 votes
1 answer
1k views

Does grpc-core work when embedded in a shaded jar?

TL;DR The grpc-core jar file doesn't work when embedded in a shaded jar but does work when placed on the classpath as a separate jar file. I can't tell if the issue is with grpc-core or grpc-netty (or ...
Hmmmmm's user avatar
  • 788
4 votes
2 answers
5k views

What have caused the problem of "Could not find netty-transport-native-epoll-4.1.76.Final-linux-x86_64.jar"?

I'm using Gradle shadow jar plugin to produce a fat jar for selenium. The following code is declared in Gradle kts: dependencies { val seleniumV = "4.1.4" val phantomJSV = "1.5....
tribbloid's user avatar
  • 3,756
1 vote
0 answers
225 views

How do you add contents of two jars to uber jar with Maven shade plugin?

I have two projects. Project A has only resources. Project B has resources and class files. Project B has 3rd party dependencies. I have installed the jar for the project B to local repository (mvn ...
mikkmar's user avatar
  • 21
1 vote
1 answer
859 views

Mavn shade plugin with AWS Lambda

I’m using the maven shade plugin as below to create a jar for aws lambda <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-...
ThrowableException's user avatar
0 votes
1 answer
560 views

Why Spark Submit causes NoSuchMethodError when I run a uber jar made though maven shade plugin?

I have a Apache Beam project which works fine if I directly run it. But if i try to create a jar using maven clean:package it creates a uber jar using maven shade plugin. After that I provide this ...
Mohit Kumar's user avatar
2 votes
0 answers
159 views

Maven child module does not inherit parents' POM properties when using Shade plugin

I have a multi-module project with a structure that goes as: -ParentModule -AggregateModule -pom.xml -ShadedModule -src -pom.xml -pom.xml So in essence, I'm trying to create a ...
followerOfHistLight's user avatar
0 votes
1 answer
480 views

tests fat jar with maven shade-plugin

I need to build one jar for execution tests during CI process on server. This jar have to contains all test dependencies (like junit, mockito) and spring boot dependencies while my test will use ...
lolcio's user avatar
  • 353

1
2 3 4 5
11