code: protected void installLooseConfigWar(MavenProject proj, LooseConfigData config) throws Exception {
          // return error if webapp contains java source but it is not compiled yet.
          File dir = new File(proj.getBuild().getOutputDirectory());
          if (!dir.exists() && containsJavaSource(proj)) {
              throw new MojoExecutionException(
                      MessageFormat.format(messages.getString("error.project.not.compile"), proj.getId()));
          }
  
          LooseWarApplication looseWar = new LooseWarApplication(proj, config);
          looseWar.addSourceDir(proj);
          looseWar.addOutputDir(looseWar.getDocumentRoot(), new File(proj.getBuild().getOutputDirectory()),
                  "/WEB-INF/classes");
  
          // retrieves dependent library jar files
          addEmbeddedLib(looseWar.getDocumentRoot(), proj, looseWar, "/WEB-INF/lib/");
  
          // add Manifest file
          File manifestFile = MavenProjectUtil.getManifestFile(proj, "maven-war-plugin");
          looseWar.addManifestFile(manifestFile);
      }
docs: install war project artifact using loose application configuration file