Maven settings

To simplify development but not commit sensitive information, you can add personal or PC-specific settings in the Maven settings.xml file. This file is stored or needs to be created in the “.m2” directory in your home directory:

  • Windows: C:\Users\YOUR_NAME.m2
  • Linux: /home/YOUR_NAME/.m2
  • Mac: /Users/YOUR_NAME/.m2

For more info see this article on Baeldung.

This is an example settings file, including settings for compiling of Pi4J and credentials to upload the generated code to a Raspberry Pi.

<settings xmlns=""
        <!-- Docker compiler settings -->
        <!-- SSH credentials of your test Raspberry Pi -->