Package org.codehaus.mojo.flatten
Enum FlattenMode
- All Implemented Interfaces:
Serializable
,Comparable<FlattenMode>
This enum contains the predefined modes how to deal with
additional POM elements
when
generating the flattened POM
.- Since:
- 1.0.0-beta-2
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRemoves alloptional POM elements
.The default mode that removes alloptional POM elements
exceptrepositories
.Removes alloptional POM elements
and dependencies.Deprecated.confusing name, unstable contract.For Open-Source-Software projects that want to keep alloptional POM elements
except forrepositories
andpluginRepositories
.Keeps alloptional POM elements
that are required for OSS Repository-Hosting.Only resolves variables revision, sha1 and changelist. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlattenMode
Returns the enum constant of this type with the specified name.static FlattenMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
minimum
Deprecated.confusing name, unstable contract.For projects that want to keep alloptional POM elements
. -
oss
For Open-Source-Software projects that want to keep alloptional POM elements
except forrepositories
andpluginRepositories
. -
ossrh
Keeps alloptional POM elements
that are required for OSS Repository-Hosting. -
bom
Likeossrh
but additionally keepsdependencyManagement
andproperties
. Especially it will keep thedependencyManagement
as-is without resolving parent influences and import-scoped dependencies. This is useful if your POM represents a BOM (Bill Of Material) and you do not want to deploy it as is (to remove parent and resolve version variables, etc.). -
defaults
The default mode that removes alloptional POM elements
exceptrepositories
. -
clean
Removes alloptional POM elements
. -
fatjar
Removes alloptional POM elements
and dependencies. -
resolveCiFriendliesOnly
Only resolves variables revision, sha1 and changelist. Keeps everything else. See Maven CI Friendly for further details.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescriptor
- Returns:
- the
FlattenDescriptor
defined by thisFlattenMode
.
-