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 8326841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:54:17+00:00 2026-06-09T00:54:17+00:00

I have 3 modules which are linked to a parent project. I need to

  • 0

I have 3 modules which are linked to a parent project. I need to create a zip file including all these projects. I know it can be done using maven assembly plugin. But in which pom.xml should I use it. Is there a way I can copy the resources from 3 projects in to 1 common folder. Is there any example available for the same. This is a multi module build

  • 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-06-09T00:54:19+00:00Added an answer on June 9, 2026 at 12:54 am

    For such purposes the best ways is to create a separate module in your multi-module build which result into the following strcuture:

     root (pom.xml)
       +--- mod1 (pom.xml)
       +--- mod2 (pom.xml)
       +--- mod3 (pom.xml)
       +--- mod-package (pom.xml)
    

    The pom.xml of mod-package looks like this:

    <project
      xmlns="http://maven.apache.org/POM/4.0.0"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    
      <modelVersion>4.0.0</modelVersion>
    
      <parent>
        <groupId>com.soebes.packaging.test</groupId>
        <artifactId>root</artifactId>
        <version>0.1.0-SNAPSHOT</version>
      </parent>
    
      <artifactId>mod-package</artifactId>
      <packaging>pom</packaging>
    
      <name>Packaging :: Mod Package</name>
    
     <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.3</version>
            <configuration>
              <descriptors>
                <descriptor>pack.xml</descriptor>
              </descriptors>
            </configuration>
            <executions>
              <execution>
                <id>package-the-assembly</id>
                <phase>package</phase>
                <goals>
                  <goal>single</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </project>
    

    And don’t forget the pack.xml file which is located in mod-package/pack.xml:

    <assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2 http://maven.apache.org/xsd/assembly-1.1.2.xsd">
      <id>pack</id>
      <formats>
        <format>zip</format>
      </formats>
      <includeBaseDirectory>false</includeBaseDirectory>
      <moduleSets>
        <moduleSet>
          <!-- Enable access to all projects in the current multimodule build! -->
          <useAllReactorProjects>true</useAllReactorProjects>
          <binaries>
            <outputDirectory>modules/${artifactId}</outputDirectory>
            <unpack>false</unpack>
          </binaries>
        </moduleSet>
      </moduleSets>
    </assembly>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 modules which are linked to a parent project similar to this.
I have a index.py file which imports a few modules. I later import my
I need to write a plugin system which works with statically linked modules on
In a maven project I have several modules which only have a persitence.xml for
When evaluating dojo.require statements, dojo tracks which modules and resources have been required and
I have a four WAR files which are modules of application. How I can
I have written some extension modules for eJabberd most of which pass pieces of
I have a desktop app that has 65 modules, about half of which read
I have create a module which at this point does nothing but exist the
In my application i have 2 LLVM modules - the runtime one (which contains

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.