Package org.apache.maven.api.model
Class Site
java.lang.Object
org.apache.maven.api.model.Site
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Site
extends Object
implements Serializable, InputLocationTracker
Contains the information needed for deploying websites.
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create Site instances.
- 
Method SummaryModifier and TypeMethodDescriptionWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1getId()A unique identifier for a deployment location.getLocation(Object key) Gets the location of the specified field in the input source.getName()Human readable name of the deployment location.getUrl()The url of the location where website is deployed, in the formprotocol://hostname/path.booleanstatic Site.BuilderCreates a newSitebuilder instance.static Site.BuildernewBuilder(boolean withDefaults) Creates a newSitebuilder instance using default values or not.static Site.BuildernewBuilder(Site from) Creates a newSitebuilder instance using the specified object as a basis.static Site.BuildernewBuilder(Site from, boolean forceCopy) Creates a newSitebuilder instance using the specified object as a basis.static SiteCreates a newSiteinstance.static SitenewInstance(boolean withDefaults) Creates a newSiteinstance using default values or not.with()Creates a new builder with this object as the basis.withChildSiteUrlInheritAppendPath(String childSiteUrlInheritAppendPath) Creates a newSiteinstance using the specified childSiteUrlInheritAppendPath.Creates a newSiteinstance using the specified id.Creates a newSiteinstance using the specified name.Creates a newSiteinstance using the specified url.
- 
Method Details- 
getIdA unique identifier for a deployment location. This is used to match the site to configuration in thesettings.xmlfile, for example.- Returns:
- a String
 
- 
getNameHuman readable name of the deployment location.- Returns:
- a String
 
- 
getUrlThe url of the location where website is deployed, in the formprotocol://hostname/path.
 Default value is: parent value [+ path adjustment] + (artifactId or project.directory property), or just parent value if site'schild.site.url.inherit.append.path="false"- Returns:
- a String
 
- 
getChildSiteUrlInheritAppendPathWhen children inherit from distribution management site url, append path or not? Note: While the type of this field isStringfor technical reasons, the semantic type is actuallyBoolean
 Default value is:true
 Since: Maven 3.6.1- Returns:
- a String
 
- 
getLocationGets the location of the specified field in the input source.- Specified by:
- getLocationin interface- InputLocationTracker
 
- 
withCreates a new builder with this object as the basis.- Returns:
- a Builder
 
- 
withIdCreates a newSiteinstance using the specified id.- Parameters:
- id- the new- Stringto use
- Returns:
- a Sitewith the specified id
 
- 
withNameCreates a newSiteinstance using the specified name.- Parameters:
- name- the new- Stringto use
- Returns:
- a Sitewith the specified name
 
- 
withUrlCreates a newSiteinstance using the specified url.- Parameters:
- url- the new- Stringto use
- Returns:
- a Sitewith the specified url
 
- 
withChildSiteUrlInheritAppendPathCreates a newSiteinstance using the specified childSiteUrlInheritAppendPath.- Parameters:
- childSiteUrlInheritAppendPath- the new- Stringto use
- Returns:
- a Sitewith the specified childSiteUrlInheritAppendPath
 
- 
newInstanceCreates a newSiteinstance. Equivalent tonewInstance(true).- Returns:
- a new Site
- See Also:
 
- 
newInstanceCreates a newSiteinstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Site
 
- 
newBuilderCreates a newSitebuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newSitebuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newSitebuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- Siteinstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newSitebuilder instance using the specified object as a basis.- Parameters:
- from- the- Siteinstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
isChildSiteUrlInheritAppendPathpublic boolean isChildSiteUrlInheritAppendPath()
 
-