All Questions
320 questions
1
vote
0
answers
59
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
41
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 ...
1
vote
1
answer
132
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
0
answers
96
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
0
answers
22
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 ...
1
vote
0
answers
43
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
votes
1
answer
89
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 ...
-1
votes
1
answer
573
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 ...
1
vote
0
answers
82
views
Copy java.nio.charset.spi.CharsetProvider from MATA-INF/services to "fat" jar of spring-boot-maven-plugin
I'm trying to add jcharset ([https://www.freeutils.net/source/jcharset/]) to my project, by I couldn't archive it for the last few days. Let's I describe my env:
spring boot fat jar
java 17
docker ...
0
votes
1
answer
468
views
Conflicting versions of Flink-shaded-guava while trying to create a shaded jar for a flink job
While trying to create a jar for a Flink Batch program to runs on EMR, I am running into conflicts with versions of flink-shaded-guava jar.
pom.xml
<dependency>
<groupId>org....
1
vote
0
answers
123
views
maven-shade-plugin : how to build the uber-jar before compiling my project?
Sorry if the question was already answered, I didn't understand the other threads.
I have a springboot project that have maven dependency on 2 java projects packaged as jboss-sar on our repository.
...
2
votes
1
answer
4k
views
Is log4j compatible with jdk21?
When I try to build with ant single jar file which uses jar-in-jar-loader everything inside looks as expected. The manifest content is
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.14
Created-By: ...
1
vote
1
answer
1k
views
How do I check all the dependencies inside a fat-jar?
As part of fixing vulnerable dependencies, I want to remove/upgrade a few dependencies let's say json-smart.
But in my project, even after excluding the dependency and adding it exclusively, Azure ...
0
votes
1
answer
303
views
Gradle creating two Jar Files - i only want the "fat" one
I've that gradle.build file:
import com.github.jengelman.gradle.plugins.shadow.tasks.ConfigureShadowRelocation
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
plugins {
id 'java'...
1
vote
2
answers
1k
views
Details on format of Java ZIP file supported by AWS Lambda
Where is documentation on exactly what format of contents of a ZIP file that AWS Lambda supports for Java deployments?
Sure, I've read Deploy Java Lambda functions with .zip or JAR file archives and a ...
0
votes
0
answers
359
views
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 ...
4
votes
1
answer
653
views
Fat aar does not include modules resources in Android
I want to generate a fat-aar of an app module and use it as a dependency in another app.
I have used this library to generate the fat-aar.
I have an app module which is converted as a library module ...
1
vote
0
answers
201
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 ...
0
votes
1
answer
555
views
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 = "...
-1
votes
1
answer
126
views
Why can't I start my camel3 fat-jar route as systemd service on raspberry pi?
I have created a fat-jar for my apache camel 3 route. I put that on my raspberry pi (bullseye) in /opt/myhome and could start it successfully with java 17 (also works with sudo):
/usr/bin/java -jar /...
2
votes
0
answers
642
views
spark-submit DependencyUtils: Local jar does not exists, skipping
Context: Windows 10/Linux Ubuntu 8 LTS
Spark: 3.3.0 (spark-3.3.0-bin-hadoop3)
I'm running spark-submit with a fat jar, but I receive a "jar does not exists" from DependencyUtils, even if the ...
1
vote
1
answer
829
views
How to make jar use gradle?
I use version Gradle 6.8.3
I want to use gradle clean build, but I have cannot make fatJar use gradle.
Here is my task for fatJar
task fatJar(type: Jar) {
manifest {
attributes '...
-1
votes
1
answer
173
views
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 ...
0
votes
1
answer
185
views
how to cross-compile windows linux macos ubejar for javafx with deps.edn aliases?
Nightcode has this implemented
https://github.com/oakes/Nightcode/blob/2e112c59cddc5fdec96059a08912c73b880f9ae8/deps.edn#L20
but for some reason it does not work just by copying code
; does not work
{...
0
votes
1
answer
266
views
Quarkus Reactive Routes: different behaviour in uber jar
Following this guide, I have configured my Quarkus application to return a custom error page when a file is not found in META-INF/resources/.
@ApplicationScoped
public class FileNotFoundHandler {
...