Questions tagged [uberjar]

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.

181 questions
4
votes
1 answer

Unable to instrument apache httpclient using javaagent for spring boot uber jar application

I'm trying to write a javaagent with Bytebuddy to intercept apache httpclient requests and I want to use this agent for spring boot application. The agent works fine when I start my test spring boot application from Idea (run the main method…
segeon
  • 51
  • 3
4
votes
2 answers

Clojure macros weirdness when running jars

Below is a simple Clojure app example created with lein new mw: (ns mw.core (:gen-class)) (def fs (atom {})) (defmacro op [] (swap! fs assoc :macro-f "somevalue")) (op) (defn -main [& args] (println @fs)) and in project.clj I…
siphiuel
  • 3,480
  • 4
  • 31
  • 34
4
votes
1 answer

uberjar built with lein ring fails to see profile environment variables

In my Leiningen project.clj I am using environ to set environment variables in different profiles. I want to build a demo uberjar with lein-ring, which uses different values for certain environment variables to the production version. For some…
ChrisM
  • 2,128
  • 1
  • 23
  • 41
4
votes
3 answers

Access to JSON files outside project directory in clojure using leiningen

I'm building a small web app using clojure with leiningen. I have certain json files that I need to access that I also update nightly using a batch process running on my server. I am using leiningen locally, but want to deploy an uberjar to the…
Sean Geoffrey Pietz
  • 1,120
  • 2
  • 12
  • 17
4
votes
1 answer

Icons disappearing in uberjar made with Leiningen

I have made a funky application in Clojure with a simple Swing gui containing some JButtons with some icons, and I want my non-programmer friends to be able to use it too. It works all fine on my own computer when I start it with 'lein run' but when…
hjek
  • 103
  • 4
4
votes
1 answer

how to add a hook into the uberjar process (building with lein)

i would like to add a hook to the uberjar process. the specific example is to download the maxmind geoip dat file into the resources folder so an updated version is bundled into the jar every time it deploys. examples/suggestions appreciated thanks!
hiroprotagonist
  • 902
  • 1
  • 11
  • 24
3
votes
1 answer

Problems creating Uberjar in Clojure

I am using Clojure's java-time library, which is wrapper of java.time [1]. My program works when I invoke lein run or when I call the functions through the repl. On the other hand when I try to do lein uberjar I get the following error with the…
Navarro
  • 1,284
  • 2
  • 17
  • 40
3
votes
1 answer

Could not find kotlin-gradle-plugin for Kotlin script Gradle

build fails, classpath error: thufir@dur:~/NetBeansProjects/kotlinShadowJar$ thufir@dur:~/NetBeansProjects/kotlinShadowJar$ gradle clean FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project…
Thufir
  • 8,216
  • 28
  • 125
  • 273
3
votes
0 answers

How to get the maven shade plugin to use local modules in a multi-module project?

I'm trying to generate an uber jar in a multi module project with the maven-shade plugin with no success. Versions: maven v3.9, maven-shade v3.0 The project looks as follow: main |- library |- admin |- ... The sub module "admin" inherits…
tapmeppe
  • 41
  • 2
  • 8
3
votes
1 answer

No DestinationFactory was found for the namespace - create uber JAR of CXF with Jetty

I want to create an uber JAR for a CXF-based application server. I want to run the server from the commandline with java -jar. In the IDE, I can run the main class com.connexta.desertcodecamp.Server, but I am not correctly creating the uber…
ahoffer
  • 6,347
  • 4
  • 39
  • 68
3
votes
0 answers

boot-clj: install uberjar in maven repository

Is is there a way to install an uberjar into a local maven repository? Would it genereally a good place to store them or would it better to keep uberjar builds in a seperate directory? I mean, I was thinking og having a uberjar and a regular jar for…
Anton Harald
  • 5,772
  • 4
  • 27
  • 61
3
votes
2 answers

How do I create an uber jar in Ceylon

I have a Ceylon project. I would like to distribute it in an uber jar that includes all dependencies, so that it can be executed with simple java -jar myproject.jar Is this possible in Ceylon?
user7610
  • 25,267
  • 15
  • 124
  • 150
3
votes
1 answer

java runtime exception: "could not find writer for content type" when building uberjar and zip package

When using the maven assembly plugin to build an uberjar and then package it into a zip file, I encounter a runtime failure: java.lang.RuntimeException: could not find writer for content-type text/xml type: java.lang.String This failure does not…
caffreyd
  • 1,151
  • 1
  • 17
  • 25
3
votes
1 answer

maven build error: Error creating shaded jar (Access denied)

I get the following error trying to make an uberjar with maven, any ideas what might be going on? [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO]…
user1316758
  • 391
  • 1
  • 6
  • 8
1 2
3
12 13