-1

Our Existing Parent Project using spring 4.3.3.RELEASE, we are trying provide part of it as a Spring Boot Application and the other parts as a Spring.

To do this it seems we must create a Maven project that has two parents: our existing parent project and the Spring Boot parent. How can we do that?

Raedwald
  • 46,613
  • 43
  • 151
  • 237
pandiaraj
  • 580
  • 1
  • 6
  • 18
  • See also [Spring Boot - parent pom when you already have a parent pom](https://stackoverflow.com/questions/21317006/spring-boot-parent-pom-when-you-already-have-a-parent-pom). – Raedwald Nov 30 '18 at 10:44

2 Answers2

1

Split the project into 3 parts, each with a POM. Most of the code goes in a "core" project. The other two are a "spring boot" and a "spring app" projects. Those two have the "core" as a dependency. The differences for Spring Boot and Spring go in those two projects.

Raedwald
  • 46,613
  • 43
  • 151
  • 237
0

Each project can have but one parent POM.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142