320 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
83
views
Is it possible to run spring boot test using junit console launcher?
I am trying to create a fat JAR that includes my application and its tests to run them externally using the JUnit Console Launcher. The build succeeds, and the JAR is created. However, when I execute ...
0
votes
0
answers
55
views
How to exclude specific files from certain dependencies using the Gradle Shadow plugin?
I’m building a fat JAR using the Gradle Shadow plugin and I need to exclude specific files from particular dependencies.
For example, suppose I have the following dependencies:
ch.qos.logback:logback-...
0
votes
0
answers
43
views
I am facing some warning when build maven project using mvn clean package command
I am facing these warnings.
These warnings can be categorized into three main issues:
Automodule Warning (exp4j-0.4.8.jar)
Shading module-info.class Warning
Overlapping Resources in Shaded JAR
While ...
0
votes
0
answers
175
views
MalformedURLException: unknown protocol: nested for spark-submit
I built a Spring Boot 3.4 fat JAR and when I try to run it using Spark Submit, I get the following error:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org....
1
vote
1
answer
151
views
Log4J implementation not found in fat JAR
I already found out how to configure Log4J programmatically, and now I need to build a "fat JAR" that includes all dependencies, so that the program can be run simply with java -jar example.jar and be ...
0
votes
2
answers
154
views
How to prevent Java21 to forcibly add 'ns2' to namespace?
I have a Java application doing SOAP requests to a WebService (which I have no control of). It is currently running on Java8 and I need to make it compatible for both, Java8 and Java21 (not only ...
0
votes
0
answers
105
views
How to fix this POM file to make one fat jar?
I have a simple assignment for class to practice maven and I am completely lost with the pom file part. Our Java file just takes in either "PDF" or "XLS" then reads a csv file and ...
0
votes
2
answers
201
views
Reading files from Resources folder of a Nested jars of a spring boot Jar
I have a use case where I need to refer to configuration files from various nested JARs within a Spring Boot fat JAR
public void searchConfFiles() throws Exception {
...
0
votes
0
answers
26
views
How to install Fat Jar: Url for download not working
I am trying to install Fat Jar Plugin to Eclipse 4.29.0.
When I try to install it directly from eclipse (Help --> Install New Software) , the following error comes up:
I tried to download the Jar ...
0
votes
1
answer
69
views
Application works but "Could not find or load main class" when launching jar
It's time for one of the theoretically most basic question ! I tried all classic and simple solutions and I'm running out of ideas.
So, my App works well when I launch it directly in my IDE but when I ...
1
vote
0
answers
44
views
Can I be sure which copy of a dependency is used in war containing an uberjar?
An application is deployed as a war file. It contains a dependency "a" as a jar file inside the war file. "a" has its own dependency "b", embedded inside it, so "a&...
1
vote
0
answers
489
views
How To Build A Fat / Uber AAR From Multi Module Kotlin Multiplatform Library Project
I am fairly new to building Kotlin Multiplatform libraries, especially with a multi module setup. Recently I build a Kotlin Multiplatform library which has the following structure:
MyLibrary
│
├── :my-...
-1
votes
1
answer
92
views
SendGrid fat jar error: Invalid signature file digest for Manifest main attributes
According to information found here: https://github.com/sendgrid/sendgrid-java, I should be able to download the sendgrid "fat" jar and use that without needing additional dependancies, but ...
0
votes
1
answer
319
views
Ktor Application fatJar/shadowJar not including resources directory and static info
I have a ktor application and i want to package a fatJar so i can run it easily but when using Ktors built in fatJar gradle task or the shadow plugins shadowJar task they arent including the resources ...
-1
votes
1
answer
588
views
Embedded Tomcat 10 serving static resources from fat jar
The following code works correctly when fired from the IDE (Eclipse); that is, the documents in src/main/resources/static are being served to the browser:
import org.apache.catalina.Context;
import ...