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
*
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.
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.
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.
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
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
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
*
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.
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