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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:56:23+00:00 2026-06-09T07:56:23+00:00

I have multiple Java projects (packaged to jars) in my product which have a

  • 0

I have multiple Java projects (packaged to jars) in my product which have a single pom combining them as modules. Each of the projects has different dependencies and their combined dependencies are defined in the parent pom. I want to prepare the output for production and do the following:

  1. deploy (copy) all my jars to a single location
  2. copy the 3rd party jars from all projects to a different single folder
  3. copy the configuration files (found under the src/main/resources) from all the projects to a third folder.

Anyone knows of a way to do it without having to manually copy each of the above for all the projects? I also want my future projects to support this deployment procedure without having to work too hard and specific.

  • 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-09T07:56:24+00:00Added an answer on June 9, 2026 at 7:56 am

    I will summarize What I did in the assembly XML (to answer all of my issues) in addition to Andrey Borisov answer.

    1. deploy (copy) all my jars to a single location [Used the “moduleset” element]
    2. copy the 3rd party jars from all projects to a different [Used the “dependencySets” element]
    3. copy the configuration files (found under the src/main/resources) from all the projects to a third folder. [Used the “fileset” element]

      http://maven.apache.org/xsd/assembly-1.1.2.xsd“>
      bin

      dir

      false

      <moduleSets>
          <moduleSet>
              <useAllReactorProjects>true</useAllReactorProjects>
              <binaries>
                  <outputDirectory>modules</outputDirectory>
                  <unpack>false</unpack>
              </binaries>
          </moduleSet>
      </moduleSets>
      
      
      <dependencySets>
          <dependencySet>
              <useProjectArtifact>false</useProjectArtifact>
              <outputDirectory>lib</outputDirectory>
          </dependencySet>
      </dependencySets>
      
      <fileSets>
          <fileSet>
              <directory>my DIR 1</directory>
              <excludes>
                  <exclude>*log4j*</exclude>
              </excludes>
              <outputDirectory>resources</outputDirectory>
          </fileSet>
          <fileSet>
              <directory>my DIR 2</directory>
              <outputDirectory>resources</outputDirectory>
          </fileSet>
      </fileSets>
      

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

Sidebar

Related Questions

I have a large Java app that is split up into multiple projects. Each
I had a question about Java Class Path variables. If I have multiple jars
I have multiple projects which are to be hosted together in a Tomcat container,
I have multiple Java projects in Eclipse. I would like to reuse some classes
I have been learning Java and have had no problem with projects in which
Most of our Eclipse projects have multiple source folders, for example: src/main/java src/test/java When
I am using Java to write a mid scale product that has multiple programs.
How can I have multiple buttons and multiple listeners doing various operations in java
I have various Java Swing applications that are used by multiple users. My deployment
I have a situation where a Java Applet hangs after being opened multiple times.

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.