@Experimental @Generated @ThreadSafe @Immutable public class ModelBase extends Object implements Serializable, InputLocationTracker
Model
and the Profile
objects.Modifier and Type | Class and Description |
---|---|
static class |
ModelBase.Builder
Builder class used to create ModelBase instances.
|
Modifier and Type | Method and Description |
---|---|
List<Dependency> |
getDependencies()
This element describes all of the dependencies associated with a
project.
|
DependencyManagement |
getDependencyManagement()
Default dependency information for projects that inherit from this one.
|
DistributionManagement |
getDistributionManagement()
Distribution information for a project that enables deployment of the site
and artifacts to remote web servers and repositories respectively.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
List<String> |
getModules()
The modules (sometimes called subprojects) to build as a part of this
project.
|
List<Repository> |
getPluginRepositories()
The lists of the remote repositories for discovering plugins for builds and
reports.
|
Map<String,String> |
getProperties()
Properties that can be used throughout the POM as a substitution, and
are used as filters in resources if enabled.
|
Reporting |
getReporting()
This element includes the specification of report plugins to use
to generate the reports on the Maven-generated site.
|
List<Repository> |
getRepositories()
The lists of the remote repositories for discovering dependencies and
extensions.
|
static ModelBase.Builder |
newBuilder()
Creates a new
ModelBase builder instance. |
static ModelBase.Builder |
newBuilder(boolean withDefaults)
Creates a new
ModelBase builder instance using default values or not. |
static ModelBase.Builder |
newBuilder(ModelBase from)
Creates a new
ModelBase builder instance using the specified object as a basis. |
static ModelBase.Builder |
newBuilder(ModelBase from,
boolean forceCopy)
Creates a new
ModelBase builder instance using the specified object as a basis. |
static ModelBase |
newInstance()
Creates a new
ModelBase instance. |
static ModelBase |
newInstance(boolean withDefaults)
Creates a new
ModelBase instance using default values or not. |
ModelBase.Builder |
with()
Creates a new builder with this object as the basis.
|
ModelBase |
withDependencies(Collection<Dependency> dependencies)
Creates a new
ModelBase instance using the specified dependencies. |
ModelBase |
withDependencyManagement(DependencyManagement dependencyManagement)
Creates a new
ModelBase instance using the specified dependencyManagement. |
ModelBase |
withDistributionManagement(DistributionManagement distributionManagement)
Creates a new
ModelBase instance using the specified distributionManagement. |
ModelBase |
withModules(Collection<String> modules)
Creates a new
ModelBase instance using the specified modules. |
ModelBase |
withPluginRepositories(Collection<Repository> pluginRepositories)
Creates a new
ModelBase instance using the specified pluginRepositories. |
ModelBase |
withProperties(Map<String,String> properties)
Creates a new
ModelBase instance using the specified properties. |
ModelBase |
withReporting(Reporting reporting)
Creates a new
ModelBase instance using the specified reporting. |
ModelBase |
withRepositories(Collection<Repository> repositories)
Creates a new
ModelBase instance using the specified repositories. |
@Nonnull public List<String> getModules()
List<String>
public DistributionManagement getDistributionManagement()
DistributionManagement
@Nonnull public Map<String,String> getProperties()
<name>value</name>
.Map<String, String>
public DependencyManagement getDependencyManagement()
DependencyManagement
@Nonnull public List<Dependency> getDependencies()
List<Dependency>
@Nonnull public List<Repository> getRepositories()
List<Repository>
@Nonnull public List<Repository> getPluginRepositories()
List<Repository>
public Reporting getReporting()
mvn site
.
All of the reports will be included in the navigation bar for browsing.Reporting
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public ModelBase.Builder with()
Builder
@Nonnull public ModelBase withModules(Collection<String> modules)
ModelBase
instance using the specified modules.modules
- the new Collection<String>
to useModelBase
with the specified modules@Nonnull public ModelBase withDistributionManagement(DistributionManagement distributionManagement)
ModelBase
instance using the specified distributionManagement.distributionManagement
- the new DistributionManagement
to useModelBase
with the specified distributionManagement@Nonnull public ModelBase withProperties(Map<String,String> properties)
ModelBase
instance using the specified properties.properties
- the new Map<String, String>
to useModelBase
with the specified properties@Nonnull public ModelBase withDependencyManagement(DependencyManagement dependencyManagement)
ModelBase
instance using the specified dependencyManagement.dependencyManagement
- the new DependencyManagement
to useModelBase
with the specified dependencyManagement@Nonnull public ModelBase withDependencies(Collection<Dependency> dependencies)
ModelBase
instance using the specified dependencies.dependencies
- the new Collection<Dependency>
to useModelBase
with the specified dependencies@Nonnull public ModelBase withRepositories(Collection<Repository> repositories)
ModelBase
instance using the specified repositories.repositories
- the new Collection<Repository>
to useModelBase
with the specified repositories@Nonnull public ModelBase withPluginRepositories(Collection<Repository> pluginRepositories)
ModelBase
instance using the specified pluginRepositories.pluginRepositories
- the new Collection<Repository>
to useModelBase
with the specified pluginRepositories@Nonnull public ModelBase withReporting(Reporting reporting)
ModelBase
instance using the specified reporting.reporting
- the new Reporting
to useModelBase
with the specified reporting@Nonnull public static ModelBase newInstance()
ModelBase
instance.
Equivalent to newInstance( true )
.ModelBase
newInstance(boolean)
@Nonnull public static ModelBase newInstance(boolean withDefaults)
ModelBase
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedModelBase
@Nonnull public static ModelBase.Builder newBuilder()
ModelBase
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static ModelBase.Builder newBuilder(boolean withDefaults)
ModelBase
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static ModelBase.Builder newBuilder(ModelBase from)
ModelBase
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the ModelBase
instance to use as a basisBuilder
@Nonnull public static ModelBase.Builder newBuilder(ModelBase from, boolean forceCopy)
ModelBase
builder instance using the specified object as a basis.from
- the ModelBase
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.