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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:03:12+00:00 2026-06-17T22:03:12+00:00

my java se project/system consists of multiple components like below where there can be

  • 0

my java se project/system consists of multiple components like below where there can be many shared libs and many applications/ running processes. Example the 3 components below make up ‘System 1’.

System 1:
1. Common lib – for our shared code
2. App 1 – a app/process with it’s own code referencing the common lib.
3. App 2 – a app/process with it’s own code referencing the common lib.

My questions how do i setup Maven/Intelij to support this structure … and is it a good structure to follow?

At present I have the groupId as ‘com.MyCompany.System1’ and the Mavan modules for the components with artifactIds as ‘com-MyCompany-System1-common’ etc.

Is this the correct way to go or how should i arrange Maven to support this structure?

Thanks in advance.

  • 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-17T22:03:14+00:00Added an answer on June 17, 2026 at 10:03 pm

    It sounds like a typical Maven multi-module setup should serve your needs. As for IntelliJ, just set it up in Maven and then import the maven pom into IntelliJ. It’ll just work. You can just open the pom file as a project, and IntelliJ will set everything up for you correctly.

    Advice:

    1. Even if it feels like more work up front, the more you can break up your project into cleanly-defined modules, the happier you’ll be in the end.
    2. I wouldn’t repeat the groupId in the artifactId. The artifactId should definitely be distinct, but not that distinct.
    3. Consider using Gradle instead if it’s an option. It’s the next logical step in build tools after Maven, and it’ll vastly reduce your effort as the number of modules increases. Gradle/IntelliJ interaction is almost as good as Maven/IntelliJ. It’s slightly more work, but the tradeoff is worth it.

    Source: I have a mix of >100 Maven and Gradle modules spread across >30 source code repos which I’ve been building and working in with IntelliJ for 3 years.

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

Sidebar

Related Questions

I have a java project with many files that connects to the database. Can
I have a small Java project in a version control system (git), shared by
I'm working on a pagination system for my java project, and I'd like to
I'm currently working on a java project that requires me to make a system
I'm going to develop java system, that consists of three apps. This apps use
I’m working on a Java project and I can compile my project inside eclipse
If I have a java project that consists of several different types of files
For a JAVA project I am working on there is a requirement that I
One of our Java project needs a redundant data store system which is highly
My java project has 3 java class. There is Main,Philosoper and chStick. I solved

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.