Class Repository
- java.lang.Object
-
- org.apache.maven.plugins.assembly.model.Repository
-
- All Implemented Interfaces:
java.io.Serializable
public class Repository extends java.lang.Object implements java.io.Serializable
Defines a Maven repository to be included in the assembly. The artifacts available to be included in a repository are your project's dependency artifacts. The repository created contains the needed metadata entries and also contains both sha1 and md5 checksums. This is useful for creating archives which will be deployed to internal repositories.NOTE: Currently, only artifacts from the central repository are allowed.
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
directoryMode
Similar to a UNIX permission, sets the directory mode of the directories included.private java.util.List<java.lang.String>
excludes
Field excludes.private java.lang.String
fileMode
Similar to a UNIX permission, sets the file mode of the files included.private java.util.List<GroupVersionAlignment>
groupVersionAlignments
Field groupVersionAlignments.private boolean
includeMetadata
If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository.private java.util.List<java.lang.String>
includes
Field includes.private java.lang.String
outputDirectory
Sets the output directory relative to the root of the root directory of the assembly.private java.lang.String
scope
Specifies the scope for artifacts included in this repository.
-
Constructor Summary
Constructors Constructor Description Repository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExclude(java.lang.String string)
Method addExclude.void
addGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment)
Method addGroupVersionAlignment.void
addInclude(java.lang.String string)
Method addInclude.java.lang.String
getDirectoryMode()
Get similar to a UNIX permission, sets the directory mode of the directories included.java.util.List<java.lang.String>
getExcludes()
Method getExcludes.java.lang.String
getFileMode()
Get similar to a UNIX permission, sets the file mode of the files included.java.util.List<GroupVersionAlignment>
getGroupVersionAlignments()
Method getGroupVersionAlignments.java.util.List<java.lang.String>
getIncludes()
Method getIncludes.java.lang.String
getOutputDirectory()
Get sets the output directory relative to the root of the root directory of the assembly.java.lang.String
getScope()
Get specifies the scope for artifacts included in this repository.boolean
isIncludeMetadata()
Get if set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository.void
removeExclude(java.lang.String string)
Method removeExclude.void
removeGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment)
Method removeGroupVersionAlignment.void
removeInclude(java.lang.String string)
Method removeInclude.void
setDirectoryMode(java.lang.String directoryMode)
Set similar to a UNIX permission, sets the directory mode of the directories included.void
setExcludes(java.util.List<java.lang.String> excludes)
Set when <exclude> subelements are present, they define a set of dependency artifact coordinates to exclude.void
setFileMode(java.lang.String fileMode)
Set similar to a UNIX permission, sets the file mode of the files included.void
setGroupVersionAlignments(java.util.List<GroupVersionAlignment> groupVersionAlignments)
Set specifies that you want to align a group of artifacts to a specified version.void
setIncludeMetadata(boolean includeMetadata)
Set if set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository.void
setIncludes(java.util.List<java.lang.String> includes)
Set when <include> subelements are present, they define a set of artifact coordinates to include.void
setOutputDirectory(java.lang.String outputDirectory)
Set sets the output directory relative to the root of the root directory of the assembly.void
setScope(java.lang.String scope)
Set specifies the scope for artifacts included in this repository.
-
-
-
Field Detail
-
outputDirectory
private java.lang.String outputDirectory
Sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory, directly beneath the root of the archive.
-
includes
private java.util.List<java.lang.String> includes
Field includes.
-
excludes
private java.util.List<java.lang.String> excludes
Field excludes.
-
fileMode
private java.lang.String fileMode
Similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)
-
directoryMode
private java.lang.String directoryMode
Similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)
-
includeMetadata
private boolean includeMetadata
If set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. Default value is false.
-
groupVersionAlignments
private java.util.List<GroupVersionAlignment> groupVersionAlignments
Field groupVersionAlignments.
-
scope
private java.lang.String scope
Specifies the scope for artifacts included in this repository. Default scope value is "runtime". (Since 2.2) .
-
-
Method Detail
-
addExclude
public void addExclude(java.lang.String string)
Method addExclude.- Parameters:
string
-
-
addGroupVersionAlignment
public void addGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment)
Method addGroupVersionAlignment.- Parameters:
groupVersionAlignment
-
-
addInclude
public void addInclude(java.lang.String string)
Method addInclude.- Parameters:
string
-
-
getDirectoryMode
public java.lang.String getDirectoryMode()
Get similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)- Returns:
- String
-
getExcludes
public java.util.List<java.lang.String> getExcludes()
Method getExcludes.- Returns:
- List
-
getFileMode
public java.lang.String getFileMode()
Get similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)- Returns:
- String
-
getGroupVersionAlignments
public java.util.List<GroupVersionAlignment> getGroupVersionAlignments()
Method getGroupVersionAlignments.- Returns:
- List
-
getIncludes
public java.util.List<java.lang.String> getIncludes()
Method getIncludes.- Returns:
- List
-
getOutputDirectory
public java.lang.String getOutputDirectory()
Get sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory, directly beneath the root of the archive.- Returns:
- String
-
getScope
public java.lang.String getScope()
Get specifies the scope for artifacts included in this repository. Default scope value is "runtime". (Since 2.2).- Returns:
- String
-
isIncludeMetadata
public boolean isIncludeMetadata()
Get if set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. Default value is false.- Returns:
- boolean
-
removeExclude
public void removeExclude(java.lang.String string)
Method removeExclude.- Parameters:
string
-
-
removeGroupVersionAlignment
public void removeGroupVersionAlignment(GroupVersionAlignment groupVersionAlignment)
Method removeGroupVersionAlignment.- Parameters:
groupVersionAlignment
-
-
removeInclude
public void removeInclude(java.lang.String string)
Method removeInclude.- Parameters:
string
-
-
setDirectoryMode
public void setDirectoryMode(java.lang.String directoryMode)
Set similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)- Parameters:
directoryMode
-
-
setExcludes
public void setExcludes(java.util.List<java.lang.String> excludes)
Set when <exclude> subelements are present, they define a set of dependency artifact coordinates to exclude. If none is present, then <excludes> represents no exclusions. Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:maven-*.- Parameters:
excludes
-
-
setFileMode
public void setFileMode(java.lang.String fileMode)
Set similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)- Parameters:
fileMode
-
-
setGroupVersionAlignments
public void setGroupVersionAlignments(java.util.List<GroupVersionAlignment> groupVersionAlignments)
Set specifies that you want to align a group of artifacts to a specified version. A groupVersionAlignment is specified by providing one or more of <groupVersionAlignment> subelements.- Parameters:
groupVersionAlignments
-
-
setIncludeMetadata
public void setIncludeMetadata(boolean includeMetadata)
Set if set to true, this property will trigger the creation of repository metadata which will allow the repository to be used as a functional remote repository. Default value is false.- Parameters:
includeMetadata
-
-
setIncludes
public void setIncludes(java.util.List<java.lang.String> includes)
Set when <include> subelements are present, they define a set of artifact coordinates to include. If none is present, then <includes> represents all valid values. Artifact coordinates may be given in simple groupId:artifactId form, or they may be fully qualified in the form groupId:artifactId:type[:classifier]:version. Additionally, wildcards can be used, as in *:maven-*.- Parameters:
includes
-
-
setOutputDirectory
public void setOutputDirectory(java.lang.String outputDirectory)
Set sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory, directly beneath the root of the archive.- Parameters:
outputDirectory
-
-
setScope
public void setScope(java.lang.String scope)
Set specifies the scope for artifacts included in this repository. Default scope value is "runtime". (Since 2.2).- Parameters:
scope
-
-
-