Skip to main content



      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 13:06 Go to next message
Eclipse UserFriend
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 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Better to ask here:

https://github.com/eclipse-m2e/m2e-core/discussions
Re: Add an Eclipse Maven project to an existing Maven project. [message #1857116 is a reply to message #1857075] Wed, 18 January 2023 05:36 Go to previous message
Eclipse UserFriend
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: Wed Apr 23 21:48:52 EDT 2025

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

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

Back to the top