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
13
votes
1 answer

No executable code found at line

I am getting this message "No executable code found at line" when doing a remote debug from IntelliJ ver 12. This is a Java application. It is using maven for building the war. Not sure where to make the change in order to do the debugging properly.
user215005
  • 175
  • 1
  • 3
  • 10
12
votes
2 answers

Spring Boot uber jar packaging classes to root instead of BOOT-INF/classes

Hi Spring Boot Experts - I am trying to create a spring boot uber jar that needs to be deployed to a apache storm cluster. But, the catch is that Storm is expecting all the class files in the root of the jar while the packaged app files are under…
Satya
  • 1,037
  • 3
  • 15
  • 34
12
votes
3 answers

Error creating assembly archive bin: You must set at least one file

I have a maven multi-module project with a module called mod1 that I'm trying to add into a folder /project jars with mvn assembly:assembly from the app folder, where the app pom.xml is. error: [ERROR] Failed to execute goal…
Program-Me-Rev
  • 6,184
  • 18
  • 58
  • 142
12
votes
3 answers

How to have maven-assembly-plugin respect the exclusions defined in pom.xml?

TL;DR When some (specific) transitive dependencies are excluded in the POM file but the assembly descriptor is set to fetch all dependencies, the excluded dependencies will be included in assembly. How can I prevent this? A bit of background Some…
Chop
  • 4,267
  • 5
  • 26
  • 58
12
votes
2 answers

maven assembly, avoiding full path in zip file?

I have a multi-module project which contains 2 modules (each with its own pom.xml) and a parent pom.xml pointing to those modules. When I run "mvn clean package" on the parent pom, each project ends up with a zip file under it's own target folder. I…
Alexandre Thenorio
  • 2,288
  • 3
  • 31
  • 50
11
votes
3 answers

Pack library and all its dependencies to one folder, but other dependencies in separate folder

I've maven project. I use maven-assembly-plugin to create zip files with all module dependencies packed in it. Need to create zip with following structure: /my-libs /other-libs To my-libs need to pack dependencies from my-lib depenency + all its…
turbanoff
  • 2,439
  • 6
  • 42
  • 99
11
votes
3 answers

Why Maven assembly works when SBT assembly find conflicts

The title could also be: What are the differences between Maven and SBT assembly plugins. I have found this to be an issue, while migrating a project from Maven to SBT. To describe the problem I have created an example project with dependencies…
Atais
  • 10,857
  • 6
  • 71
  • 111
11
votes
1 answer

building a jar and including it in a zip with maven-assembly-plugin

I have a mavenized java project (Maven2) which I want to build into a jar, which is easy enough by supplying the jar-with-dependencies descriptorRef in the pom.xml. However I also need to deploy my project in a zip with some .exe and .bat files,…
NomeN
  • 17,140
  • 7
  • 32
  • 33
11
votes
4 answers

How to timestamp an output artifact in Maven?

I am trying to find out if Maven has some built-in plug-in that can be used to time-stamp artifacts. I created an assembly file and am using the maven-assembly plugin to create a final distribution (jars,docs,scripts, etc). I want to name this…
John
  • 877
  • 4
  • 11
  • 19
11
votes
2 answers

Log4j2 custom plugins - annotation processing with Maven Assembly Plugin

I am not very familiar with Maven, I started using it just yesterday, but I like it. In my project I use Log4j2 library for logging and because of insufficiecy of advanced plugins (like appenders, converters) I need to use custom plugins. log4j-api…
jjurm
  • 501
  • 6
  • 11
11
votes
1 answer

How do you disable the maven-assembly-plugin plugin from the command line?

This is just like this question only this is about the maven-assembly-plugin, not the javadoc plugin. I don't want to use a profile to do this because that would be more error prone than a command line option.
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
11
votes
2 answers

Maven: Distribute source code with with jar-with-dependencies

I am using the Maven assembly plugin to package binaries of my Java project into a fat jar (with the jar-with-dependencies descriptor). This works pretty well. Question: How can I also include the source files of my project alongside the compiled…
Johannes
  • 760
  • 1
  • 7
  • 20
11
votes
1 answer

How to Exclude Certain Jar Dependencies when Using Maven for Jar Assembly

There are a handful of very similar-seeming questions on StackOverflow, but I'm having trouble finding anything that works. For now, I'm trying to remove log4j from the built Jar. Although I'm new to Maven, and I'm sure I've got this all wrong,…
Jamie Jackson
  • 1,158
  • 3
  • 19
  • 34
10
votes
1 answer

How to assemble multimodule maven project into one WAR?

Similar question here. I would like to get ONE resulting WAR to be deployed from 3 different maven modules. The war modules are absolutely non-conflicting : First one that has Java classes and some WEB-INF/artifacts Second one are just API -…
lisak
  • 21,611
  • 40
  • 152
  • 243
10
votes
3 answers

Add classpath to manifest with a custom assembly descriptor

I have the following custom assembly: full jar false
davija
  • 301
  • 2
  • 3
  • 10