An Uber JAR (AKA fat JAR or super JAR) is a JAR file that contains both the package and all its dependencies in one single JAR file. The advantage is that you can distribute an Uber JAR and not care at all whether or not dependencies are installed at the destination, as an Uber JAR actually has no dependencies.
Questions tagged [uberjar]
181 questions
12
votes
2 answers
Maven shaded jar used as external project dependency
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 it pulls dependency jar's.
My expectation is when…

erdarun
- 441
- 1
- 8
- 14
12
votes
1 answer
Python equivalent of uber-jar
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 dependencies, as the target platform may lack internet.
It…

Michael Gummelt
- 702
- 4
- 15
11
votes
8 answers
ShadowJar: No value has been specified for property 'mainClassName'
In tweaking my buildfile, I seem to have encountered a bug with mainClassName:
thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$
thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$ ./gradlew clean ShadowJar --stacktrace
> Task :shadowJar…

Thufir
- 8,216
- 28
- 125
- 273
9
votes
1 answer
lein run vs lein trampoline run vs uberjar
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 into the server and pull my changes from git, without…

Chin365
- 197
- 1
- 5
9
votes
3 answers
exclude certain clj namespaces from compilation in leiningen
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 called e.g. playground.clj and stats.clj that I use for…

pholz
- 684
- 8
- 19
9
votes
3 answers
How to Include a SINGLE dependency into a jar using maven and fatjar plugin
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 have many dependency. We were using fatjar to include…

drgn
- 1,080
- 1
- 11
- 21
8
votes
2 answers
Clojure Uberjar not loading resource file
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.IllegalArgumentException: Not a…

Martin Lechner
- 187
- 2
- 13
7
votes
1 answer
Do we still have to make a fat jar for submitting jobs in Spark 2.0.0?
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 submitting jobs ?
If yes, how ? Thus the documentation…

Jitsumi
- 127
- 2
- 9
5
votes
1 answer
Clojure symbol evaluation error
So I currently have this code:
(ns contact-form.core
(:gen-class))
(def foo "Hello World!")
(defn some-func [a-symbol]
(println (str a-symbol "'s value is: " (eval a-symbol))))
(defn -main [& args]
(some-func 'foo))
After I do C-c C-k in…

wrongusername
- 18,564
- 40
- 130
- 214
5
votes
0 answers
Shaded class (from uber jar) are not visible in other project to import
I am trying to shade dependency (building uber jar) and importing in other project.In uber jar I can see class but when I try to import the shaded folder/package do not show.Below are my pom.xmls
Test1 with shaded dependency and uber jar

user2895589
- 1,010
- 4
- 20
- 33
5
votes
1 answer
how to create fat jar which does not overwrite entries under META-INF/services
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'
mainClassName = "abc.Driver"
repositories {
…

Ehsan
- 298
- 1
- 3
- 17
5
votes
0 answers
Creating JavaFX fat jar using Ant
I have question. How to make fat jar for JavaFX app using Ant? I know that in Internet is a few tutrials, but it concerns Java apps, not JavaFX apps. I conlude that is difference, because i tried to follow this tutorials, and it works for Java apps,…

MikolajMGT
- 113
- 2
- 10
4
votes
2 answers
Lein fails to add jars to uberjar
I am building a simple web app, which is dependent on a couple of pre-compiled jars and which I want to deploy on Heroku. I put the jars into a resources folder and added the following lines to my project.clj:
:resource-paths…

macleginn
- 321
- 2
- 10
4
votes
1 answer
Problems creating an executeable for a luminus clojure project
I am building a server program to provide an API to a mongo database containing details of photos. All works well running it from the REPL, or if I start it using lein run.
The problems happen when I try and run the uberjar. Building the uberjar…

Iain
- 300
- 2
- 13
4
votes
1 answer
Create uberJar from cucumber/groovy tests including dependencies using gradle
i have some functional tests in {project_home}/src/test/groovy/
i want to be able to use a gradle task to:
Make a jar file from all the .groovy files under {project_home}/src/test/groovy/ including all of the dependencies
be able to run this jar…

kamal
- 9,637
- 30
- 101
- 168