code: protected void copyAlfrescoGlobalProperties() throws MojoExecutionException {
          getLog().info("Copying and filtering alfresco-global.properties files to target/test-classes");
          executeMojo(
                  plugin(
                          groupId("org.apache.maven.plugins"),
                          artifactId("maven-resources-plugin"),
                          version(MAVEN_RESOURCE_PLUGIN_VERSION)
                  ),
                  goal("copy-resources"),
                  configuration(
                          element(name("outputDirectory"), "${project.build.testOutputDirectory}"),
                          element(name("resources"),
                                  element(name("resource"),
                                          element(name("directory"), testFolder),
                                          element(name("includes"),
                                                  element(name("include"), testInclude)
                                          ),
                                          element(name("filtering"), "true")
                                  )
                          )
                  ),
                  execEnv
          );
  
          executeMojo(
                  plugin(
                          groupId("com.google.code.maven-replacer-plugin"),
                          artifactId("replacer"),
                          version(MAVEN_REPLACER_PLUGIN_VERSION)
                  ),
                  goal("replace"),
                  configuration(
                          element(name("regex"), "false"),
                          element(name("includes"),
                                  element(name("include"), "${project.build.testOutputDirectory}/*.properties")
                          ),
                          element(name("replacements"),
                                  element(name("replacement"),
                                          element(name("token"), "alfresco.port=8080"),
                                          element(name("value"), "alfresco.port=" + getPort())
                                  ),
                                  element(name("replacement"),
                                          element(name("token"), "share.port=8080"),
                                          element(name("value"), "share.port=" + getPort())
                                  ),
                                  element(name("replacement"),
                                          element(name("token"), "solr.port=8080"),
                                          element(name("value"), "solr.port=" + getPort())
                                  )
                          )
                  ),
                  execEnv
          );
  
      }
docs: Copy the alfresco-global.properties files. It contains database connection parameters and
  other general configuration for Alfresco Repository (alfresco.war)
  
  @throws MojoExecutionException when any problem appears copying the Alfresco global properties file