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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:13:31+00:00 2026-05-28T03:13:31+00:00

I have multiple projects, some are single module, and others are multi-module. Some of

  • 0

I have multiple projects, some are single module, and others are multi-module. Some of these modules are libraries intended to be used in multiple projects.

How do I share these modules between projects, and what would I store in version control?

If I store each module in it’s own repository, then the .idea folders will not be available, and as such information about the module such as its dependencies, copyright notices, artefact config etc will be missing. Therefore, I would like to store each project in a repository, but then how would I reference one module from another project as a dependency?

Note: I am using git for version control.

  • 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-05-28T03:13:31+00:00Added an answer on May 28, 2026 at 3:13 am

    How do I share these modules between projects.

    I would either have a project for common modules, or add them to each project.

    and what would I store in version control?

    I wouldn’t store IntelliJ specific files if you are working with another developer. If not, you can just store everything. What ever you do, you can swap later.

    If I store each module in it’s own repository,

    Or in its own sub-directory. Git does encourage creating more repositories, either way works.

    then the .idea folders will not be available,

    I would check them in anyway, but if you check them in, they are as available as any other file.

    and as such information about the module such as its dependencies, copyright notices, artefact config etc will be missing.

    I would use maven for dependencies and build.

    Therefore, I would like to store each project in a repository, but then how would I reference one module from another project as a dependency?

    You can import a module from one project to another in IntelliJ, but I would use maven which supports this.

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

Sidebar

Related Questions

I have some code shared among multiple projects in a static library. Even with
I have a solution with multiple projects and we need to do some serious
Many times I have seen Visual Studio solutions which have multiple projects that share
I will have multiple tables used by different projects on the same mySql server.
I have multiple website projects in a single repository each of which have a
At work we have a number of projects which need to share some common
I have a project where there are multiple applications that have some common configuration
I have multiple projects in a couple of different workspaces. However, it seems like
We have multiple vb projects.We want to put error handlers in all functions, and
I have multiple rave reports(projects) in the project(the delphi project) and I want to

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.