/microservices-maven-archetypes

Collection of maven microservices archetype to simplify its creation

Primary LanguageJavaApache License 2.0Apache-2.0

Build Status Codacy Badge

microservices-maven-archetypes

Summary

Catalog of maven archetypes to develop microservices simplifying their creation and preconfigured to integrate directly with the tools Zuul, Eureka, Spring Boot Admin, Swagger, Zipkin and Spring Cloud Config.

Prerequisites

  • JDK 8
  • Maven 3

Ecosystem result

Alt text

General installation instructions

Two installation ways:

Local

  1. Clone repository
git clone https://github.com/rafabc/microservices-maven-archetypes.git

After clone this project contain a shell script "mvn-install-archetypes.sh" that run all the nexts steps, but its posible run it manually if you want one by one:

  1. In console go to each archetype path
cd microservices-maven-archetypes/[archetype-path]
  1. run next mvn install for each archetype
mvn install 	#for each archetype
  1. After install all archetypes update the catalog
mvn install archetype:update-local-catalog
mvn archetype:crawl

Hosted

  1. Clone repository
git clone https://github.com/rafabc/microservices-maven-archetypes.git
  1. Install the archetypes in your maven repository
  2. This repository provide a catalog file, with it you can update your hosted catalog and then use it where you want.

Instructions for creating projects

Automation

If all archetypes are installed, its posible use mvn-create-projects.sh to create fast all environmet projects whit default value parameters and test it.

After the projects are ready its posible execute the script "run-projects.sh" that launch each project.