public class FluentModelBuilder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
org.apache.maven.model.Model |
build() |
FluentModelBuilder |
marshalTo(java.io.File file) |
FluentModelBuilder |
marshalTo(java.io.FileOutputStream outputStream) |
FluentModelBuilder |
marshalTo(java.io.Writer writer) |
static FluentModelBuilder |
newModel() |
static FluentModelBuilder |
newModel(java.io.FileInputStream inputStream) |
static FluentModelBuilder |
newPom() |
protected static FluentModelBuilder |
newPom(java.io.FileInputStream inputStream) |
FluentModelBuilder |
withArtifactId(java.lang.String artifactId)
Set the identifier for this artifact that is unique within
the group given by the
group ID.
|
FluentModelBuilder |
withBuild(org.apache.maven.model.Build build)
Set information required to build the project.
|
FluentModelBuilder |
withCiManagement(org.apache.maven.model.CiManagement ciManagement)
Set the project's continuous integration information.
|
FluentModelBuilder |
withContributor(org.apache.maven.model.Contributor contributor)
Method addContributor.
|
FluentModelBuilder |
withContributors(java.util.List<org.apache.maven.model.Contributor> contributors)
Set describes the contributors to a project that are not yet
committers.
|
FluentModelBuilder |
withDependencies(java.util.List<org.apache.maven.model.Dependency> dependencies)
Set this element describes all of the dependencies
associated with a
project.
|
FluentModelBuilder |
withDependency(org.apache.maven.model.Dependency dependency)
Method addDependency.
|
FluentModelBuilder |
withDependencyManagement(org.apache.maven.model.DependencyManagement dependencyManagement)
Set default dependency information for projects that inherit
from this one.
|
FluentModelBuilder |
withDescription(java.lang.String description)
Set a detailed description of the project, used by Maven
whenever it needs to
describe the project, such as on the web site.
|
FluentModelBuilder |
withDeveloper(org.apache.maven.model.Developer developer)
Method addDeveloper.
|
FluentModelBuilder |
withDevelopers(java.util.List<org.apache.maven.model.Developer> developers)
Set describes the committers of a project.
|
FluentModelBuilder |
withDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
Set distribution information for a project that enables
deployment of the site
and artifacts to remote web servers and
repositories respectively.
|
FluentModelBuilder |
withGroupId(java.lang.String groupId)
Set a universally unique identifier for a project.
|
FluentModelBuilder |
withInceptionYear(java.lang.String inceptionYear)
Set the year of the project's inception, specified with 4
digits.
|
FluentModelBuilder |
withIssueManagement(org.apache.maven.model.IssueManagement issueManagement)
Set the project's issue management system information.
|
FluentModelBuilder |
withLicense(org.apache.maven.model.License license)
Method addLicense.
|
FluentModelBuilder |
withLicenses(java.util.List<org.apache.maven.model.License> licenses)
Set this element describes all of the licenses for this
project.
|
FluentModelBuilder |
withLocation(java.lang.Object key,
org.apache.maven.model.InputLocation location) |
FluentModelBuilder |
withMailingList(org.apache.maven.model.MailingList mailingList)
Method addMailingList.
|
FluentModelBuilder |
withMailingLists(java.util.List<org.apache.maven.model.MailingList> mailingLists)
Set contains information about a project's mailing lists.
|
FluentModelBuilder |
withModelEncoding(java.lang.String modelEncoding)
Set the modelEncoding field.
|
FluentModelBuilder |
withModelVersion(java.lang.String modelVersion)
Set declares to which version of project descriptor this POM
conforms.
|
FluentModelBuilder |
withModule(java.lang.String string)
Method addModule.
|
FluentModelBuilder |
withModules(java.util.List<java.lang.String> modules)
Set the modules (sometimes called subprojects) to build as a
part of this
project.
|
FluentModelBuilder |
withName(java.lang.String name)
Set the full name of the project.
|
FluentModelBuilder |
withOrganization(org.apache.maven.model.Organization organization)
Set this element describes various attributes of the
organization to which the
project belongs.
|
FluentModelBuilder |
withPackaging(java.lang.String packaging)
Set the type of artifact this project produces, for example
jar
war
ear
pom. |
FluentModelBuilder |
withParent(org.apache.maven.model.Parent parent)
Set the location of the parent project, if one exists.
|
FluentModelBuilder |
withPluginRepositories(java.util.List<org.apache.maven.model.Repository> pluginRepositories)
Set the lists of the remote repositories for discovering
plugins for builds and
reports.
|
FluentModelBuilder |
withPluginRepository(org.apache.maven.model.Repository repository)
Method addPluginRepository.
|
FluentModelBuilder |
withPomFile(java.io.File pomFile) |
FluentModelBuilder |
withPrerequisites(org.apache.maven.model.Prerequisites prerequisites)
Set describes the prerequisites in the build environment for
this project.
|
FluentModelBuilder |
withProfile(org.apache.maven.model.Profile profile)
Method addProfile.
|
FluentModelBuilder |
withProfiles(java.util.List<org.apache.maven.model.Profile> profiles)
Set a listing of project-local build profiles which will
modify the build process
when activated.
|
FluentModelBuilder |
withProperties(java.util.Properties properties)
Set properties that can be used throughout the POM as a
substitution, and
are used as filters in resources if enabled.
|
FluentModelBuilder |
withProperty(java.lang.String key,
java.lang.String value)
Method addProperty.
|
FluentModelBuilder |
withReporting(org.apache.maven.model.Reporting reporting)
Set this element includes the specification of report
plugins to use
to generate the reports on the Maven-generated
site.
|
FluentModelBuilder |
withReports(java.lang.Object reports)
Set Deprecated.
|
FluentModelBuilder |
withRepositories(java.util.List<org.apache.maven.model.Repository> repositories)
Set the lists of the remote repositories for discovering
dependencies and
extensions.
|
FluentModelBuilder |
withRepository(org.apache.maven.model.Repository repository)
Method addRepository.
|
FluentModelBuilder |
withScm(org.apache.maven.model.Scm scm)
Set specification for the SCM used by the project, such as
CVS, Subversion, etc.
|
FluentModelBuilder |
withUrl(java.lang.String url)
Set the URL to the project's homepage.
|
FluentModelBuilder |
withVersion(java.lang.String version)
Set the current version of the artifact produced by this
project.
|
public static FluentModelBuilder newModel()
public static FluentModelBuilder newPom()
public static FluentModelBuilder newModel(java.io.FileInputStream inputStream) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionprotected static FluentModelBuilder newPom(java.io.FileInputStream inputStream) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic FluentModelBuilder marshalTo(java.io.File file) throws java.io.IOException
java.io.IOExceptionpublic FluentModelBuilder marshalTo(java.io.FileOutputStream outputStream) throws java.io.IOException
java.io.IOExceptionpublic FluentModelBuilder marshalTo(java.io.Writer writer) throws java.io.IOException
java.io.IOExceptionpublic org.apache.maven.model.Model build()
public FluentModelBuilder withContributor(org.apache.maven.model.Contributor contributor)
contributor - public FluentModelBuilder withDeveloper(org.apache.maven.model.Developer developer)
developer - public FluentModelBuilder withLicense(org.apache.maven.model.License license)
license - public FluentModelBuilder withMailingList(org.apache.maven.model.MailingList mailingList)
mailingList - public FluentModelBuilder withProfile(org.apache.maven.model.Profile profile)
profile - public FluentModelBuilder withArtifactId(java.lang.String artifactId)
artifactId - public FluentModelBuilder withBuild(org.apache.maven.model.Build build)
build - public FluentModelBuilder withCiManagement(org.apache.maven.model.CiManagement ciManagement)
ciManagement - public FluentModelBuilder withContributors(java.util.List<org.apache.maven.model.Contributor> contributors)
contributors - public FluentModelBuilder withDescription(java.lang.String description)
description - public FluentModelBuilder withDevelopers(java.util.List<org.apache.maven.model.Developer> developers)
developers - public FluentModelBuilder withGroupId(java.lang.String groupId)
org.apache.maven).groupId - public FluentModelBuilder withInceptionYear(java.lang.String inceptionYear)
inceptionYear - public FluentModelBuilder withIssueManagement(org.apache.maven.model.IssueManagement issueManagement)
issueManagement - public FluentModelBuilder withLicenses(java.util.List<org.apache.maven.model.License> licenses)
license element, which
is then described by additional elements.
Projects should only list the license(s) that
applies to the project
and not the licenses that apply to dependencies.
If multiple licenses are listed, it is assumed
that the user can select
any of them, not that they must accept all.licenses - public FluentModelBuilder withMailingLists(java.util.List<org.apache.maven.model.MailingList> mailingLists)
mailingLists - public FluentModelBuilder withModelEncoding(java.lang.String modelEncoding)
modelEncoding - public FluentModelBuilder withModelVersion(java.lang.String modelVersion)
modelVersion - public FluentModelBuilder withName(java.lang.String name)
name - public FluentModelBuilder withOrganization(org.apache.maven.model.Organization organization)
organization - public FluentModelBuilder withPackaging(java.lang.String packaging)
jar
war
ear
pom.
Plugins can create their own packaging, and
therefore their own packaging types,
so this list does not contain all possible
types.packaging - public FluentModelBuilder withParent(org.apache.maven.model.Parent parent)
parent - public FluentModelBuilder withPrerequisites(org.apache.maven.model.Prerequisites prerequisites)
prerequisites - public FluentModelBuilder withProfiles(java.util.List<org.apache.maven.model.Profile> profiles)
profiles - public FluentModelBuilder withScm(org.apache.maven.model.Scm scm)
scm - public FluentModelBuilder withUrl(java.lang.String url)
url - public FluentModelBuilder withVersion(java.lang.String version)
version - public FluentModelBuilder withPomFile(java.io.File pomFile)
public FluentModelBuilder withDependency(org.apache.maven.model.Dependency dependency)
dependency - public FluentModelBuilder withModule(java.lang.String string)
string - public FluentModelBuilder withPluginRepository(org.apache.maven.model.Repository repository)
repository - public FluentModelBuilder withProperty(java.lang.String key, java.lang.String value)
key - value - public FluentModelBuilder withRepository(org.apache.maven.model.Repository repository)
repository - public FluentModelBuilder withDependencies(java.util.List<org.apache.maven.model.Dependency> dependencies)
dependencies - public FluentModelBuilder withDependencyManagement(org.apache.maven.model.DependencyManagement dependencyManagement)
dependencyManagement - public FluentModelBuilder withDistributionManagement(org.apache.maven.model.DistributionManagement distributionManagement)
distributionManagement - public FluentModelBuilder withLocation(java.lang.Object key, org.apache.maven.model.InputLocation location)
key - location - public FluentModelBuilder withModules(java.util.List<java.lang.String> modules)
modules - public FluentModelBuilder withPluginRepositories(java.util.List<org.apache.maven.model.Repository> pluginRepositories)
pluginRepositories - public FluentModelBuilder withProperties(java.util.Properties properties)
<name>value</name>.properties - public FluentModelBuilder withReporting(org.apache.maven.model.Reporting reporting)
mvn site.
All of the reports will be included in the
navigation bar for browsing.reporting - public FluentModelBuilder withReports(java.lang.Object reports)
reports - public FluentModelBuilder withRepositories(java.util.List<org.apache.maven.model.Repository> repositories)
repositories - Copyright © 2014 Yandex. All Rights Reserved.