Class ArtifactsPackagingTask

    • Field Detail

      • SERVICES_PATH

        public static final java.lang.String SERVICES_PATH
        The services path.
        See Also:
        Constant Field Values
      • MODULES_PATH

        public static final java.lang.String MODULES_PATH
        The modules path.
        See Also:
        Constant Field Values
      • EXTENSIONS_PATH

        public static final java.lang.String EXTENSIONS_PATH
        The extensions path.
        See Also:
        Constant Field Values
      • artifacts

        private final java.util.Set<org.apache.maven.artifact.Artifact> artifacts
      • id

        private final java.lang.String id
    • Constructor Detail

      • ArtifactsPackagingTask

        public ArtifactsPackagingTask​(java.util.Set<org.apache.maven.artifact.Artifact> artifacts,
                                      Overlay currentProjectOverlay)
        Parameters:
        artifacts - artifacts
        currentProjectOverlay - id
    • Method Detail

      • performPackaging

        public void performPackaging​(WarPackagingContext context)
                              throws org.apache.maven.plugin.MojoExecutionException
        Description copied from interface: WarPackagingTask
        Performs the packaging for the specified task. The task is responsible to update the packaging context, namely with the files that have been copied.
        Parameters:
        context - the packaging context
        Throws:
        org.apache.maven.plugin.MojoExecutionException - if an error occurred
      • findDuplicates

        private java.util.List<java.lang.String> findDuplicates​(WarPackagingContext context,
                                                                java.util.Set<org.apache.maven.artifact.Artifact> artifacts)
                                                         throws org.codehaus.plexus.interpolation.InterpolationException
        Searches a set of artifacts for duplicate filenames and returns a list of duplicates.
        Parameters:
        context - the packaging context
        artifacts - set of artifacts
        Returns:
        List of duplicated artifacts as bundling file names
        Throws:
        org.codehaus.plexus.interpolation.InterpolationException