uberjar Questions
4
Solved
I feel a bit stupid about this question but i can't figure out how to add a SINGLE dependency (jdom.jar) into another jar.
Context: We developed a simple plug-in for our application, this plug-in ...
9
Solved
In tweaking my buildfile, I seem to have encountered a bug with mainClassName:
thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$
thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$ ./gradlew clean ...
Zest asked 19/12, 2018 at 14:37
19
Solved
I have a multiproject build and I put a task to build a fat JAR in one of the subprojects. I created the task similar to the one described in this cookbook.
jar {
from configurations.compile.colle...
Vert asked 2/2, 2011 at 7:9
8
Solved
I've written a simple Kotlin source file in order to get started, and a Gradle script file.
But I can't figure out how to add the main function to the manifest, so that the JAR could be self-execut...
1
I would like to combine several jars into an Uberjar.
In Java I know how to shade dependencies using these two tools:
https://maven.apache.org/plugins/maven-shade-plugin/
https://plugins.gradle.or...
Earldom asked 27/12, 2021 at 14:58
8
Solved
I use HDP-2.6.3.0 with Spark2 package 2.2.0.
I'm trying to write a Kafka consumer, using the Structured Streaming API, but I'm getting the following error after submit the job to the cluster:
Exc...
Slayton asked 28/12, 2017 at 17:41
7
Solved
10
In gradle - how can I embed jars inside my build output jar in the lib
directory (specifially the lib/enttoolkit.jar and lib/mail.jar)?
3
I have a project that works fine using lein run. Now I want to compile it into a standalone jar using lein uberjar. However, there are a couple of source files in my src/projectname/ directory call...
4
Solved
I'm trying to create a executable jar(using maven) that contains the project classes and it's dependencies with a manifest file that has the entry for the main class and the class path entry that p...
Toft asked 2/12, 2009 at 13:19
1
Solved
There are lots of repeated answers on how to exclude an individual file from a fatJar. Typically, the file is excluded are in META-INF and they are excluded either because of a filename conflict, o...
Pedometer asked 8/1, 2020 at 8:59
6
Solved
I've heard people say that they create a fat JAR and deploy it. What do they actually mean ?
1
Solved
I'm packaging a Spring Boot app into an uber jar using the maven-shade plugin. Simple, right? Well, it is except as of recently I'm getting the following warning at the end of mvn clean package:
[W...
Metagalaxy asked 9/5, 2019 at 16:10
1
How do I specify the Main-Class attribute in the ShadowJar once it's imported?
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import com.github.jengelman.gradle.plugins.shadow.tasks.Shadow...
Cornhusk asked 16/12, 2018 at 23:27
2
Solved
I have used maven shade plugin in my project to relocate all dependency jar classes under one package e.g., org.shade.*
When I try to use that shaded jar in other application as maven dependency i...
Laundromat asked 2/9, 2016 at 7:25
1
Solved
build fails, classpath error:
thufir@dur:~/NetBeansProjects/kotlinShadowJar$
thufir@dur:~/NetBeansProjects/kotlinShadowJar$ gradle clean
FAILURE: Build failed with an exception.
* What went wro...
Windsail asked 7/2, 2018 at 12:6
1
I have the following gradle build config:
plugins {
id 'com.github.johnrengelman.shadow' version '1.2.3'
}
group 'abc'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'application'
mai...
Stoops asked 16/6, 2017 at 17:44
4
Solved
I want to build an uberjar (AKA fatjar) that includes all the transitive dependencies of the project. What lines do I need to add to build.gradle?
This is what I currently have:
task uberjar(type: ...
1
I'm looking for the equivalent of an uber-jar in the python world.
I need to distribute a python package to all three major platforms (Windows, Mac, Linux).
It must be bundled with all its depend...
Likely asked 22/6, 2016 at 20:6
1
Solved
In the Spark 2.0.0's release note, it says that:
Spark 2.0 no longer requires a fat assembly jar for production deployment.
Does this mean that we do not need to make a fat jar anymore for su...
Disloyal asked 10/8, 2016 at 9:1
1
Solved
What is the difference between lein run, lein trampoline run and deploying a clojure app as uberjar? Is there any performance difference?
If I do a lein run/lein trampoline run I can just ssh int...
3
Solved
I'm using SBT (within IntelliJ IDEA) to build a simple Scala project.
I would like to know what is the simplest way to build an Uber JAR file (aka Fat JAR, Super JAR).
I'm currently using SBT but...
Athanor asked 11/2, 2015 at 16:25
2
Solved
I use lein uberjar to create a standalone jar of an application.
When executing
java -jar dataloader-0.1.0-SNAPSHOT-standalone.jar,
it crashes with:
Caused by: java.lang.IllegalArgumentExcep...
13
Solved
Is there a tool or script which easily merges a bunch of JAR files into one JAR file? A bonus would be to easily set the main-file manifest and make it executable.
The concrete case is a Java rest...
Transit asked 17/9, 2008 at 8:54
5
Solved
I was a heavy Maven user and now I'm gradually using SBT for some of my projects.
I'd like to know how could I use SBT to create a standalone Java project? This project should be packaged as a JAR...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.