configuration
Configuration
Configuration for the Maven Repository Manager.
package
org.apache.maven.archiva.configuration
Configuration
1.0.0+
version
1.0.0+
String
true
This is the version of the configuration format.
@deprecated use managedRepositories or remoteRepositories instead.
repositories
1.0.0+
V1RepositoryConfiguration
*
repositoryGroups
1.2.0+
RepositoryGroupConfiguration
*
The list of repository groups.
managedRepositories
1.0.0+
ManagedRepositoryConfiguration
*
The list of repositories that this archiva instance uses.
remoteRepositories
1.0.0+
RemoteRepositoryConfiguration
*
The list of repositories that this archiva can retrieve from or publish to.
proxyConnectors
1.0.0+
ProxyConnectorConfiguration
*
The list of proxy connectors for this archiva instance.
networkProxies
1.0.0+
NetworkProxyConfiguration
*
The list of network proxies to use for outgoing requests.
legacyArtifactPaths
1.1.0+
LegacyArtifactPath
*
The list of custom legacy path to artifact.
repositoryScanning
1.0.0+
RepositoryScanningConfiguration
1
The repository scanning configuration.
databaseScanning
1.0.0+
DatabaseScanningConfiguration
1
The database scanning configuration.
webapp
1.0.0+
WebappConfiguration
1
The webapp configuration.
organisationInfo
1.1.0+
OrganisationInformation
1
The organisation info.
1.2.0+
> repositoryToGroupMap;
public java.util.Map> getRepositoryToGroupMap()
{
if ( repositoryGroups != null )
{
java.util.Map> map = new java.util.HashMap>();
for ( RepositoryGroupConfiguration group : (java.util.List) repositoryGroups )
{
for ( String repositoryId : (java.util.List) group.getRepositories() )
{
java.util.List groups = map.get( repositoryId );
if ( groups == null )
{
groups = new java.util.ArrayList();
map.put( repositoryId, groups );
}
groups.add( group.getId() );
}
}
repositoryToGroupMap = map;
}
return repositoryToGroupMap;
}
public java.util.Map getRepositoryGroupsAsMap()
{
java.util.Map map = new java.util.HashMap();
if ( repositoryGroups != null )
{
for ( RepositoryGroupConfiguration group : (java.util.List) repositoryGroups )
{
map.put( group.getId(), group );
}
}
return map;
}
public RepositoryGroupConfiguration findRepositoryGroupById( String id )
{
if ( repositoryGroups != null )
{
for ( RepositoryGroupConfiguration group : (java.util.List) repositoryGroups )
{
if ( group.getId().equals( id ) )
{
return group;
}
}
}
return null;
}
private java.util.Map> groupToRepositoryMap;
public java.util.Map> getGroupToRepositoryMap()
{
if ( repositoryGroups != null && managedRepositories != null )
{
java.util.Map> map = new java.util.HashMap>();
for ( ManagedRepositoryConfiguration repo : (java.util.List) managedRepositories )
{
for ( RepositoryGroupConfiguration group : (java.util.List) repositoryGroups )
{
if ( !group.getRepositories().contains( repo.getId() ) )
{
String groupId = group.getId();
java.util.List repos = map.get( groupId );
if ( repos == null )
{
repos = new java.util.ArrayList();
map.put( groupId, repos );
}
repos.add( repo.getId() );
}
}
}
groupToRepositoryMap = map;
}
return groupToRepositoryMap;
}
]]>
1.0.0+
getNetworkProxiesAsMap()
{
java.util.Map map = new java.util.HashMap();
if ( networkProxies != null )
{
for ( java.util.Iterator i = networkProxies.iterator(); i.hasNext(); )
{
NetworkProxyConfiguration proxy = i.next();
map.put( proxy.getId(), proxy );
}
}
return map;
}
public java.util.Map> getProxyConnectorAsMap()
{
java.util.Map> proxyConnectorMap =
new java.util.HashMap>();
java.util.Iterator it = proxyConnectors.iterator();
while ( it.hasNext() )
{
ProxyConnectorConfiguration proxyConfig = it.next();
String key = proxyConfig.getSourceRepoId();
java.util.List connectors = proxyConnectorMap.get( key );
if ( connectors == null )
{
connectors = new java.util.ArrayList();
proxyConnectorMap.put( key, connectors );
}
connectors.add( proxyConfig );
java.util.Collections.sort( connectors,
org.apache.maven.archiva.configuration.functors.ProxyConnectorConfigurationOrderComparator.getInstance() );
}
return proxyConnectorMap;
}
public java.util.Map getRemoteRepositoriesAsMap()
{
java.util.Map map = new java.util.HashMap();
if ( remoteRepositories != null )
{
for ( java.util.Iterator i = remoteRepositories.iterator(); i.hasNext(); )
{
RemoteRepositoryConfiguration repo = i.next();
map.put( repo.getId(), repo );
}
}
return map;
}
public RemoteRepositoryConfiguration findRemoteRepositoryById( String id )
{
if ( remoteRepositories != null )
{
for ( java.util.Iterator i = remoteRepositories.iterator(); i.hasNext(); )
{
RemoteRepositoryConfiguration repo = i.next();
if ( repo.getId().equals( id ) )
{
return repo;
}
}
}
return null;
}
public java.util.Map getManagedRepositoriesAsMap()
{
java.util.Map map = new java.util.HashMap();
if ( managedRepositories != null )
{
for ( java.util.Iterator i = managedRepositories.iterator(); i.hasNext(); )
{
ManagedRepositoryConfiguration repo = i.next();
map.put( repo.getId(), repo );
}
}
return map;
}
public ManagedRepositoryConfiguration findManagedRepositoryById( String id )
{
if ( managedRepositories != null )
{
for ( java.util.Iterator i = managedRepositories.iterator(); i.hasNext(); )
{
ManagedRepositoryConfiguration repo = i.next();
if ( repo.getId().equals( id ) )
{
return repo;
}
}
}
return null;
}
]]>
AbstractRepositoryConfiguration
1.0.0+
true
id
1.0.0+
String
true
The repository identifier.
name
1.0.0+
String
true
The descriptive name of the repository.
layout
1.0.0+
String
true
The layout of the repository. Valid values are "default" and "legacy".
default
RemoteRepositoryConfiguration
1.0.0+
AbstractRepositoryConfiguration
url
1.0.0+
String
true
The URL for this repository.
username
1.0.0+
String
The Username for this repository.
password
1.0.0+
String
The Password for this repository.
timeout
1.0.1+
int
Timeout in seconds for connections to this repository
60
ManagedRepositoryConfiguration
1.0.0+
AbstractRepositoryConfiguration
location
1.0.0+
String
true
The file system location for this repository.
releases
1.0.0+
boolean
True if this repository contains release versioned artifacts.
true
blockRedeployments
1.0.0+
boolean
True if re-deployment of artifacts already in the repository will be blocked.
false
snapshots
1.0.0+
boolean
True if this repository contains snapshot versioned artifacts.
false
scanned
1.0.0+
boolean
True if this repository should be scanned and processed.
true
indexDir
1.0.0+
String
The directory for the indexes of this repository.
refreshCronExpression
1.0.0+
String
When to run the refresh task.
Default is every hour
0 0 * * * ?
retentionCount
1.0.0+
int
The total count of the artifact to be retained for each snapshot.
2
daysOlder
1.0.0+
int
The number of days old which will be the basis for removing a snapshot.
100
deleteReleasedSnapshots
1.0.0+
boolean
True if the released snapshots are to be removed from the repo during repository purge.
false
V1RepositoryConfiguration
1.0.0+
ManagedRepositoryConfiguration
url
1.0.0+
String
true
The URL for this repository.
indexed
1.0.0+
boolean
true
LegacyArtifactPath
1.1.0+
path
1.1.0+
String
true
The legacy path.
artifact
1.1.0+
String
true
The artifact reference, as " [groupId] : [artifactId] : [version] : [classifier] : [type] ".
1.0.0+
0 ? classifier : null;
}
public String getType()
{
return artifact.split( ":" )[4];
}
]]>
RepositoryGroupConfiguration
1.2.0+
id
1.2.0+
String
true
The id of the repository group.
repositories
1.2.0+
String
*
The list of repository ids under the group.
AbstractRepositoryConnectorConfiguration
true
1.0.0+
sourceRepoId
1.0.0+
String
true
The Repository Source for this connector.
targetRepoId
1.0.0+
String
true
The Repository Target for this connector.
proxyId
1.0.0+
String
The network proxy ID to use for this connector.
blackListPatterns
1.0.0+
String
*
The list of blacklisted patterns for this connector.
whiteListPatterns
1.0.0+
String
*
The list of whitelisted patterns for this connector.
policies
1.0.0+
Map
Policy configuration for the connector.
String
*
properties
1.0.0+
Map
Configuration for the connector.
String
*
disabled
1.2+
If the the repository proxy connector is disabled or not
boolean
false
1.0.0+
AbstractRepositoryConnectorConfiguration
ProxyConnectorConfiguration
1.0.0+
order
1.0.0+
The order of the proxy connectors. (0 means no order specified)
int
0
1.0.0+
AbstractRepositoryConnectorConfiguration
SyncConnectorConfiguration
true
1.0.0+
cronExpression
1.0.0+
String
When to run the sync mechanism. Default is every hour on the hour.
0 0 * * * ?
method
1.0.0+
String
The type of synchronization to use.
rsync
NetworkProxyConfiguration
1.0.0+
id
1.0.0+
String
The ID for this proxy.
protocol
1.0.0+
The network protocol to use with this proxy: "http", "socks-4"
String
true
http
host
1.0.0+
The proxy host.
String
true
port
1.0.0+
The proxy port.
int
8080
username
1.0.0+
The proxy user.
String
password
1.0.0+
The proxy password.
String
RepositoryScanningConfiguration
1.0.0+
fileTypes
1.0.0+
true
FileType
*
The FileTypes for the repository scanning configuration.
knownContentConsumers
1.0.0+
true
String
*
The list of active consumers IDs for known content.
invalidContentConsumers
1.0.0+
true
String
*
The list of active consumer IDs for invalid content.
FileType
1.0.0+
The FileType object
id
1.0.0+
true
String
patterns
1.0.0+
true
String
*
DatabaseScanningConfiguration
1.0.0+
The scanning configuration for unprocessed ArchivaArtifact database objects.
cronExpression
1.0.0+
String
When to run the database scanning mechanism. Default is every two hours on the hour.
0 0 0/2 * * ?
unprocessedConsumers
1.0.0+
true
String
*
The list of consumers for the unprocessed ArchivaArtifact database objects.
cleanupConsumers
1.0.0+
true
String
*
The list of consumers for previously processed ArchivaArtifact database
objects that no longer exist on the filesystem, and might need to
undergo a cleanup.
OrganisationInformation
1.1.0+
The organisation information settings.
name
name of the organisation
1.1.0+
String
url
name of the organisation
1.1.0+
String
logoLocation
name of the organisation
1.1.0+
String
WebappConfiguration
1.0.0+
The webapp configuration settings.
ui
options for altering the ui presentation
1.0.0+
UserInterfaceOptions
UserInterfaceOptions
1.0.0+
The user interface configuration settings.
showFindArtifacts
true if find artifacts should be enabled
1.0.0+
boolean
true
appletFindEnabled
true if applet behavior for find artifacts should be enabled
1.0.0+
boolean
true