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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:29:34+00:00 2026-06-17T08:29:34+00:00

I’m going to develop java system, that consists of three apps. This apps use

  • 0

I’m going to develop java system, that consists of three apps. This apps use same packages. How to organize this project in, for example, IntelliJ IDEA? Must it be on project all sources organised in one hierarchy of packages or different projects which use on library. Could you tell me professional solution?

  • 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-17T08:29:35+00:00Added an answer on June 17, 2026 at 8:29 am

    A professional solution is not to rely on an IDE for building your software. You want to use a build tool to build the software. There are many build tools available to choose from, e.g.

    1. Make
    2. ANT
    3. Maven
    4. Rake
    5. Gradle
    6. Buildr

    etc.

    The tool you choose depends on how you see building software.

    For example tools such as Make, ANT, etc take a “do exactly as I say” approach to building software. This can be good if you like having to spell out exactly what you want done and how you want it done.

    Tools such as Maven take a “convention over configuration” approach. They say if you follow the conventions, you shouldn’t have to repeatedly tell the build tool how to do standard things, so for example with Maven if you put your Java source code in the src/main/java directory, then Maven will automatically compile it for you, if you put your test source code in src/test/java then Maven will compile that for you and run all the tests.

    Maven is not for everyone… some people seem to want to spend more of their time telling the build tool exactly what to do and less time writing their software… that’s fine… it’s not me (I am on the Maven PMC… no surprises for guessing what my favourite build tool is)… but these people do like some of the “convention over configuration” stuff that Maven gives… they just want a more flexible way of overriding when they need to step away from the convention… tools such as Gradle and Buildr are used by people with that mind-set.

    Good IDEs will take the build file and infer the project structure from that build tool. IntelliJ, Eclipse and NetBeans all understand Maven’s pom.xml build file. It makes getting your IDE set up a no-op. I have not investigated how the other build tools fair in IDEs as I personally use Maven and IntelliJ.

    Pick a build tool and see how that works for you. I assume you are using a Version Control System… if you are then changing build tool should not be a big deal.

    If you choose to use Maven, you will start with a 4 or 5 module project (a parent module and three child modules with possibly a shared common module)

    The code will be structured like so

    +- pom.xml (the root parent pom)
    +- common (the common module directory)
    |    +- pom.xml (the common module pom)
    |    \- src
    |         +- main
    |         |    +- java
    |         |    |    \- com... (your package dirs for common classes)
    |         |    \- resources
    |         |         \- com... (your package dirs for common classpath resources)
    |         \- test
    |              +- java
    |              |    \- com... (your package dirs for tests of common classes)
    |              \- resources
    |                   \- com... (your package dirs for common test classpath resources)
    +- app1 (the app1 module directory)
    |    +- pom.xml (the app1 module pom)
    |    \- src
    |         +- main
    |         |    +- java
    |         |    |    \- com...
    |         |    \- resources
    |         |         \- com...
    |         \- test
    |              +- java
    |              |    \- com...
    |              \- resources
    |                   \- com...
    +- app2 (the app2 module directory)
    |    +- pom.xml (the app2 module pom)
    |    \- src
    |         +- main
    |         |    +- java
    |         |    |    \- com...
    |         |    \- resources
    |         |         \- com...
    |         \- test
    |              +- java
    |              |    \- com...
    |              \- resources
    |                   \- com...
    \- app3 (the app3 module directory)
         +- pom.xml (the app3 module pom)
         \- src
              +- main
              |    +- java
              |    |    \- com...
              |    \- resources
              |         \- com...
              \- test
                   +- java
                   |    \- com...
                   \- resources
                        \- com...
    

    Your root pom.xml will look something like

    <project>    
        <modelVersion>4.0.0</modelVersion>
        <groupId>com.mydomain.something</groupId>
        <artifactId>something-parent</artifactId>
        <version>1.0-SNAPSHOT</version>
        <packaging>pom</packaging>
        <modules>
            <module>common</module>
            <module>app1</module>
            <module>app2</module>
            <module>app3</module>
        </modules>
    </project>
    

    And the common/pom.xml will look something like

    <project>    
        <modelVersion>4.0.0</modelVersion>
        <parent>
            <groupId>com.mydomain.something</groupId>
            <artifactId>something-parent</artifactId>
            <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>something-common</artifactId>
        <dependencies>
            <!-- insert the 3rd party dependencies you want -->
        </dependencies>
    </project>
    

    And then each of the app poms will look something like this

    <project>    
        <modelVersion>4.0.0</modelVersion>
        <parent>
            <groupId>com.mydomain.something</groupId>
            <artifactId>something-parent</artifactId>
            <version>1.0-SNAPSHOT</version>
        </parent>
        <artifactId>something-app1</artifactId>
        <dependencies>
            <dependency>
                <groupId>com.mydomain.something</groupId>
                <artifactId>something-common</artifactId>
                <version>1.0-SNAPSHOT</version>
            </dependency>
            <!-- insert any 3rd party dependencies you want for app1 only -->
        </dependencies>
    </project>
    

    Hope this helps

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I am confused How to use looping for Json response Array in another Array.
For some reason, after submitting a string like this Jack’s Spindle from a text
I am trying to understand how to use SyndicationItem to display feed which is
this is what i have right now Drawing an RSS feed into the php,

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.