Package org.apache.maven.model.v3_0_0
Class License
java.lang.Object
org.apache.maven.model.v3_0_0.License
- All Implemented Interfaces:
Serializable
Describes the licenses for this project. This is used to
generate the license
page of the project's web site, as well as being taken
into consideration in other reporting
and validation. The licenses listed for the project are
that of the project itself, and not
of dependencies.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet addendum information pertaining to this license.Get the primary method by which this project may be distributed.getName()
Get the full legal name of the license.getUrl()
Get the official url for the license text.void
setComments
(String comments) Set addendum information pertaining to this license.void
setDistribution
(String distribution) Set the primary method by which this project may be distributed.void
Set the full legal name of the license.void
Set the official url for the license text.
-
Field Details
-
name
The full legal name of the license. -
url
The official url for the license text. -
distribution
The primary method by which this project may be distributed.- repo
- may be downloaded from the Maven repository
- manual
- user must manually download and install the dependency.
-
comments
Addendum information pertaining to this license.
-
-
Constructor Details
-
License
public License()
-
-
Method Details
-
getComments
Get addendum information pertaining to this license.- Returns:
- String
-
getDistribution
Get the primary method by which this project may be distributed.- repo
- may be downloaded from the Maven repository
- manual
- user must manually download and install the dependency.
- Returns:
- String
-
getName
Get the full legal name of the license.- Returns:
- String
-
getUrl
Get the official url for the license text.- Returns:
- String
-
setComments
Set addendum information pertaining to this license.- Parameters:
comments
- a comments object.
-
setDistribution
Set the primary method by which this project may be distributed.- repo
- may be downloaded from the Maven repository
- manual
- user must manually download and install the dependency.
- Parameters:
distribution
- a distribution object.
-
setName
Set the full legal name of the license.- Parameters:
name
- a name object.
-
setUrl
Set the official url for the license text.- Parameters:
url
- a url object.
-