Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7400989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:20:51+00:00 2026-05-29T04:20:51+00:00

Hi I need to assembly jars from multimodule project in master directory. Let us

  • 0

Hi I need to assembly jars from multimodule project in master directory. Let us have a structure like this:

MASTER(pom)
|
+-A3(pom)
| +-A1(jar)
| +-A2(jar)
+-B3(pom)
  +-B1(jar)
  +-B2(jar)

What I want to achieve is to assembly all jar packaged modules in MASTER.

jars/
+- A1.jar
+- A2.jar
+- B1.jar
+- B2.jar

For now I achieved only good resolution on submodules (A3 and B3) by creating pom.xml like:

<modules>
 <module>../A1</module>
 <module>../A2</module>
</modules>
<build>
    <plugins>
        <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <descriptors>
                            <descriptor>src/main/assembly/bin.xml</descriptor>
                        </descriptors>
                    </configuration>
        </plugin>
    </plugins>
 </build>

and assembly descriptor:

<moduleSets>
  <moduleSet>
    <includes>
      <include>org.mycompany:A1</include>
      <include>org.mycompany:A2</include>
    </includes>
    <binaries>
      <includeDependencies>false</includeDependencies>
      <outputDirectory>jars/${artifactId}</outputDirectory>
      <unpack>false</unpack>
    </binaries>
  </moduleSet>
</moduleSets>

When I do

mvn clean package assembly:assembly

on submodules (A3 or B3) separately they seem to assembly their own submodules fine.

I don’t know how to specify assembly descriptor in MASTER. The one similar to A3 and B3 descriptor does not deal with it ([ERROR] you must specify at least one file). I tried several additional tags like includeSubModules… still nothing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T04:20:54+00:00Added an answer on May 29, 2026 at 4:20 am

    Resolution as promised (Master Assembly Descriptor):

    <moduleSets>
     <moduleSet>
        <binaries>
            <includeDependencies>false</includeDependencies>
            <outputDirectory>jars/${artifactId}</outputDirectory>
            <unpack>false</unpack>
        </binaries>
     </moduleSet>
    </moduleSets>
    

    as you can see – no pointing to specific modules with <include> like in A3 and B3

    <includes>
     <include> 
      (...) 
     </include>
    </includes>
    

    this is strange indeed. Nevertheless working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have received an assembly from a third party. I need to add it
I have some ASP.NET Master Pages located in one assembly. I need to use
The scenario goes like this - I have an assembly say 'MyAssembly'. An interface
I have a multimodule maven project like : Main Module Module A Module B
I have an assembly which I need to GAC on a SharePoint machine I
I have a third party .NET Assembly and a large Java application. I need
We need to patch an assembly and we can't rebuild from source code at
I need to create an executable from the next assembly code: .MODEL SMALL .DATA
I have a large directory structure with JavaScript, images, etc. that depend on each
What assembly do I need to add to my project to use OpenGL in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.