Class MavenProfile
java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenProfile
A profile in a
MavenBuild.- Author:
- Daniel Andres Pelaez Lopez, Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classMaven profile settings.static classBuilder forMavenProfile.Settings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMavenProfile(String id, BuildItemResolver buildItemResolver) -
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 theMavenProfileActivationof this profile.Return the distribution management of this profile.getId()Return the identifier of the profile.Return the settings of this profile.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
-
-
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 theMavenProfileActivationof 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
MavenRepositoryContainerfor repositories
-
pluginRepositories
Return the repository container to use to configure plugin repositories.- Returns:
- the
MavenRepositoryContainerfor 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
MavenRepositoryContainerfor main resources
-
testResources
Return the resource container to use to configure test resources.- Returns:
- the
MavenRepositoryContainerfor test resources
-
plugins
Return the plugin container to use to configure plugins.- Returns:
- the
MavenPluginContainer
-