public enum FlattenMode extends Enum<FlattenMode>
additional POM elements when
generating the flattened POM.| Enum Constant and Description |
|---|
bom
|
clean
Removes all
optional POM elements. |
defaults
The default mode that removes all
optional POM elements except
repositories. |
minimum
Deprecated.
confusing name, unstable contract.
|
oss
For Open-Source-Software projects that want to keep all
optional POM elements except
for repositories and pluginRepositories. |
ossrh
Keeps all
optional POM elements that are required for OSS
Repository-Hosting. |
| Modifier and Type | Method and Description |
|---|---|
FlattenDescriptor |
getDescriptor() |
static FlattenMode |
valueOf(String name)
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.
|
@Deprecated public static final FlattenMode minimum
optional POM elements.public static final FlattenMode oss
optional POM elements except
for repositories and pluginRepositories.public static final FlattenMode ossrh
optional POM elements that are required for OSS
Repository-Hosting.public static final FlattenMode bom
ossrh but additionally keeps dependencyManagement and
properties. Especially it will keep the dependencyManagement 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.).public static final FlattenMode defaults
optional POM elements except
repositories.public static final FlattenMode clean
optional POM elements.public static FlattenMode[] values()
for (FlattenMode c : FlattenMode.values()) System.out.println(c);
public static FlattenMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic FlattenDescriptor getDescriptor()
FlattenDescriptor defined by this FlattenMode.Copyright © 2014–2015 MojoHaus. All rights reserved.