public void performPackaging()

in src/main/java/org/apache/maven/plugins/war/packaging/WarProjectPackagingTask.java [77:107]


    public void performPackaging(WarPackagingContext context) throws MojoExecutionException, MojoFailureException {
        context.getLog().info("Processing war project");

        // Prepare the INF directories
        File webinfDir = new File(context.getWebappDirectory(), WEB_INF_PATH);
        webinfDir.mkdirs();
        File metainfDir = new File(context.getWebappDirectory(), META_INF_PATH);
        metainfDir.mkdirs();

        handleWebResources(context);

        handleWebAppSourceDirectory(context);

        // Debug mode: dump the path set for the current build
        PathSet pathSet = context.getWebappStructure().getStructure("currentBuild");
        context.getLog().debug("Dump of the current build pathSet content -->");
        for (String path : pathSet) {
            context.getLog().debug(path);
        }
        context.getLog().debug("-- end of dump --");

        handleDeploymentDescriptors(context, webinfDir, metainfDir, context.isFailOnMissingWebXml());

        handleClassesDirectory(context);

        handleArtifacts(context);

        if (!context.getWebappDirectory().mkdirs()) {
            context.deleteOutdatedResources();
        }
    }