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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T00:30:10+00:00 2026-06-02T00:30:10+00:00

MY APPLICATION STRUCTURE :My project (let us say AAA) which has packaging as JAR.

  • 0

MY APPLICATION STRUCTURE :My project (let us say AAA) which has packaging as JAR. project AAA is added dependent for web project BBB and BBB inturn module for CCC which is an EAR.

while doing AAA project maven build, maven is not including the dependent jars as part of packaging, and deployment eventually fails when i deploy the ear package.

questions

1) how to make common libraries share among parent and child projects so that avoid duplicates
2) how to include individual project libraries (which is not common) during maven 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-02T00:30:12+00:00Added an answer on June 2, 2026 at 12:30 am

    The default in maven is to package only the class files which are in the actual module and not the dependent jars. This can be achieved by using the maven-shade-plugin if you want to create a kind of ueber-jar but this is not the usual use case. If you are trying to create an ear than all jars will be packaged otherwise your configuration is not correct or you don’t using maven-ear-plugin or your packaging is not defined to be “ear”.

    If you want to share a lib let’s call it common within a multi-module build the simplest solution is to create structure like this:

      +-- root (pom.xml)
           +-- module-1 (pom.xml)
           +-- module-2 (pom.xml)
           +-- common (pom.xml)
    

    where you define the common as dependency in the module-1 for example or in any other module which will use the common module as dependency. You can take a look into this example.

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

Sidebar

Related Questions

I have a project which has a calling structure similar to this: main project/application
My application has the following project structure: There is the Business Logic project and
Let's say I have four projects: Project A (has a dependency on B and
I have a Django project, let's say project1. Typical folder structure for applications is:
What do you think of the project structure for an opensource CMS application built
I recently received a project that contains multiple web applications with no MVC structure.
My application has an MVC structure. Is it sufficient to only cache the model
My Java application has got a package structure similar to this: src/com/name/app src/com/name/app/do src/com/name/utils/db
I have this folder structure: /www/project/web/app.php I can access it via /project/web/index.php . The
I have put my project in tomcat_home/webapps/ directory. The structure is : project_name/WEB-INF/classes. 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.