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: Include POM with used dependencies in assembly

We deliver our package with many external dependencies to customers. Now customers can use you libraries to develop stuff on top. For those who are also using Maven we would like to include a pom.xml file in the assembly which contains all…
Jonas
  • 854
  • 13
  • 33
0
votes
1 answer

Maven pom.xml change manifest mainclass

I'm working on a project where I have gotten a sample code that is build with Maven. In the pom.xml there is maven-assembly-plugin 2.3
evading
  • 3,032
  • 6
  • 37
  • 57
0
votes
1 answer

Maven 3 assembly-plugin manifest classpath location

I have the following node in my pom.xml file http://maven.apache.org/xsd/maven-4.0.0.xsd"> …
user322076
0
votes
2 answers

is maven-assembly-plugin effective in this case

I have following project structure: Project "parent-project" does not have any source file and has subprojects as "junit-wrapper","child1-test" and "child2-test". Subproject "junit-wrapper" has only java source inside src/main/java and this is…
akhi
  • 664
  • 2
  • 10
  • 23
0
votes
1 answer

Assembly plugin assembling module dependencies not full project dependencies

Basically I have a multi-module project with this structure and dependencies pom - With dependencies with scope provided + ---- mod1 - with mod1 dependencies + ----- depends on libAAA + ------ depends on libBBB + ---- mod2 -…
tonio
  • 484
  • 5
  • 15
0
votes
1 answer

Sonar and MAVEN POM file with Dependencies

I have setup Maven and Sonar to analyze .NET projects and it works fine for winforms projects. However when I add an MVC project it gives a build Failure because it can't find the System.Web.MVC.dll file. I have an Fx-Cop plugin that runs as part of…
user20358
  • 14,182
  • 36
  • 114
  • 186
0
votes
2 answers

Assemble arbitrary files in a multi-module Maven project

I'm trying to create an assembly for a large (over 100 modules) multi-module Maven project. Some, but not all, modules have various files that need to be included in the final assembly but I am having difficulty figuring out how to get them…
carej
  • 596
  • 1
  • 6
  • 18
0
votes
1 answer

using common profile and filter in maven

I have 3 modules which are linked to a parent project similar to this. root (pom.xml) +--- mod1 (pom.xml) +--- mod2 (pom.xml) +--- mod3 (pom.xml) Mod3 is the module used for packaging purposes. I have some configuration files in config…
Anand B
  • 2,997
  • 11
  • 34
  • 55
0
votes
1 answer

Why can't Hibernate load a class in my JAR file, declared in the hibernate.cfg.xml file?

I'm using Hibernate 4.0.1.Final. I'm using the Assemby plugin to include all my dependencies in my JAR project. However, Hibernate is having trouble finding one of my classes, and it appears correctly spelled. In my hibernate.cfg.xml file…
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

Maven assembly of assemblies

I have a multi-module maven 2 project which uses assemblies (via maven-assembly-plugin at the package phase) to package each module in a certain way. I am then trying to use another module to combine these assemblies into a distributable…
0
votes
1 answer

Maven assembly - creating zip of zips

How do I use Maven assembly to create zip of zips and install the zip containing other zips? For example, I need to create A.zip, B.zip, C.zip and finally have something D.zip (containing A, B and C) to be installed. When I have something as below,…
serverfaces
  • 1,155
  • 4
  • 22
  • 49
0
votes
1 answer

Include Jar dependency in tar assembly using maven

I'm building a tar.gz assembly using a custom assembly.xml file with the maven-assembly-plugin. Within that tar is {stuff +} a WAR file, with a certain dependency currently in: WEB-INF/lib/my-dependency.jar That all works fine. Now I want to take…
barryred
  • 1,103
  • 1
  • 17
  • 27
0
votes
1 answer

Run tests from maven zip assembly

I have finally succeeded in getting Maven to zip together a bunch of jars using an assembly file and install it to my local repository. That was difficult enough... Now my goal is to configure another maven project so that when I do "mvn test", it…
Andy
  • 7,885
  • 5
  • 55
  • 61
0
votes
1 answer

Is there any way to specify a descriptor in my pom file instead of a separate xml file?

When using the maven assembly plugin, can I specify a descriptor in the configuration node (or similar) inside the pom file, instead of having to create an assembly.xml file? All I need it to include jar files in a directory (and its subdirectories)…
juan
  • 80,295
  • 52
  • 162
  • 195
0
votes
2 answers

How to package tarballs in tarballs with Maven

So there are some folders that I would like to compress into tar.gz file individually, and then collectively compress them into a tar.gz file. Is there some way of doing this in maven? Edit: I'm aware of the assembly plugin for Maven. To my…
sonicfire3000
  • 37
  • 1
  • 2
  • 5