Questions tagged [jar-with-dependencies]

30 questions
9
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…
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
  • 42,842
  • 15
  • 122
  • 181
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…
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…
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…
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
  • 7,882
  • 18
  • 77
  • 125
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
  • 396
  • 1
  • 6
  • 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,432
  • 10
  • 44
  • 81
2
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
  • 331
  • 3
  • 10
1
vote
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
  • 4,285
  • 2
  • 35
  • 40
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
  • 25
  • 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
  • 926
  • 3
  • 16
  • 30
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…
1
vote
1 answer

Jetty can't locate REST classes when application is packed to jar

When I start my application with embeded Jetty server directly in Eclipse, I can access my REST APIs e.g. on "localhost:8082/getModules" and all is working. However if I create jar-with-dependencies from my application, after I navigate to…
1
2