# MavenPom

interface MavenPom(source)

The POM for a Maven publication.

The withXml method can be used to modify the descriptor after it has been generated according to the publication data. However, the preferred way to customize the project information to be published is to use the dedicated properties exposed by this class, e.g. getDescription. Please refer to the official POM Reference for detailed information about the individual properties.

#### Since

1.4

## Functions

ciManagement
Link copied to clipboard
abstract fun ciManagement(action: Action<in MavenPomCiManagement>)
Configures the CI management for the publication represented by this POM.
contributors
Link copied to clipboard
abstract fun contributors(action: Action<in MavenPomContributorSpec>)
Configures the contributors for the publication represented by this POM.
developers
Link copied to clipboard
abstract fun developers(action: Action<in MavenPomDeveloperSpec>)
Configures the developers for the publication represented by this POM.
distributionManagement
Link copied to clipboard
abstract fun distributionManagement(action: Action<in MavenPomDistributionManagement>)
Configures the distribution management for the publication represented by this POM.
getDescription
Link copied to clipboard
abstract fun getDescription(): Property<String>
A short, human-readable description for the publication represented by this POM.
getInceptionYear
Link copied to clipboard
abstract fun getInceptionYear(): Property<String>
The year the project producing the publication represented by this POM was first created.
getName
Link copied to clipboard
abstract fun getName(): Property<String>
The name for the publication represented by this POM.
getPackaging
Link copied to clipboard
abstract fun getPackaging(): Property<String>
Returns the packaging (for example: jar, war) for the publication represented by this POM.
getProperties
Link copied to clipboard
abstract fun getProperties(): MapProperty<String, String>
Returns the properties for the publication represented by this POM.
getUrl
Link copied to clipboard
abstract fun getUrl(): Property<String>
The URL of the home page for the project producing the publication represented by this POM.
issueManagement
Link copied to clipboard
abstract fun issueManagement(action: Action<in MavenPomIssueManagement>)
Configures the issue management for the publication represented by this POM.
licenses
Link copied to clipboard
abstract fun licenses(action: Action<in MavenPomLicenseSpec>)
Configures the licenses for the publication represented by this POM.
mailingLists
Link copied to clipboard
abstract fun mailingLists(action: Action<in MavenPomMailingListSpec>)
Configures the mailing lists for the publication represented by this POM.
organization
Link copied to clipboard
abstract fun organization(action: Action<in MavenPomOrganization>)
Configures the organization for the publication represented by this POM.
scm
Link copied to clipboard
abstract fun scm(action: Action<in MavenPomScm>)
Configures the SCM (source control management) for the publication represented by this POM.
setPackaging
Link copied to clipboard
abstract fun setPackaging(packaging: String)
Sets the packaging for the publication represented by this POM.
withXml
Link copied to clipboard
abstract fun withXml(action: Action<in XmlProvider>)
Allows configuration of the POM, after it has been generated according to the input data.