@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.825Z") @Stability(value=Experimental) public class Pom extends Component
It is an XML file that contains information about the project and configuration details used by Maven to build the project.
| Modifier and Type | Class and Description |
|---|---|
static class |
Pom.Builder
(experimental) A fluent builder for
Pom. |
| Modifier | Constructor and Description |
|---|---|
protected |
Pom(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Pom(software.amazon.jsii.JsiiObjectRef objRef) |
|
Pom(Project project,
PomOptions options) |
| Modifier and Type | Method and Description |
|---|---|
void |
addDependency(String spec)
(experimental) Adds a runtime dependency.
|
Dependency |
addPlugin(String spec)
(experimental) Adds a build plugin to the pom.
|
Dependency |
addPlugin(String spec,
PluginOptions options)
(experimental) Adds a build plugin to the pom.
|
void |
addProperty(String key,
String value)
(experimental) Adds a key/value property to the pom.
|
void |
addTestDependency(String spec)
(experimental) Adds a test dependency.
|
String |
getArtifactId()
(experimental) Maven artifact ID.
|
String |
getDescription()
(experimental) Project description.
|
String |
getFileName()
(experimental) The name of the pom file.
|
String |
getGroupId()
(experimental) Maven group ID.
|
String |
getName()
(experimental) Project display name.
|
String |
getPackaging()
(experimental) Maven packaging format.
|
String |
getUrl()
(experimental) Project URL.
|
String |
getVersion()
(experimental) Project version.
|
getProject, postSynthesize, preSynthesize, synthesizejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Pom(software.amazon.jsii.JsiiObjectRef objRef)
protected Pom(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public Pom(@NotNull
Project project,
@NotNull
PomOptions options)
project - This parameter is required.options - This parameter is required.@Stability(value=Experimental)
public void addDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental) @NotNull public Dependency addPlugin(@NotNull String spec, @Nullable PluginOptions options)
The plug in is also added as a BUILD dep to the project.
spec - dependency spec (`group/artifact@version`). This parameter is required.options - plugin options.@Stability(value=Experimental) @NotNull public Dependency addPlugin(@NotNull String spec)
The plug in is also added as a BUILD dep to the project.
spec - dependency spec (`group/artifact@version`). This parameter is required.@Stability(value=Experimental)
public void addProperty(@NotNull
String key,
@NotNull
String value)
key - the key. This parameter is required.value - the value. This parameter is required.@Stability(value=Experimental)
public void addTestDependency(@NotNull
String spec)
spec - Format `@Stability(value=Experimental) @NotNull public String getArtifactId()
@Stability(value=Experimental) @NotNull public String getFileName()
@Stability(value=Experimental) @NotNull public String getGroupId()
@Stability(value=Experimental) @NotNull public String getPackaging()
@Stability(value=Experimental) @NotNull public String getVersion()
@Stability(value=Experimental) @Nullable public String getDescription()
@Stability(value=Experimental) @Nullable public String getName()
@Stability(value=Experimental) @Nullable public String getUrl()
Copyright © 2021. All rights reserved.