Skip to content

Conversation

@mfriedenhagen
Copy link
Contributor

Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration. (Excerpt from Spring Boot Website )

Spring Boot is great to create µServices and other applications, but to use all its features it requires that you use the spring-boot-starter-parent as parent pom. Since maven only allows single inheritance it would be useful to have a version of the foss-parent, e.g. foss-boot-parent that has spring-boot-starter-parent as parent.

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>1.2.5.RELEASE</version>
    </parent>

@mfriedenhagen
Copy link
Contributor

@leonard84, I just tried out what you have to do for using foss-parent together with spring-boot, see https://github.com/mfriedenhagen/spring-boot-sample/blob/master/pom.xml.

  • Include spring-boot-dependencies in dependencyManagement.
  • Depend on spring-boot-starter-web (line 50).
  • Call repackage of spring-boot-maven-plugin (line 93) and manage scope of logback-classic and logback-core to runtime if you want an executable JAR.

IMO having a deep hierarchy of POMs is always a bit confusing, so I am not really sure whether this issue is an enhancement 😄

@mfriedenhagen mfriedenhagen force-pushed the issue-86-foss-spring-boot-parent branch from 070bd28 to b89467d Compare September 22, 2015 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants