Skip to content

Development Environment How to Run

Ronan Clancy edited this page Jul 16, 2021 · 5 revisions

See also Development Tools and Development README.md

To run up the project:

  1. Install the Development Tools in the link above
  2. Pull down the project code from GitHub
  3. Run command: from /app > mvn spring-boot:run -Pspring.profiles.active=dev

You may see one of two build failures here:

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 02:06 min [INFO] Finished at: 2021-06-15T17:23:29+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project smallwindow-21: Fatal error compiling: invalid target release: 11 -> [Help 1]

If this occurs then make sure the Java version in your pom.xml matches the Java version that is installed on your machine.

OR

com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure

This means that your local MySQL database is not up and running. See step 4 below.

  1. Start up a Docker MySQL image by running command: docker-compose -f src/main/docker/local-dev.yml up

  2. Go to http://localhost:8080/ to see the application running.****