Skip to content

Spring-Boot-friendly parent POM to 1) generate static code analysis reports for CI server, 2) deploy artifacts to Sonatype OSSRH, and 3) deploy site documentation to GitHub.

License

Notifications You must be signed in to change notification settings

choonchernlim/spring-boot-ci

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-ci

This parent POM:-

  • Consolidates static code analysis report configuration in one place and declutters app's pom.xml.
  • Generates reports for Continuous Integration servers (Jenkins, etc) and Maven site.
  • Enables Spring Boot by inheriting from the spring-boot-starter-parent to leverage the full power of Spring Boot.
    • While an app may enable Spring Boot without inheriting from the spring-boot-starter-parent, it can only leverage Spring Boot's dependency management but not the plugin management. Furthermore, it requires the app to re-configure several plugins used by Spring Boot to continue working properly.
  • Enables Groovy compiler.
  • Includes a Maven profile to deploy:-

Parent POM Dependency

<project ...>
    <parent>
        <groupId>com.github.choonchernlim</groupId>
        <artifactId>spring-boot-ci</artifactId>
        <version>0.4.0</version>
    </parent>
    ...
</project>

Jenkins Integration

mvn clean test site

Deploy to Sonatype OSSRH

mvn clean deploy -P ossrh

Deploy Site to GitHub

mvn clean test site -P ossrh

Build Plugins

Reporting Plugins

Profile: "ossrh-deploy"

Troubleshooting

About

Spring-Boot-friendly parent POM to 1) generate static code analysis reports for CI server, 2) deploy artifacts to Sonatype OSSRH, and 3) deploy site documentation to GitHub.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published