code: protected void copyShareConfigCustom() throws MojoExecutionException {
          final String warOutputDir = getWarOutputDir(SHARE_WAR_PREFIX_NAME);
          final String distDir = warOutputDir + "/WEB-INF/classes/alfresco/web-extension/";
          String repoUrl = project.getProperties().getProperty("alfresco.repo.url");
          if (repoUrl == null) {
              project.getProperties().setProperty("alfresco.repo.url", "http://localhost:" + getPort() + "/alfresco");
          }
  
          getLog().info("Copying Share config custom to: " + distDir);
  
          executeMojo(
                  plugin(
                          groupId("org.apache.maven.plugins"),
                          artifactId("maven-resources-plugin"),
                          version(MAVEN_RESOURCE_PLUGIN_VERSION)
                  ),
                  goal("copy-resources"),
                  configuration(
                          element(name("outputDirectory"), distDir),
                          element(name("resources"),
                                  element(name("resource"),
                                          element(name("directory"), "src/test/resources/share"),
                                          element(name("includes"),
                                                  element(name("include"), "*.xml")
                                          ),
                                          element(name("filtering"), "true")
                                  )
                          )
                  ),
                  execEnv
          );
      }
docs: Copy Share Config Custom in order to have global overrides for development and dynamic port
  
  @throws MojoExecutionException when any problem appears copying share config custom file