Running and testing the project

Perform the following steps to build and test the microservices developed in this chapter:

  1. Build each of the projects using Maven. Ensure that the test flag is switched off. The test programs assume other dependent services are up and running. It fails if the dependent services are not available:
      mvn -Dmaven.test.skip=true install
  1. Run the RabbitMQ server as follows:
      rabbitmq_server-3.5.6/sbin$ ./rabbitmq-server
  1. Run the following commands in separate terminal windows:
      java -jar target/fares-1.0.jar
      java -jar target/search-1.0.jar
      java -jar target/checkin-1.0.jar
      java -jar target/book-1.0.jar
      java -jar target/website-1.0.jar
  1. The website project has a CommandLineRunner, which will execute ...

Get Spring 5.0 Microservices - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.