Questions tagged [jar-with-dependencies]
30 questions
10
votes
1 answer
Jersey fails when creating uber jar with maven-assembly-plugin
I have created a maven jersey starter webapp. Also I have embedded jetty server in my app using jetty plugin.
My project is working fine when I run my project using mvn jetty:run command.
But when I package my project using mvn clean package command…

Nitish Kumar
- 721
- 1
- 10
- 26
7
votes
1 answer
Maven assembly plugin complains about no files whatever I do
I have a similar situation to Add jar-with-dependencies artifact from other Maven module, however the suggested solution did not work for me. I've tried using both moduleSets and dependencySets. So here we go:
Introduction:
I have a multi-module…

thecoop
- 45,220
- 19
- 132
- 189
6
votes
1 answer
Renaming a fat jar with Maven
When I create a jar file I want to fit inside my dependencies. For that, I use maven-assembly-plugin such as follows:
...
...
org.apache.maven.plugins
…

Rors
- 159
- 2
- 10
4
votes
0 answers
Android Studio - Create JAR file with dependencies for standard Java project
I'm building a standard java project, not an android project.
It is using the Gson library from Google.
Is there a way to create a JAR file for this project, while maintaining dependencies to the Gson library? Please correct me if I'm framing the…

fractal5
- 2,034
- 4
- 29
- 50
4
votes
2 answers
Why does the maven-assembly-plugin descriptor say in its example site?
Something that has always made me wonder with maven-assembly-plugin is that the jar-with-dependencies example file on the apache website has a TODO comment about a jarjar format.
Is this just an artifact of code that keeps getting copied through…

NealSr
- 111
- 4
3
votes
1 answer
Spring Boot webserver works fine in Eclipse, fails to start on Server : missing EmbeddedServletContainerFactory bean
Following the model of the Spring Documentation I created a very simple Hello World like application. It spun right up on Eclipse and everything looked great. Sweet! I ran it and could browse to the URL. Fastest development ever.
But this has to…

Steve Cohen
- 4,679
- 9
- 51
- 89
3
votes
1 answer
Creating a bundle jar for javafx application
I am trying to bundle all libraries to one jar for my JavaFX application using ANT. I found the following Creating a bundle jar with ant but could not get it to work. Adding the library *.jar files can be done in by adding…

Jan Kubovy
- 421
- 5
- 11
2
votes
2 answers
Get jar-with-dependencies using ansible maven_artifact
Is it possible to get a Java jar-with-dependencies using ansible package maven_artifact?
Now for a bit of a context:
I have a simple Java application. This means I need to produce a jar-with-dependencies type of jar for this app to be executable as…

avi.elkharrat
- 6,100
- 6
- 41
- 47
2
votes
2 answers
Getting No configuration setting found for key 'akka.version' from jar-with-dependencies shaded jar
I've used the maven-shade-plugin given in the akka docs and it creates a shaded jar as evidenced by the following output from maven build:
[INFO] --- maven-shade-plugin:2.4.2:shade (default) @ remoting.example ---
[INFO] Including…

Dean Schulze
- 9,633
- 24
- 100
- 165
2
votes
1 answer
Maven: Jar with dependencies VS jar without dependencies
I am currently working in a Java project, and we use maven to build the final jar. There are two ways to build the jars as we all know, i.e. one single jar with-dependencies, and a jar without dependencies. In the latter case, we need to add…

Rui
- 3,454
- 6
- 37
- 70
2
votes
2 answers
Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java'' finished…

aviv_elk
- 416
- 1
- 9
- 21
2
votes
1 answer
Jar-With-Dependencies not including dependency
I am trying to package my applicaction using jar-with-dependencies
I am using spring-rabbit
org.springframework.amqp
spring-rabbit
…

mangusbrother
- 3,988
- 11
- 51
- 103
1
vote
1 answer
How to discard a local dependency in a maven project?
I have a question about the integration the eclipse and maven.
I have a project A with dependencies in project B which is itself just a container for a bunch of projects B-i.
Project B is imported in Eclipse but most of the B-i are not imported in…

Exeed
- 37
- 4
1
vote
1 answer
How do I include RestEasy Jackson2Provider in jar-with-dependencies?
I have a java rest service client that I am packaging up using the maven-assembly-plugin. I am creating a zip file containing all of the dependencies plus a jar-with-dependencies. So I end up…

SteveS
- 1,008
- 3
- 18
- 32
1
vote
1 answer
How to setup a common classpath for all dependencies inside a maven project?
I have a spring project, that is compiled into a jar file. Lets call this project A.
There is another project B which is a dependency of Project A. I have no contol over project B. The project B is available in the form of two files.
One is an…

Vibhor Singhal
- 33
- 4