Questions tagged [maven-assembly-plugin]

The Assembly Plugin for Maven is primarily intended to allow users to aggregate the project output along with its dependencies, modules, site documentation, and other files into a single distributable archive.

The maven-assembly-plugin supports creating of different kind of archives like zip, tar, tar.gz etc. using the assembly:single goal. One can include not only project resources, but also dependencies and arbitrary content, making this a very versatile plugin.

More information on the Maven Assembly Plugin can be found at its home page.

1088 questions
0
votes
2 answers

Maven assembly include all jars but one (exclude doesn't work)

I am trying to do exactly that: https://stackoverflow.com/a/1793017/789656 However, in my case I want some jars not being put in the lib folder. I tried to add special*.jar But it doesn't do the trick,…
Se Norm
  • 1,715
  • 5
  • 23
  • 40
-1
votes
5 answers

exception NoClassDefFoundError from deploy spring project with maven assembly

i'm trying to build an executable jar with dependencies for a spring project. my pom:
Adi Mor
  • 2,145
  • 5
  • 25
  • 44
-1
votes
1 answer

Maven: Problem with mave-assemby-plugin: it's trying to process a virtual second assembly.xml not existing in project

When executing mvn asembly:single it works fine (generate the desired file) but fails at end… If I execute with -X this is the output: ... [INFO] Reading assembly descriptor: ../assembly.xml [DEBUG] Field directory source:…
-1
votes
1 answer

Exception in thread "main" java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories

I am facing issue with exporting JAR as runnable from Eclipse. Tried with maven plugin, spring-boot plugin & simple java project export. However, it shows spring.factories file related error. I have already copied and pasted it in the required…
-1
votes
1 answer

Create jar in directory other than target with maven

My java project structure is as follows ├── code │   ├── java │   │   └── PROJECT │   │   ├── pom.xml │   │   └── src After deployment the directory structure is coming as ../PROJECT/target/xyz.jar Now if I want to create the jar file as…
Dileep Dominic
  • 499
  • 11
  • 23
-1
votes
1 answer

Maven installing plugin

[INFO] `Scanning for projects`... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] `Building MVNDEMO 0.0.1-SNAPSHOT` [INFO]…
-1
votes
3 answers

Standard way of using Maven for Online Development

I've recently started learning about Maven and my question is about standard ways for deploying my web application on a web/app-server. I am able to create war file for a simple web application that uses spring and mysql. I would like to deploy the…
Vicky
  • 5,380
  • 18
  • 60
  • 83
-1
votes
1 answer

Cannot open jar created by maven assembly plugin

When i create jar with maven-assembly plugin it compiles correctly but when i try to open jar it gives me that error All components are initialized by my IDE: Exception in thread "main" java.lang.NullPointerException at App.(App.java:26) at…
user8404636
-1
votes
1 answer

Packaging into a tar file in maven without creating a jar file

I'm trying to package a text based file into .tar using maven. To achieve this I used an assembly plugin and it worked, but along with the file tar a jar is also being generated. How can I avoid that?
Rkumar
  • 19
  • 7
-1
votes
1 answer

Different dependencies on multiple binaries in Maven project

I have a maven project which should produce several binaries. Some of them have dependencies others dont and the dependencies may differ from binary to binary. The question is: How do I achieve this without including every dependency but only the…
Waschbaer
  • 447
  • 6
  • 18
-1
votes
1 answer

Include entire dependency JAR as JAR within maven project

Is it possible to tell Maven, or one of its common plug-ins, to pack one of my dependency JARs within the final assembly as a JAR file? ie If I depend on org.some-group:some-artifact:1.2.3, the Maven plug-in would just stuff the entire…
0xbe5077ed
  • 4,565
  • 6
  • 35
  • 77
-1
votes
1 answer

ActiveMQ: What is DEPENDENCIES file inside lib folder of ActiveMq jars?

ActiveMq v 5.10.1 I downloaded ActiveMq. Went to its lib folder. Selected and unzipped activemq-web-5.10.1 and activemq-kahadb-store-5.10.1 jars. Went inside the respective META-INF folders and noticed this file named as DEPENDENCIES. What is…
-1
votes
1 answer

Assembly the site including children

Deployment team require that we package our maven site as a war and publish it in Archiva repository. Our first problem, how to assembly the war, with the children sites inside. I try this, but it is not working. The war generated does not include…
angelcervera
  • 3,699
  • 1
  • 40
  • 68
-1
votes
2 answers

POM.xml error fix

I am very new to eclipse and maven repository. I got a project to config the errors of POM.xml. I fixed many of it, but I am unable to fix some. Following are that errors. jlibs
maXfenda
  • 214
  • 3
  • 10
-1
votes
1 answer

how to restrict the 2 same jars are loaded with diffrent versions

I am using Apache Maven to building the project.. Problem is some jars are added two times with the different versions. httpclient-4.0.3 httpclient-4.3.3 httpcore-4.0.1 httpcore-4.3.2 jackson-core-asl-1.6.7 jackson-core-asl-1.9.13 i want the higher…
Prasad V S
  • 262
  • 4
  • 17
1 2 3
72
73