Giter Site home page Giter Site logo

choonchernlim / build-reports Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 78 KB

Maven parent POM for generating build reports for CI servers, pushing artifacts to Sonatype OSSRH and site documentation to GitHub

License: MIT License

java parent-pom jenkins maven

build-reports's Introduction

Build Reports

In effort to keep the actual Maven project's pom.xml concise and clean, this parent POM generates various build reports for Maven site and Continuous Integration Servers (Jenkins, SonarQube, etc).

This parent POM also includes a profile that allows you to push:-

How to Use

Add the following configuration to your project's pom.xml:-

<project ...>
    <parent>
        <groupId>com.github.choonchernlim</groupId>
        <artifactId>build-reports</artifactId>
        <version>0.3.5</version>
    </parent>
    
    ...
</project>

Jenkins Integration

mvn clean test site

SonarQube Integration

Create a Maven profile, for example:-

<profiles>
    <profile>
        <id>sonarqube</id>
        <properties>
            <sonar.host.url>...</sonar.host.url>
            <sonar.sources>src/main/java</sonar.sources>
            <sonar.tests>src/test/java</sonar.tests>
            <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
            <sonar.junit.reportsPath>${project.build.directory}/surefire-reports</sonar.junit.reportsPath>
            <sonar.jacoco.reportPath>${jacoco.reportPath}</sonar.jacoco.reportPath>
            <sonar.jacoco.itReportPath>${jacoco.itReportPath}</sonar.jacoco.itReportPath>
        </properties>
    </profile>
</profiles>

Run the following goals and profile:-

mvn clean test sonar:sonar -Psonarqube

Deploy to Sonatype OSSRH

mvn clean deploy -Possrh-deploy

Deploy Site to GitHub

mvn clean test site -Possrh-deploy

Important Notes

Build Plugins

Profile: "ossrh-deploy"

build-reports's People

Contributors

choonchernlim avatar

Watchers

 avatar  avatar

Forkers

gestatech

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.