org.apache.maven.plugin.ear

Class JarModule

    • Constructor Detail

      • JarModule

        public JarModule()
      • JarModule

        public JarModule(org.apache.maven.artifact.Artifact a,
                 String defaultLibBundleDir,
                 Boolean includeInApplicationXml)
    • Method Detail

      • appendModule

        public void appendModule(org.codehaus.plexus.util.xml.XMLWriter writer,
                        String version,
                        Boolean generateId)
        Description copied from interface: EarModule
        Appends the XML representation of this module.
        Parameters:
        writer - the writer to use
        version - the version of the application.xml file
        generateId - whether an id should be generated
      • resolveArtifact

        public void resolveArtifact(Set<org.apache.maven.artifact.Artifact> artifacts)
                             throws EarPluginException,
                                    org.apache.maven.plugin.MojoFailureException
        Description copied from class: AbstractEarModule
        Resolves the Artifact represented by the module. Note that the EarExecutionContext might be used to customize further the resolution.
        Specified by:
        resolveArtifact in interface EarModule
        Overrides:
        resolveArtifact in class AbstractEarModule
        Parameters:
        artifacts - the project's artifacts
        Throws:
        EarPluginException - if the artifact could not be resolved
        org.apache.maven.plugin.MojoFailureException - if an unexpected error occurred
      • getType

        public String getType()
        Description copied from interface: EarModule
        Returns the type associated to the module.
        Returns:
        the artifact's type of the module

Copyright © 2002-2021 The Apache Software Foundation. All Rights Reserved.