Questions tagged [jar-with-dependencies]

30 questions
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
vote
1 answer

How can I build a jar (with all it's dependencies) in maven?

I have a custom appliction, build in maven, with dependencies (more custom modules, and some other things like spring, apache commons and log4j). How can I build an executable jar containing my application and all of it's dependencies? (I.e. what do…
vikingsteve
  • 38,481
  • 23
  • 112
  • 156
1
vote
3 answers

How to modify pom file to add src/test/java files to maven jar with dependancies

I need to include src/test/java files to my jar with dependancies. But when I create the jar it fails because it cannot find the classes. Here is the pom section. Any help would be appreciated. And i compile with: mvn clean assembly:single
0
votes
0 answers

How can I create FAT JAR using maven without main class?

I try to create a library by creating a fat jar with maven in IntelliJ. However, in that library I don't need main class because all methods and classes were tested with unit tests. So, the main class is simply there because all java programs need…
JPA
  • 11
  • 2
0
votes
0 answers

How to exclude parent webapp directory from child build

I have a parent maven module runtime and it contains webApp directory to store web related stuff.(html,js etc...).In my child module employee also follow the same structure.So when i am building the child project jar with dependencies it contains…
gihan-maduranga
  • 4,381
  • 5
  • 41
  • 74
0
votes
1 answer

Maven build appears to be overwriting classes when creating jar-with-dependencies

I'm using maven to build a jar-with-dependencies jar. One of the vendor jar files in the project has similarly named classes with different case. For example aM.class and am.class. When the build creates the "jar-with-dependencies" jar file, only…
Roy
  • 5
  • 1
  • 3
0
votes
2 answers

Spring + Spring Data JPA in Java SE standalone

I am trying to create a simple JAR with Spring + Spring Data + Hibernate capabilities. This is working when I have just put Spring or Hibernate + JPA separated but not when I am putting all them together. Is this type of configuration possible? I…
0
votes
1 answer

difference: maven assembly:assembly versus assembly:single goals?

I'm trying to build an alexa-app, with some annotations driven dependency injection (dagger 2) code. The alexa-sample-skills-test gives example pom and instructs to use the following command to build a jar with dependencies. mvn assembly:assembly…
0
votes
2 answers

Maven building a jar with dependencies unpacked inside the JAR

I have a problem with jersey 2.14 and nested jars and I can't figure it out. I looked it up and turns out its a bug with jersey which is still being fixed at the moment. As a workaround I want to be able to use maven to build a jar with all…
DKhanaf
  • 365
  • 1
  • 4
  • 18
0
votes
3 answers

Why aren't the Dependencies of a Jar listed in its Manifest

It seems to me that it would be really useful to have the dependencies of a jar listed in its Manifest, possibly as an optional field. Without this feature, it is near impossible to know what a jar depends on, without finding it on the web…
Derrops
  • 7,651
  • 5
  • 30
  • 60
0
votes
1 answer

Can't start IBM WebSphere MQ client using JavaSE YAJSW

I'm getting some type of error when starting my JavaSE application as a Windows service, but I'm not sure why. Some IBM jar is dumping a humongous bunch of data, but I can't seem to tell what's wrong: FFDC called in uninitialized Trace module …
Jonas Byström
  • 25,316
  • 23
  • 100
  • 147
0
votes
1 answer

NetBeans not seeing javax

I have a servlet & a class sitting in the same package on a NetBeans web project. (these class locations are for example only-- this is nowhere near my ideal organization of classes.) In the servlet, everything is alright-- it is seeing javax and…
user3401132
  • 139
  • 8
0
votes
1 answer

maven release plugin with phase and jar-with-dependencies

I have a build set up to run a variety of tasks when I run mvn release:prepare and mvn:release:perform. Specifically, I have a phase set up so that my javadocs and source-plugins are run only when I release. This allows my build to avoid a lot of…
-1
votes
1 answer

How to specify file path from Main jar, and not for dependency JAR

I have a java project with 3 modules. [ ] Utils ----->code ----->pom.xml [ ] Module B ----->Resources\config.xml ----->code ----->pom.xml [ ] Module C ----->Resources\config.xml ----->code ----->pom.xml The utils module is a…
t0m9er
  • 143
  • 2
  • 11
-1
votes
1 answer

Android Studio cannot resolve symbol for dependency

I am using a .jar as a dependency for my project, but Android Studio keeps saying "cannot resolve symbol" when I attempt to use a class from the .jar. The weird thing is, it does recognize the classes and methods from the dependent .jar file but it…
Vincent Williams
  • 2,836
  • 3
  • 17
  • 22
1
2