code: private Properties loadPropertiesFile(File propertiesFile) throws MojoExecutionException { // NOSONAR
          try (FileInputStream propertiesFileInputStream = new FileInputStream(propertiesFile)) {
              Properties loadedProperties = new Properties();
              loadedProperties.load(propertiesFileInputStream);
              return loadedProperties;
          } catch (IOException e) {
              throw new MojoExecutionException(e.getMessage(), e);
          }
      }
docs: Take a properties file and load it into a Properties Object
  
  @param propertiesFile The file to try and load
  @return A properties object
  @throws MojoExecutionException MojoExecutionException