Git Product home page Git Product logo

hello-world's Introduction

Maven web application project

Java version: 11

Clean fresh application code is available in hell-world-maven branch and hello-world-maven tag

To clone the hello-world-maven branch

git clone -b hello-world-maven https://github.com/vigneshsweekaran/hello-world.git

To generate the package

mvn clean package

War file is generated in target/hello-world.war

Adding jackson library

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.15.2</version>
</dependency>

Adding jacoco plugin

<plugin>
  <groupId>org.jacoco</groupId>
  <artifactId>jacoco-maven-plugin</artifactId>
  <version>0.8.7</version>
  <executions>
    <execution>
        <goals>
          <goal>prepare-agent</goal>
        </goals>
    </execution>
    <execution>
        <id>report</id>
        <phase>prepare-package</phase>
        <goals>
          <goal>report</goal>
        </goals>
    </execution>
  </executions>
</plugin>

To generate jacoco code coverage report using maven

mvn jacoco:report

Code coverage report is located in target/site/jacoco/index.html

Github Actions

Topic Branch name
First pipeline first-pipeline
How to build a maven project maven-build
How to define parallel jobs parallel-jobs
How to depend on another job needs
How to pass artifacts from one job to another publishartifacts
How to use different agent pool for jobs or stages agentpool-jobs
How to build a maven project and cache the dependencies maven-build-cache
How to build a Docerfile and push to dockerhub maven-docker-build-push
How to build a Docerfile and push to Jfrog maven-docker-build-push-jfrog
How to deploy the container to a server maven-build-deploy
Deploy to kubernetes using kubectl using ssh deploy-k8s-kubectl-ssh
Build helm chart from piepline and push to jfrog helm repository helm-jfrog
Deploy to kubernetes using helm using ssh deploy-k8s-helm-ssh

Tested polling for polling

hello-world's People

Contributors

vigneshsweekaran avatar valaxytech avatar yankils avatar shilpa-gupta-yadav avatar

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.