Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Add an Eclipse Maven project to an existing Maven project.
Add an Eclipse Maven project to an existing Maven project. [message #1857055] Sun, 15 January 2023 18:06 Go to next message
Marcus Tretner is currently offline Marcus TretnerFriend
Messages: 1
Registered: January 2023
Junior Member
Hi,
i have two existing Maven projects. At the moment, I try to merge both project with the POM Files. But I got the failure "Invalid element name: - modules" These modules has also some sub pom files. Is there an other option to add or merge these seconde project?
Re: Add an Eclipse Maven project to an existing Maven project. [message #1857075 is a reply to message #1857055] Mon, 16 January 2023 09:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Better to ask here:

https://github.com/eclipse-m2e/m2e-core/discussions


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Add an Eclipse Maven project to an existing Maven project. [message #1857116 is a reply to message #1857075] Wed, 18 January 2023 10:36 Go to previous message
Ashley coder is currently offline Ashley coderFriend
Messages: 11
Registered: October 2022
Junior Member
Yes, there is another option to add or merge the two projects. You can use the Maven Dependency Mechanism to add the second project as a dependency to the first. This will allow you to reference the second project from the first, and will enable you to reuse code from the second project in the first. To do this, you will need to add a <dependency> element to the first project's POM file, with the coordinates of the second project.
Previous Topic:Windows 11 and Eclipse install
Next Topic:What are the methods for verifying type ranges using Java Development Tools (JDT)?
Goto Forum:
  


Current Time: Thu Sep 26 05:24:19 GMT 2024

Powered by FUDForum. Page generated in 0.02511 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top