Package org.apache.maven.plugin.ear
Class EarModuleFactory
- java.lang.Object
-
- org.apache.maven.plugin.ear.EarModuleFactory
-
public final class EarModuleFactory extends java.lang.Object
Builds anEarModule
based on an Artifact.- Version:
- $Id: EarModuleFactory.java 1645331 2014-12-13 17:31:09Z khmarbaise $
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>
STANDARD_ARTIFACT_TYPE
The list of artifact types.
-
Constructor Summary
Constructors Constructor Description EarModuleFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.String>
getStandardArtifactTypes()
Returns a list of standard artifact types.static boolean
isStandardArtifactType(java.lang.String type)
Specify whether the specified type is standard artifact type.static EarModule
newEarModule(org.apache.maven.artifact.Artifact artifact, JavaEEVersion javaEEVersion, java.lang.String defaultLibBundleDir, java.lang.Boolean includeInApplicationXml, ArtifactTypeMappingService typeMappingService)
Creates a newEarModule
based on the specifiedArtifact
and the specified execution configuration.
-
-
-
Method Detail
-
newEarModule
public static EarModule newEarModule(org.apache.maven.artifact.Artifact artifact, JavaEEVersion javaEEVersion, java.lang.String defaultLibBundleDir, java.lang.Boolean includeInApplicationXml, ArtifactTypeMappingService typeMappingService) throws UnknownArtifactTypeException
Creates a newEarModule
based on the specifiedArtifact
and the specified execution configuration.- Parameters:
artifact
- the artifactjavaEEVersion
- the javaEE version to usedefaultLibBundleDir
- the default bundle dir forJarModule
includeInApplicationXml
- shouldJarModule
be included in application XmltypeMappingService
- The artifact type mapping service- Returns:
- an ear module for this artifact
- Throws:
UnknownArtifactTypeException
- if the artifact is not handled
-
getStandardArtifactTypes
public static java.util.List<java.lang.String> getStandardArtifactTypes()
Returns a list of standard artifact types.- Returns:
- the standard artifact types
-
isStandardArtifactType
public static boolean isStandardArtifactType(java.lang.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
-
-