Home > Mobile >  How to create 2 maven projects with single POM file
How to create 2 maven projects with single POM file

Time:10-22

For example I have a project X and I have to create another project Y but as there is no need of any other extra dependecies, I don't want to create another POM for project Y instead I can make use of project X POM file.

How can we achieve that?

Any suggestions would be highly appreciated.

Thank you.

CodePudding user response:

Every project needs a POM file.

If you have common configuration, you can create a parent POM and use it in both projects.

CodePudding user response:

You can try a single IntelliJ Idea project, create a pom.xml, and create 2 dirs that will be your projects.

For example:

  • .idea
  • projectXDir
  • prokectYDir
  • pom.xml
  • other files
  • Related