Class MavenProfile
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenProfile
A profile in a
MavenBuild
.- Author:
- Daniel Andres Pelaez Lopez, Stephane Nicoll, Maurice Zeijen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Maven profile settings.static class
Builder forMavenProfile.Settings
. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
MavenProfile
(String id, BuildItemResolver buildItemResolver) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturn a builder to configure how this profile should beactivated
.boms()
Return the bom container to use to configure Bill of Materials.Return the dependency container to use to configure dependencies.Return a builder to configure the distribution management of this profile.Return theMavenProfileActivation
of this profile.Return the distribution management of this profile.getId()
Return the identifier of the profile.Return the settings of this profile.Return the plugin container to use to configure plugin management plugins.Return the repository container to use to configure plugin repositories.plugins()
Return the plugin container to use to configure plugins.Return the property container to use to configure properties.Return the repository container to use to configure repositories.Return the resource container to use to configure main resources.settings()
Return a builder to configure the general settings of this profile.Return the resource container to use to configure test resources.
-
Constructor Details
-
MavenProfile
Creates a new instance.- Parameters:
id
- the idbuildItemResolver
- the build item resolver
-
-
Method Details
-
getId
Return the identifier of the profile.- Returns:
- the profile id
-
activation
Return a builder to configure how this profile should beactivated
.- Returns:
- a builder for
MavenProfileActivation
.
-
getActivation
Return theMavenProfileActivation
of this profile.- Returns:
- the
MavenProfileActivation
-
settings
Return a builder to configure the general settings of this profile.- Returns:
- a builder for
MavenProfile.SettingsBuilder
.
-
getSettings
Return the settings of this profile.- Returns:
- a
MavenProfile.Settings
-
properties
Return the property container to use to configure properties.- Returns:
- the
PropertyContainer
-
dependencies
Return the dependency container to use to configure dependencies.- Returns:
- the
DependencyContainer
-
boms
Return the bom container to use to configure Bill of Materials.- Returns:
- the
BomContainer
-
repositories
Return the repository container to use to configure repositories.- Returns:
- the
MavenRepositoryContainer
for repositories
-
pluginRepositories
Return the repository container to use to configure plugin repositories.- Returns:
- the
MavenRepositoryContainer
for plugin repositories
-
distributionManagement
Return a builder to configure the distribution management of this profile.- Returns:
- a builder for
MavenDistributionManagement
-
getDistributionManagement
Return the distribution management of this profile.- Returns:
- the
MavenDistributionManagement
-
resources
Return the resource container to use to configure main resources.- Returns:
- the
MavenRepositoryContainer
for main resources
-
testResources
Return the resource container to use to configure test resources.- Returns:
- the
MavenRepositoryContainer
for test resources
-
pluginManagementPlugins
Return the plugin container to use to configure plugin management plugins.- Returns:
- the
MavenPluginContainer
-
plugins
Return the plugin container to use to configure plugins.- Returns:
- the
MavenPluginContainer
-