Class EarModuleFactory

java.lang.Object
org.apache.maven.plugins.ear.EarModuleFactory

public final class EarModuleFactory extends Object
Builds an EarModule based on an Artifact.
Author:
Stephane Nicoll
  • Constructor Details

    • EarModuleFactory

      public EarModuleFactory()
  • Method Details

    • newEarModule

      public static EarModule newEarModule(org.apache.maven.artifact.Artifact artifact, JavaEEVersion javaEEVersion, String defaultLibBundleDir, Boolean includeInApplicationXml, ArtifactTypeMappingService typeMappingService) throws UnknownArtifactTypeException
      Creates a new EarModule based on the specified Artifact and the specified execution configuration.
      Parameters:
      artifact - the artifact
      javaEEVersion - the javaEE version to use
      defaultLibBundleDir - the default bundle dir for JarModule
      includeInApplicationXml - should JarModule be included in application Xml
      typeMappingService - The artifact type mapping service
      Returns:
      an ear module for this artifact
      Throws:
      UnknownArtifactTypeException - if the artifact is not handled
    • getStandardArtifactTypes

      public static List<String> getStandardArtifactTypes()
      Returns a list of standard artifact types.
      Returns:
      the standard artifact types
    • isStandardArtifactType

      public static boolean isStandardArtifactType(String type)
      Specify whether the specified type is standard artifact type.
      Parameters:
      type - the type to check
      Returns:
      true if the specified type is a standard artifact type