Giter Club home page Giter Club logo

florisjanssens / j2ee-rest-jersey-jetty-tomcat-maven-jenkinsfile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lastnitescurry/j2ee-rest-jersey-jetty-tomcat-maven-jenkinsfile

0.0 1.0 0.0 53 KB

Proving ground for J2EE 7 RESTful web services. Jersey will provide grunt for REST. Jetty local development but Tomcat for Integration testing. Maven build framework with Jenkins organising. If that is not enough then SonarQube and Jacoco for code coverage

License: MIT License

Java 90.47% Batchfile 9.53%

j2ee-rest-jersey-jetty-tomcat-maven-jenkinsfile's Introduction

j2ee-rest-jersey-jetty-tomcat-maven-jenkinsfile

Proving ground for J2EE 7 RESTful web services. Jersey will provide grunt for REST. Jetty local development but Tomcat for Integration testing. Maven build framework with Jenkins organising. If that is not enough then SonarQube and Jacoco for code coverage.

Development

Once you have the sources downloaded and developer tools setup execute the follow to compile and run on Jetty for local development

mvn clean compile jetty:run

NOTE: For hot reload to work, Eclipse->Project->Build Automatically should be enabled

The helloworld REST service will be availabe on:

and the default index.jsp will respond on:

To do a SonarQube analysis use:

mvn clean test sonar:sonar

And to build a distribution package:

mvn clean package

Developer Tools

Deployment Pipeline

The following tools are used in my hello world deployment pipeline:

I use the following custom launcher scripts for the tools:

  • F:\Apps\Nexus\NexusRunner.cmd
  • F:\Apps\SonarQube\sonarqube-5.6.1\bin\windows-x86-64\StartSonar.bat
  • F:\Apps\Tomcat\TomcatRunner.cmd
  • F:\Apps\Jenkins\JenkinsRunner.cmd

Applications use their default ports hence are available on:

Applications are used as is except for Jenkins which needs to be informed of where tools are located:

  • JDK
  • Maven
    • Use M3 as maven client name
  • Git Client

You need to configure at least one job in jenkins! I have two. One for inline pipeline script and one reading pipeline script from source code control

Once everything is configured, build and deploy war files to tomcat via your jenkins job(s). The app will be available on:

And Jenkins jobs on:

Jenkins Pipeline Syntax Snippet Generator

Bibliography

REST

REST Jersey

REST Jersey Examples

REST file upload

REST Testing

UNIT

Intergration

Tomcat

Jenkins

SonarQube

Markdown

j2ee-rest-jersey-jetty-tomcat-maven-jenkinsfile's People

Contributors

lastnitescurry avatar

Watchers

Floris Janssens 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.