Questions tagged [fatjar]

134 questions
0
votes
0 answers

Fat .jar and version of 3rd party libraries/dependencies

Is there any way to find out the version of the 3rd party libraries used by a fat .jar?
0
votes
0 answers

How to exclude dependency from a Fat Jar that creates version conflicts

I am using an old fat jar in my project that uses old version of "com.fasterxml.jackson.core" jar. The problem is that java class loader is failing to load my project with error "Exception in thread "main" java.lang.NoSuchMethodError:…
Mayank
  • 43
  • 1
  • 8
0
votes
0 answers

Create FatJar-library from module with Gradle-Kotlin and place it into a separate extension-directory

My goal is to create a FatJar from the module "custom-wiremock-extension" and automatically place it in the extensions folder of Wiremock. My project is structured in the following way: . ├── ... │ ├── e2e (module) │ ... │ └──…
0
votes
0 answers

Building executable FatJar file using Maven, the Swing GUI Toolkit and Intellij as development IDE

I am relatively new in Java programming and try to set up a Swing-based GUI with some action buttons (including ActionListener and ActionPerformed sections) as a first project. So far, I managed to create some buttons and assign some functions to…
Nose1
  • 1
  • 1
0
votes
0 answers

Is possible to run the main entry from the lib folder in a fat jar?

Assuming I have a fat jar. The internal structure like this: application.properties META-INF\ - MANIFEST.MF lib\ - MyApplication.jar # com.example.MainEntry - Dependency.jar - OtherDependency.jar - ... Please notice that, the main…
user3593261
  • 560
  • 4
  • 17
0
votes
0 answers

Passing @PropertySource and Maven variable from command line

I have create a SpringBoot fat war application to run it inside his embedded Tomcat. Now I have a older configuration like follow: @SpringBootApplication @PropertySources({ @PropertySource(value = "${app.config}", ignoreResourceNotFound =…
CoderJammer
  • 599
  • 3
  • 8
  • 27
0
votes
1 answer

Gradle Shadow Plugin .jar not running on Docker container, no main manifest attribute

I built a fat jar using the Gradle Shadow Plugin like so: tasks { "build" { dependsOn(shadowJar) } shadowJar { mergeServiceFiles { var path = "META-INF/" } …
buzoherbert
  • 1,537
  • 1
  • 12
  • 34
0
votes
1 answer

How to solve a Camel3 fat-jar creation exception?

I use Apache Camel 3.18.2 witch camel-main. To create a fat-jar I configured the following two plugins within my pom.xml: org.apache.camel camel-maven-plugin
PowerStat
  • 3,757
  • 8
  • 32
  • 57
0
votes
0 answers

spark-submit failed to load class on windows 10

Context: Scala, Spark application, fat JAR, spark 3.3.0, windows 10 IDE:IntelliJ IDEA 2022.2.2 Package: it..<...>.MyPackage MainClass : it..<...>.MyPackage.Application Jar building: using sbt-assembly, or with Build Artifact (JAR) Problem: in both…
LorenzoGi
  • 256
  • 4
  • 14
0
votes
1 answer

Fat jar from scala project throws error when run

I created Scala project using Maven as build tools. I try to build fat jar that later I will be able to run from command line. I wrote a program that use Keycloak library to create users with REST API. It works fine when I run it straight from the…
Pan Wolodyjowsky
  • 388
  • 6
  • 26
0
votes
1 answer

How can I include shaded POM of a library/sdk in my application's pom.xml?

I have a library/sdk in which I created a shaded pom java-sdk-1.0.0-SNAPSHOT-shaded.pom using maven shade plugin . which contains all jars and classes which are used as dependencies . Now I want to integrate this in my sample application so that I…
0
votes
1 answer

Adding external jar dependency in JAR file

Backgorund : I am trying to add UserStorageSPI for my legacy application, so that we can use existing user credentials to log in. I have followed this tutorial, and the full source code for the sample application is available here. This application…
coretechie
  • 1,050
  • 16
  • 38
0
votes
1 answer

Gradle FatJar fails to jar dependencies

I have a gradle java project and i am trying to fatjar it with dependencies included. My gradle version is 6.9.2 I have tried the following tasks: jar { manifest { attributes "Main-Class": "com.baeldung.fatjar.Application" } …
Lazaruss
  • 1,107
  • 1
  • 13
  • 24
0
votes
1 answer

Given all libraries extracted from a Fat Jar, how to rebuild the source code?

There is a Fat Jar, built with Spring Boot and Maven. Its internal structure can be explored, using Java Decompiler. Notice the "lib" node, which is supposed to contain all libraries needed to run the Fat Jar. The Fat Jar can execute successfully…
JoyfulPanda
  • 867
  • 6
  • 14
0
votes
1 answer

Resources are not being loaded for shade plugin

The below code is able to scan all the dependencies and load the resources when I am executing it from IntelliJ as IntelliJ resolves dependencies from the .m2 repo, but it's not able to load anything when running from the fat jar created by shade.…
1 2 3
8 9