code: protected void copyHotswapAgentProperties(String warPrefix) throws MojoExecutionException {
          if ( copyHotswapAgentConfig == false ) {
              return;
          }
  
          final String warOutputDir = getWarOutputDir(warPrefix) + "/WEB-INF/classes/";
  
  
          getLog().info("Copying " + warPrefix + "-hotswap-agent.properties to " + warOutputDir);
  
          executeMojo(
                  plugin(
                          groupId("com.coderplus.maven.plugins"),
                          artifactId("copy-rename-maven-plugin"),
                          version("1.0")
                  ),
                  goal("rename"),
                  configuration(
                          element(name("sourceFile"), project.getBuild().getTestOutputDirectory() + "/" + warPrefix + "-hotswap-agent.properties"),
                          element(name("destinationFile"), warOutputDir + "hotswap-agent.properties")
                  ),
                  execEnv
          );
  
  
  
      }
docs: Copy and Build hotswap-agent.properties
  
  @param warPrefix path to the war root directory
  
  @throws MojoExecutionException when any problem appears copying hotswap agent properties