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
21
votes
2 answers

Maven Error assembling WAR: webxml attribute is required when building the SpringMVC project with pure Java Based Configuration and no xml's

I am developing a Spring MVC project with pure Java based configuration. I am getting the error below when I do a Maven clean install. Failed to execute goal org.apache.maven.plugins:maven-war-plugin:2.2:war (default-war) on project…
21
votes
1 answer

Combining Jar-with-dependencies and a ZIP file using the Maven assembly plugin

I want to combine my source code in a JAR with all dependencies as well as package this up into a zip file along with other files. I'm able to create the one Jar with all dependencies as well as the ZIP file but I can't combine the two. I ultimately…
user3676476
  • 323
  • 2
  • 10
21
votes
3 answers

How to include external jars in maven jar build process?

I want to build a .jar file with dependencies in maven. Unfortunately I have to include some external .jars in my buildpath. When I now try to build this project with maven package I will get an error that those external .jars are not found. How to…
Matthias Kricke
  • 4,931
  • 4
  • 29
  • 43
20
votes
2 answers

Use Maven assembly plugin to set Linux file permissions even when run on other platforms?

Similar question: Can Ant's tar task set a Linux file permission even when the task is used on other platforms? If I use Maven 2 assembly plugin with the 'project' descriptor, is there a way to set shell script permissions to executable for example…
mjn
  • 36,362
  • 28
  • 176
  • 378
20
votes
6 answers

Maven - resource filtering : implications of the @ symbol in resource files

I am using the Maven assembly plugin to prepare some configuration artifacts for different environments, and I am using resource filtering to substitute parameter values. I came across a weird behaviour where I had a property file with the contents…
Dinuk
  • 1,506
  • 3
  • 16
  • 22
19
votes
4 answers

Maven assembly : add different version of the same artifact

I create my application archive with the maven assembly plugin. All the dependency present in my pom are included without any problem. Now I need to include two or more version of the same artifact. If in my pom I put [...] …
Vlagorce
  • 866
  • 2
  • 6
  • 17
19
votes
3 answers

Maven assembly-plugin "group id '1377585961' is too big" error

I'm trying to understand why only one (new) MacBookPro in our dev-team, running OS-X 10.10.5, is having a problem completing the Assemble phase of a Project that no other MacBook on the project is having. I'm wondering if anyone else run into this…
CelticPoet
  • 588
  • 1
  • 5
  • 13
19
votes
1 answer

How to set manifest class-path in maven shade plugin?

I'm using shade plugin and everything works fine except for being able to set Class-Path for manifest via
niken
  • 2,499
  • 3
  • 33
  • 56
18
votes
8 answers

Maven can't compile java 1.8

I'm trying to use maven to build a jar but I keep getting the error ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project Application: Fatal error compiling: invalid target release:…
Brian
  • 4,328
  • 13
  • 58
  • 103
18
votes
1 answer

Maven Shade Plugin to produce two Jars

Till now I was using maven assembly plugin to generate two JARs for each artifact - compiled sources and dependencies - the reason for this was simple - deploying only the compiled sources over network is significantly faster than deploying…
Vojtěch
  • 11,312
  • 31
  • 103
  • 173
18
votes
5 answers

Maven SNAPSHOT jar file names not consistent using Maven Assembly in MANIFEST file

Here is the scenario: Two Maven 3 project builds. Build 1 has snapshot jars that get deployed to Nexus. Build 2 has dependencies on the snapshots, referenced like 1.0.0-SNAPSHOT, that gets packaged up and zipped up using the mvn clean package…
Thaldin
  • 283
  • 3
  • 15
17
votes
1 answer

The maven assembly plugin is not using the finalName for installing with attach=true?

I have configured following assembly: maven-assembly-plugin 2.2-beta-5
Roland Wiesemann
  • 171
  • 1
  • 1
  • 3
17
votes
6 answers

Maven best practice for generating artifacts for multiple environments [prod, test, dev] with CI/Hudson support?

I have a project that need to be deployed into multiple environments (prod, test, dev). The main differences mainly consist in configuration properties/files. My idea was to use profiles and overlays to copy/configure the specialized output. But…
user68682
  • 745
  • 2
  • 12
  • 18
17
votes
2 answers

How to use Maven assembly plugin with multi module maven project

I am new to maven and spent ~3 days in generating the zip file with assembly plugin refering to http://www.petrikainulainen.net/programming/tips-and-tricks/creating-a-runnable-binary-distribution-with-maven-assembly-plugin/ My project is multi…
kashili kashili
  • 955
  • 4
  • 15
  • 31
1 2
3
72 73