Questions tagged [fatjar]

134 questions
1
vote
2 answers

Find duplicate JARs in OSGi fat jar bundle

I am currently working on a project that results in a fat JAR that runs in an OSGi context (Apache Felix). Is there a way/command to check if some of the jars that I have embedded into my fat jar are also available from other bundles and services,…
Florian Baierl
  • 2,378
  • 3
  • 25
  • 50
1
vote
0 answers

TomEE | CDI - Fat JAR deployment incompatible with managed bean lifecycles

I run my TomEE in a Fat JAR type of deployment, and I recently noticed that my @PreDestroy lifecycle was not being triggered when interrupted (^C signal). I believe this may be due to the fact that when the Fat JAR explodes into the WAR, the WAR…
James
  • 329
  • 2
  • 12
1
vote
0 answers

How to use minimize() from shadowJar properly?

In my configuration I have: shadowJar { minimize() archiveName = "fat.jar" } When I do fatjar, shadowJar doesn't includes my code from package mystdeim I found in documentation that I can force to exclude some dependencies from minimize by…
mystdeim
  • 4,802
  • 11
  • 49
  • 77
1
vote
1 answer

Unable to create fat jar by maven

I am trying to create a fat jar which includes my test classes as well as it is described here : How to add test classes in JAR with Maven project But I am getting the following error when I run maven install: Failed to execute goal…
user1474111
  • 1,356
  • 3
  • 23
  • 47
1
vote
1 answer

Using Maven-bundle-plugin, how can i package dependent jars as .class (extracted jars)

I need maven-bundle-plugin to generate the jar with expanded dependent jars. My plugin configuration in pom.xml looks like: org.apache.felix maven-bundle-plugin
1
vote
1 answer

Py4J Callback Interface throws "Invalid interface name" when the packaged .jar is used as a plugin

My code is exactly the same as the example shown on py4j website: Implementing Java Interfaces from Python Except my classes are all in the same src.main.java package (see below for the code) Problem: If I do a gradle fatjar build with…
bryantC
  • 43
  • 5
1
vote
0 answers

Running Gatling tests in docker

We are looking in to using Gatling as a load-tester for an application we are developing. Im pretty unexperienced with Scala in general but as I understand the Scala-requirement are pretty modest so I hope that shouldnt be a problem. I want to be…
Jiinxy
  • 559
  • 2
  • 5
  • 17
1
vote
1 answer

Android include all dependencies in a output library

I've created an android library which use itself another library (aar). When i use my generated aar file in a new project i can not execute functions which use the other library code. How can generate an aar with all library dependencies included?
1
vote
2 answers

spring-boot-maven-plugin repackage not including dependancies

Here is my pom.xml: com.securebort.services services 0.0.2 jar services Cipherworks services exposed to the…
Jegan
  • 21
  • 1
  • 7
1
vote
0 answers

Gradle Fatjar Build Error

I'm trying to create a fatJar with eu.appsatori.fatjar plugin. For some reason I keep on getting this error: Caused by: org.gradle.api.GradleException: Could not expand ZIP…
Star
  • 11
  • 3
1
vote
1 answer

Control order in which jars are added to shaded jar

I have found that the Confluent Kafka Connect addons only work if the jars are added to the classpath in a specific order. Accordingly, I'm trying to build a single shaded jar that includes the jars, picking conflicting classes in the same order.…
Marcin
  • 48,559
  • 18
  • 128
  • 201
1
vote
1 answer

Gradle building old version of code

I'm trying to build a fat jar with gradle but every time I do I get a really old version of the program. Running the program from main directly in IntelliJ works fine so it is something with the gradle build itself that is not working. When i check…
Icy Creature
  • 1,875
  • 2
  • 28
  • 53
1
vote
0 answers

Gradle fails at creating fat jar on antlr sourceset after clean, succeeds otherwise

I'm experiencing a weird behaviour on my mutliproject Gradle build. The project having issues is open source, so those who want to dig more into the build are welcome to take a look here, on the branch develop. In the parent project, I defined a…
Danilo Pianini
  • 966
  • 8
  • 19
0
votes
1 answer

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' id 'com.github.johnrengelman.shadow'…
Anonymous
  • 1
  • 1
0
votes
1 answer

Unable to exclude DataSourceAutoConfiguration class while running fat jar from cmd

Below is my spring boot main class configuration : @EnableAutoConfiguration(exclude={DataSourceAutoConfiguration.class}) @Configuration @EnableAutoConfigurationProperties public class MainClass{ } When i am running this spring boot using intellij,…
1 2 3
8 9