|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858 |
- <?xml version="1.0" ?>
- <!--
- ~ Licensed to the Apache Software Foundation (ASF) under one
- ~ or more contributor license agreements. See the NOTICE file
- ~ distributed with this work for additional information
- ~ regarding copyright ownership. The ASF licenses this file
- ~ to you under the Apache License, Version 2.0 (the
- ~ "License"); you may not use this file except in compliance
- ~ with the License. You may obtain a copy of the License at
- ~
- ~ http://www.apache.org/licenses/LICENSE-2.0
- ~
- ~ Unless required by applicable law or agreed to in writing,
- ~ software distributed under the License is distributed on an
- ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- ~ KIND, either express or implied. See the License for the
- ~ specific language governing permissions and limitations
- ~ under the License.
- -->
-
- <model>
- <!-- Current configuration version: 3.0.0 -->
- <id>configuration</id>
- <name>Configuration</name>
- <description>
- Configuration format for Archiva (Maven Repository Manager).
- </description>
- <defaults>
- <default>
- <key>package</key>
- <value>org.apache.archiva.configuration</value>
- </default>
- </defaults>
- <versionDefinition>
- <type>field</type>
- <value>version</value>
- </versionDefinition>
- <classes>
- <class rootElement="true" xml.tagName="configuration">
- <name>Configuration</name>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>version</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>This is the version of the configuration format.</description>
- </field>
- <field>
- <name>metadataStore</name>
- <version>3.0.0+</version>
- <type>String</type>
- <required>true</required>
- <defaultValue>jcr</defaultValue>
- <description>The type of the metadata storage. Allowed values: jcr, file, cassandra.</description>
- </field>
- <field>
- <name>repositoryGroups</name>
- <version>1.2.0+</version>
- <association>
- <type>RepositoryGroupConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of repository groups.</description>
- </field>
- <field>
- <name>managedRepositories</name>
- <version>1.0.0+</version>
- <association>
- <type>ManagedRepositoryConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of repositories that this archiva instance uses.</description>
- </field>
- <field>
- <name>remoteRepositories</name>
- <version>1.0.0+</version>
- <association>
- <type>RemoteRepositoryConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of repositories that this archiva can retrieve from or publish to.</description>
- </field>
- <field>
- <name>proxyConnectors</name>
- <version>1.0.0+</version>
- <association>
- <type>ProxyConnectorConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of proxy connectors for this archiva instance.</description>
- </field>
- <!-- To be introduced later.
- <field>
- <name>syncConnectors</name>
- <version>1.0.0+</version>
- <association>
- <type>SyncConnectorConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of sync connectors for this archiva instance.</description>
- </field>
- -->
- <field>
- <name>networkProxies</name>
- <version>1.0.0+</version>
- <association>
- <type>NetworkProxyConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of network proxies to use for outgoing requests.
- </description>
- </field>
- <field>
- <name>legacyArtifactPaths</name>
- <version>1.1.0+</version>
- <association>
- <type>LegacyArtifactPath</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of custom legacy path to artifact.
- </description>
- </field>
- <field>
- <name>repositoryScanning</name>
- <version>1.0.0+</version>
- <association>
- <type>RepositoryScanningConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>
- The repository scanning configuration.
- </description>
- </field>
- <field>
- <name>webapp</name>
- <version>1.0.0+</version>
- <association>
- <type>WebappConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>
- The webapp configuration.
- </description>
- </field>
- <field>
- <name>organisationInfo</name>
- <version>1.1.0+</version>
- <association>
- <type>OrganisationInformation</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>
- The organisation info.
- </description>
- </field>
- <field>
- <name>networkConfiguration</name>
- <version>1.4.0+</version>
- <association>
- <type>NetworkConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>
- The NetworkConfiguration .
- </description>
- </field>
- <field>
- <name>redbackRuntimeConfiguration</name>
- <version>1.4.0+</version>
- <association>
- <type>RedbackRuntimeConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>The RedbackRuntimeConfiguration.</description>
- </field>
- <field>
- <name>archivaRuntimeConfiguration</name>
- <version>1.4.0+</version>
- <association>
- <type>ArchivaRuntimeConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>The ArchivaRuntimeConfiguration.</description>
- </field>
- <field>
- <name>proxyConnectorRuleConfigurations</name>
- <version>1.4.0+</version>
- <association>
- <type>ProxyConnectorRuleConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of ProxyConnectorRuleConfigurations.
- </description>
- </field>
- <field>
- <name>archivaDefaultConfiguration</name>
- <version>1.4.2+</version>
- <association>
- <type>ArchivaDefaultConfiguration</type>
- <multiplicity>1</multiplicity>
- </association>
- <description>Archiva default settings.</description>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.2.0+</version>
- <code><![CDATA[
- private java.util.Map<String, java.util.List<String>> repositoryToGroupMap;
-
- public java.util.Map<String, java.util.List<String>> getRepositoryToGroupMap()
- {
- if ( repositoryGroups != null )
- {
- java.util.Map<String, java.util.List<String>> map = new java.util.HashMap<String, java.util.List<String>>();
-
- for ( RepositoryGroupConfiguration group : (java.util.List<RepositoryGroupConfiguration>) repositoryGroups )
- {
- for ( String repositoryId : (java.util.List<String>) group.getRepositories() )
- {
- java.util.List<String> groups = map.get( repositoryId );
- if ( groups == null )
- {
- groups = new java.util.ArrayList<String>();
- map.put( repositoryId, groups );
- }
- groups.add( group.getId() );
- }
- }
-
- repositoryToGroupMap = map;
- }
- return repositoryToGroupMap;
- }
-
- public java.util.Map<String, RepositoryGroupConfiguration> getRepositoryGroupsAsMap()
- {
- java.util.Map<String, RepositoryGroupConfiguration> map = new java.util.HashMap<String, RepositoryGroupConfiguration>();
- if ( repositoryGroups != null )
- {
- for ( RepositoryGroupConfiguration group : (java.util.List<RepositoryGroupConfiguration>) repositoryGroups )
- {
- map.put( group.getId(), group );
- }
- }
- return map;
- }
-
- public RepositoryGroupConfiguration findRepositoryGroupById( String id )
- {
- if ( repositoryGroups != null )
- {
- for ( RepositoryGroupConfiguration group : (java.util.List<RepositoryGroupConfiguration>) repositoryGroups )
- {
- if ( group.getId().equals( id ) )
- {
- return group;
- }
- }
- }
- return null;
- }
-
- private java.util.Map<String, java.util.List<String>> groupToRepositoryMap;
-
- public java.util.Map<String, java.util.List<String>> getGroupToRepositoryMap()
- {
- if ( repositoryGroups != null && managedRepositories != null )
- {
- java.util.Map<String, java.util.List<String>> map = new java.util.HashMap<String, java.util.List<String>>();
-
- for ( ManagedRepositoryConfiguration repo : (java.util.List<ManagedRepositoryConfiguration>) managedRepositories )
- {
- for ( RepositoryGroupConfiguration group : (java.util.List<RepositoryGroupConfiguration>) repositoryGroups )
- {
- if ( !group.getRepositories().contains( repo.getId() ) )
- {
- String groupId = group.getId();
- java.util.List<String> repos = map.get( groupId );
- if ( repos == null )
- {
- repos = new java.util.ArrayList<String>();
- map.put( groupId, repos );
- }
- repos.add( repo.getId() );
- }
- }
- }
- groupToRepositoryMap = map;
- }
- return groupToRepositoryMap;
- }
- ]]></code>
- </codeSegment>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- public java.util.Map<String, NetworkProxyConfiguration> getNetworkProxiesAsMap()
- {
- java.util.Map<String, NetworkProxyConfiguration> map = new java.util.HashMap<String, NetworkProxyConfiguration>();
- if ( networkProxies != null )
- {
- for ( java.util.Iterator<NetworkProxyConfiguration> i = networkProxies.iterator(); i.hasNext(); )
- {
- NetworkProxyConfiguration proxy = i.next();
- map.put( proxy.getId(), proxy );
- }
- }
- return map;
- }
-
- public java.util.Map<String, java.util.List<ProxyConnectorConfiguration>> getProxyConnectorAsMap()
- {
- java.util.Map<String, java.util.List<ProxyConnectorConfiguration>> proxyConnectorMap =
- new java.util.HashMap<String, java.util.List<ProxyConnectorConfiguration>>();
-
- if( proxyConnectors != null )
- {
- java.util.Iterator<ProxyConnectorConfiguration> it = proxyConnectors.iterator();
- while ( it.hasNext() )
- {
- ProxyConnectorConfiguration proxyConfig = it.next();
- String key = proxyConfig.getSourceRepoId();
-
- java.util.List<ProxyConnectorConfiguration> connectors = proxyConnectorMap.get( key );
- if ( connectors == null )
- {
- connectors = new java.util.ArrayList<ProxyConnectorConfiguration>();
- proxyConnectorMap.put( key, connectors );
- }
-
- connectors.add( proxyConfig );
- java.util.Collections.sort( connectors,
- org.apache.archiva.configuration.provider.functors.ProxyConnectorConfigurationOrderComparator.getInstance() );
- }
- }
-
- return proxyConnectorMap;
- }
-
- public java.util.Map<String, RemoteRepositoryConfiguration> getRemoteRepositoriesAsMap()
- {
- java.util.Map<String, RemoteRepositoryConfiguration> map = new java.util.HashMap<String, RemoteRepositoryConfiguration>();
- if ( remoteRepositories != null )
- {
- for ( java.util.Iterator<RemoteRepositoryConfiguration> 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<RemoteRepositoryConfiguration> i = remoteRepositories.iterator(); i.hasNext(); )
- {
- RemoteRepositoryConfiguration repo = i.next();
- if ( repo.getId().equals( id ) )
- {
- return repo;
- }
- }
- }
- return null;
- }
-
- public java.util.Map<String, ManagedRepositoryConfiguration> getManagedRepositoriesAsMap()
- {
- java.util.Map<String, ManagedRepositoryConfiguration> map = new java.util.HashMap<String, ManagedRepositoryConfiguration>();
- if ( managedRepositories != null )
- {
- for ( java.util.Iterator<ManagedRepositoryConfiguration> 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<ManagedRepositoryConfiguration> i = managedRepositories.iterator(); i.hasNext(); )
- {
- ManagedRepositoryConfiguration repo = i.next();
- if ( repo.getId().equals( id ) )
- {
- return repo;
- }
- }
- }
- return null;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
-
- <!--
- ____ _ _
- | _ \ ___ _ __ ___ ___(_) |_ ___ _ __ _ _
- | |_) / _ \ '_ \ / _ \/ __| | __/ _ \| '__| | | |
- | _ < __/ |_) | (_) \__ \ | || (_) | | | |_| |
- |_| \_\___| .__/ \___/|___/_|\__\___/|_| \__, |
- |_| |___/
-
- -->
-
- <class>
- <name>AbstractRepositoryConfiguration</name>
- <version>1.0.0+</version>
- <abstract>true</abstract>
- <fields>
- <field>
- <name>id</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The repository identifier.
- </description>
- </field>
- <field>
- <name>type</name>
- <version>3.0.0+</version>
- <type>String</type>
- <required>true</required>
- <defaultValue>MAVEN</defaultValue>
- <description>
- The repository type. Currently only MAVEN type is known.
- </description>
- </field>
- <field>
- <name>name</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The descriptive name of the repository.
- </description>
- </field>
- <field>
- <name>layout</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The layout of the repository. Valid values are "default" and "legacy".
- </description>
- <!-- TODO: should be able to detect this from the repository (perhaps by metadata at the root) -->
- <defaultValue>default</defaultValue>
- </field>
- <field>
- <name>indexDir</name>
- <version>1.0.0+</version>
- <type>String</type>
- <defaultValue></defaultValue>
- <description>
- The directory for the indexes of this repository.
- </description>
- </field>
- <field>
- <name>packedIndexDir</name>
- <version>3.0.0+</version>
- <type>String</type>
- <defaultValue></defaultValue>
- <description>
- The directory for the packed indexes of this repository.
- </description>
- </field>
- <field>
- <name>description</name>
- <version>1.0.0+</version>
- <type>String</type>
- <defaultValue></defaultValue>
- <description>
- The description of this repository.
- </description>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- public int hashCode()
- {
- int result = 17;
- result = 37 * result + ( id != null ? id.hashCode() : 0 );
- return result;
- }
-
- public boolean equals( Object other )
- {
- if ( this == other )
- {
- return true;
- }
-
- if ( !( other instanceof AbstractRepositoryConfiguration ) )
- {
- return false;
- }
-
- AbstractRepositoryConfiguration that = (AbstractRepositoryConfiguration) other;
- boolean result = true;
- result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
- return result;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
- <class>
- <name>RemoteRepositoryConfiguration</name>
- <version>1.0.0+</version>
- <superClass>AbstractRepositoryConfiguration</superClass>
- <fields>
- <field>
- <name>url</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The URL for this repository.
- </description>
- </field>
- <field>
- <name>username</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- The Username for this repository.
- </description>
- </field>
- <field>
- <name>password</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- The Password for this repository.
- </description>
- </field>
- <field>
- <name>timeout</name>
- <version>1.0.1+</version>
- <type>int</type>
- <description>
- Timeout in seconds for connections to this repository
- </description>
- <defaultValue>60</defaultValue>
- </field>
- <field>
- <name>refreshCronExpression</name>
- <version>1.4.0+</version>
- <type>String</type>
- <description>
- When to run the refresh task.
- Default is every sunday at 8H00.
- </description>
- <defaultValue>0 0 08 ? * SUN</defaultValue>
- </field>
- <field>
- <name>downloadRemoteIndex</name>
- <version>1.4.0+</version>
- <type>boolean</type>
- <description>
- Activate download of remote index if remoteIndexUrl is set too.
- </description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>remoteIndexUrl</name>
- <version>1.4.0+</version>
- <type>String</type>
- <description>
- Remote Index Url : if not starting with http will be relative to the remote repository url.
- </description>
- </field>
- <field>
- <name>remoteDownloadNetworkProxyId</name>
- <version>1.4.0+</version>
- <type>String</type>
- <description>
- Id of the networkProxy to use when downloading remote index.
- </description>
- </field>
- <field>
- <name>remoteDownloadTimeout</name>
- <version>1.4.0+</version>
- <type>int</type>
- <description>
- Timeout in seconds for download remote index. Default is more long than artifact download.
- </description>
- <defaultValue>300</defaultValue>
- </field>
- <field>
- <name>downloadRemoteIndexOnStartup</name>
- <version>1.4.0+</version>
- <type>boolean</type>
- <description>
- Schedule download of remote index when archiva start
- </description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>extraParameters</name>
- <version>1.4.0+</version>
- <type>Map</type>
- <description>Additionnal request parameters to add to url when requesting remote repositories.</description>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>extraHeaders</name>
- <version>1.4.0+</version>
- <type>Map</type>
- <description>Additional http headers to add to url when requesting remote repositories.</description>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>checkPath</name>
- <version>1.4.2+</version>
- <type>String</type>
- <description>The path to check the repository availability (relative to the repository URL). Some repositories do not allow browsing, so a certain artifact must be checked.</description>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- public String toString()
- {
- return "RemoteRepositoryConfiguration id:'" + getId() + "',name:'" + getName() +"'";
- }
-
-
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
- <class>
- <name>ManagedRepositoryConfiguration</name>
- <version>1.0.0+</version>
- <superClass>AbstractRepositoryConfiguration</superClass>
- <fields>
- <field>
- <name>location</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The file system location for this repository.
- </description>
- </field>
- <field>
- <name>releases</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>True if this repository contains release versioned artifacts.</description>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>blockRedeployments</name>
- <version>1.3.0+</version>
- <type>boolean</type>
- <description>True if re-deployment of artifacts already in the repository will be blocked.</description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>snapshots</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>True if this repository contains snapshot versioned artifacts.</description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>scanned</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>True if this repository should be scanned and processed.</description>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>refreshCronExpression</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- When to run the refresh task.
- Default is every hour
- </description>
- <defaultValue>0 0 * * * ?</defaultValue>
- </field>
- <field>
- <name>retentionCount</name>
- <version>1.0.0+</version>
- <type>int</type>
- <description>
- The total count of the artifact to be retained for each snapshot.
- </description>
- <defaultValue>2</defaultValue>
- </field>
- <field>
- <name>retentionPeriod</name>
- <version>1.0.0+</version>
- <type>int</type>
- <description>
- The number of days after which snapshots will be removed.
- </description>
- <defaultValue>100</defaultValue>
- </field>
- <field>
- <name>deleteReleasedSnapshots</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>
- True if the released snapshots are to be removed from the repo during repository purge.
- </description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>skipPackedIndexCreation</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>
- True to not generate packed index (note you won't be able to export your index.
- </description>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>stageRepoNeeded</name>
- <version>1.0.0+</version>
- <type>boolean</type>
- <description>
- Need a staging repository
- </description>
- <defaultValue>false</defaultValue>
- </field>
- </fields>
- </class>
-
- <class>
- <name>LegacyArtifactPath</name>
- <version>1.1.0+</version>
- <fields>
- <field>
- <name>path</name>
- <version>1.1.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The legacy path.
- </description>
- </field>
- <field>
- <name>artifact</name>
- <version>1.1.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The artifact reference, as " [groupId] : [artifactId] : [version] : [classifier] : [type] ".
- </description>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- public boolean match( String path )
- {
- return path.equals( this.path );
- }
-
- public String getGroupId()
- {
- return artifact.split( ":" )[0];
- }
-
- public String getArtifactId()
- {
- return artifact.split( ":" )[1];
- }
-
- public String getVersion()
- {
- return artifact.split( ":" )[2];
- }
-
- public String getClassifier()
- {
- String classifier = artifact.split( ":" )[3];
- return classifier.length() > 0 ? classifier : null;
- }
-
- public String getType()
- {
- return artifact.split( ":" )[4];
- }
-
- @Override
- public boolean equals( Object o )
- {
- if ( this == o )
- {
- return true;
- }
- if ( o == null || getClass() != o.getClass() )
- {
- return false;
- }
-
- LegacyArtifactPath that = (LegacyArtifactPath) o;
-
- if ( path != null ? !path.equals( that.path ) : that.path != null )
- {
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode()
- {
- return path != null ? 37 + path.hashCode() : 0;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
- <class>
- <name>RepositoryGroupConfiguration</name>
- <version>1.2.0+</version>
- <fields>
- <field>
- <name>id</name>
- <version>1.2.0+</version>
- <type>String</type>
- <required>true</required>
- <description>The id of the repository group.</description>
- </field>
- <field>
- <name>mergedIndexPath</name>
- <version>1.2.0+</version>
- <type>String</type>
- <required>false</required>
- <defaultValue>.indexer</defaultValue>
- <description>The path of the merged index.</description>
- </field>
- <field>
- <name>mergedIndexTtl</name>
- <version>1.4.0+</version>
- <type>int</type>
- <required>false</required>
- <defaultValue>30</defaultValue>
- <description>The time to live of the merged index of the repository group.</description>
- </field>
- <field>
- <name>cronExpression</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- When to run the index merging for this group.
- No default value.
- </description>
- <defaultValue></defaultValue>
- </field>
- <field>
- <name>repositories</name>
- <version>1.2.0+</version>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>The list of repository ids under the group.</description>
- </field>
- </fields>
- </class>
- <class>
- <name>RepositoryCheckPath</name>
- <version>1.4.2+</version>
- <fields >
- <field >
- <name>url</name>
- <version>1.4.2+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The URL for which this path should be used
- </description>
- </field>
- <field>
- <name>path</name>
- <version>1.4.2+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The path to use for checking the repository connection.
- </description>
- </field>
- </fields>
- </class>
-
- <!--
- ____ _
- / ___|___ _ __ _ __ ___ ___| |_ ___ _ __ ___
- | | / _ \| '_ \| '_ \ / _ \/ __| __/ _ \| '__/ __|
- | |__| (_) | | | | | | | __/ (__| || (_) | | \__ \
- \____\___/|_| |_|_| |_|\___|\___|\__\___/|_| |___/
-
- -->
-
- <class>
- <name>AbstractRepositoryConnectorConfiguration</name>
- <abstract>true</abstract>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>sourceRepoId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The Repository Source for this connector.
- </description>
- </field>
- <field>
- <name>targetRepoId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <required>true</required>
- <description>
- The Repository Target for this connector.
- </description>
- </field>
- <field>
- <name>proxyId</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- The network proxy ID to use for this connector.
- </description>
- </field>
- <field>
- <name>blackListPatterns</name>
- <version>1.0.0+</version>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of blacklisted patterns for this connector.
- </description>
- </field>
- <field>
- <name>whiteListPatterns</name>
- <version>1.0.0+</version>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of whitelisted patterns for this connector.
- </description>
- </field>
- <field>
- <name>policies</name>
- <version>1.0.0+</version>
- <type>Map</type>
- <description>Policy configuration for the connector.</description>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>properties</name>
- <version>1.0.0+</version>
- <type>Map</type>
- <description>Configuration for the connector.</description>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>disabled</name>
- <version>1.2+</version>
- <description>
- If the the repository proxy connector is disabled or not
- </description>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- /**
- * Obtain a specific policy from the underlying connector.
- *
- * @param policyId the policy id to fetch.
- * @param defaultValue the default value for the policy id.
- * @return the configured policy value (or default value if not found).
- */
- public String getPolicy( String policyId, String defaultValue )
- {
- if ( this.getPolicies() == null )
- {
- return null;
- }
-
- Object value = this.getPolicies().get( policyId );
-
- if ( value == null )
- {
- return defaultValue;
- }
-
- return (String) value;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
-
- <class>
- <name>ProxyConnectorRuleConfiguration</name>
- <version>1.4.0+</version>
- <fields>
- <field>
- <name>ruleType</name>
- <version>1.4.0+</version>
- <type>String</type>
- <description>
- The type if this rule: whiteList, blackList etc..
- </description>
- </field>
- <field>
- <name>pattern</name>
- <version>1.4.0+</version>
- <type>String</type>
- <description>
- The pattern for this rule: whiteList, blackList etc..
- </description>
- </field>
- <field>
- <name>proxyConnectors</name>
- <version>1.4.0+</version>
- <description>Associated proxyConnectors configuration.</description>
- <association>
- <type>ProxyConnectorConfiguration</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <superClass>AbstractRepositoryConnectorConfiguration</superClass>
- <name>ProxyConnectorConfiguration</name>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>order</name>
- <version>1.0.0+</version>
- <description>
- The order of the proxy connectors. (0 means no order specified)
- </description>
- <type>int</type>
- <defaultValue>0</defaultValue>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- /**
- * The order id for UNORDERED
- */
- public static final int UNORDERED = 0;
-
- /**
- * The policy key {@link #getPolicies()} for error handling.
- * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_PROPAGATE_ERRORS = "propagate-errors";
-
- /**
- * The policy key {@link #getPolicies()} for error handling when an artifact is present.
- * See {@link org.apache.archiva.policies.DownloadErrorPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_PROPAGATE_ERRORS_ON_UPDATE = "propagate-errors-on-update";
-
- /**
- * The policy key {@link #getPolicies()} for snapshot handling.
- * See {@link org.apache.archiva.policies.SnapshotsPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_SNAPSHOTS = "snapshots";
-
- /**
- * The policy key {@link #getPolicies()} for releases handling.
- * See {@link org.apache.archiva.policies.ReleasesPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_RELEASES = "releases";
-
- /**
- * The policy key {@link #getPolicies()} for checksum handling.
- * See {@link org.apache.archiva.policies.ChecksumPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_CHECKSUM = "checksum";
-
- /**
- * The policy key {@link #getPolicies()} for cache-failures handling.
- * See {@link org.apache.archiva.policies.CachedFailuresPolicy}
- * for details on potential values to this policy key.
- */
- public static final String POLICY_CACHE_FAILURES = "cache-failures";
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
-
- <class>
- <superClass>AbstractRepositoryConnectorConfiguration</superClass>
- <name>SyncConnectorConfiguration</name>
- <abstract>true</abstract>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>cronExpression</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>When to run the sync mechanism. Default is every hour on the hour.</description>
- <defaultValue>0 0 * * * ?</defaultValue>
- </field>
- <field>
- <name>method</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>The type of synchronization to use.</description>
- <defaultValue>rsync</defaultValue>
- </field>
- </fields>
- </class>
-
- <!--
- ____ _
- | _ \ _ __ _____ _(_) ___ ___
- | |_) | '__/ _ \ \/ / |/ _ \/ __|
- | __/| | | (_) > <| | __/\__ \
- |_| |_| \___/_/\_\_|\___||___/
-
- -->
-
- <class>
- <name>NetworkProxyConfiguration</name>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>id</name>
- <version>1.0.0+</version>
- <type>String</type>
- <description>
- The ID for this proxy.
- </description>
- </field>
- <field>
- <name>protocol</name>
- <version>1.0.0+</version>
- <description>
- The network protocol to use with this proxy: "http", "socks-4"
- </description>
- <type>String</type>
- <required>true</required>
- <defaultValue>http</defaultValue>
- </field>
- <field>
- <name>host</name>
- <version>1.0.0+</version>
- <description>
- The proxy host.
- </description>
- <type>String</type>
- <required>true</required>
- </field>
- <field>
- <name>port</name>
- <version>1.0.0+</version>
- <description>
- The proxy port.
- </description>
- <type>int</type>
- <defaultValue>8080</defaultValue>
- </field>
- <field>
- <name>username</name>
- <version>1.0.0+</version>
- <description>
- The proxy user.
- </description>
- <type>String</type>
- </field>
- <field>
- <name>password</name>
- <version>1.0.0+</version>
- <description>
- The proxy password.
- </description>
- <type>String</type>
- </field>
- <field>
- <name>useNtlm</name>
- <version>1.0.0+</version>
- <description>
- Use ntlm authentification.
- </description>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
- public int hashCode()
- {
- int result = 17;
- result = 37 * result + ( id != null ? id.hashCode() : 0 );
- return result;
- }
-
- public boolean equals( Object other )
- {
- if ( this == other )
- {
- return true;
- }
-
- if ( !( other instanceof NetworkProxyConfiguration ) )
- {
- return false;
- }
-
- NetworkProxyConfiguration that = (NetworkProxyConfiguration) other;
- boolean result = true;
- result = result && ( getId() == null ? that.getId() == null : getId().equals( that.getId() ) );
- return result;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
-
-
-
- </class>
-
- <!--
- ____ _
- / ___| ___ __ _ _ __ _ __ (_)_ __ __ _
- \___ \ / __/ _` | '_ \| '_ \| | '_ \ / _` |
- ___) | (_| (_| | | | | | | | | | | | (_| |
- |____/ \___\__,_|_| |_|_| |_|_|_| |_|\__, |
- |___/
-
- -->
- <class>
- <name>RepositoryScanningConfiguration</name>
- <version>1.0.0+</version>
- <fields>
- <field>
- <name>fileTypes</name>
- <version>1.0.0+</version>
- <required>true</required>
- <association>
- <type>FileType</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The FileTypes for the repository scanning configuration.
- </description>
- </field>
- <field>
- <name>knownContentConsumers</name>
- <version>1.0.0+</version>
- <required>true</required>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of active consumers IDs for known content.
- </description>
- </field>
- <field>
- <name>invalidContentConsumers</name>
- <version>1.0.0+</version>
- <required>true</required>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- <description>
- The list of active consumer IDs for invalid content.
- </description>
- </field>
- </fields>
- </class>
- <class>
- <name>FileType</name>
- <version>1.0.0+</version>
- <description>The FileType object</description>
- <fields>
- <field>
- <name>id</name>
- <version>1.0.0+</version>
- <required>true</required>
- <type>String</type>
- </field>
- <field>
- <name>patterns</name>
- <version>1.0.0+</version>
- <required>true</required>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- </fields>
- <codeSegments>
- <codeSegment>
- <version>1.0.0+</version>
- <code><![CDATA[
-
- @Override
- public boolean equals( Object o )
- {
- if ( this == o )
- {
- return true;
- }
- if ( o == null || getClass() != o.getClass() )
- {
- return false;
- }
-
- FileType fileType = (FileType) o;
-
- if ( id != null ? !id.equals( fileType.id ) : fileType.id != null )
- {
- return false;
- }
-
- return true;
- }
-
- @Override
- public int hashCode()
- {
- return id != null ? 37 + id.hashCode() : 0;
- }
- ]]></code>
- </codeSegment>
- </codeSegments>
- </class>
-
- <!--
- __ _______ ____ _ ____ ____
- \ \ / / ____| __ ) / \ | _ \| _ \
- \ \ /\ / /| _| | _ \ / _ \ | |_) | |_) |
- \ V V / | |___| |_) / ___ \| __/| __/
- \_/\_/ |_____|____/_/ \_\_| |_|
-
- -->
-
- <class>
- <name>OrganisationInformation</name>
- <version>1.1.0+</version>
- <description>
- The organisation information settings.
- </description>
- <fields>
- <field>
- <name>name</name>
- <description>name of the organisation</description>
- <version>1.1.0+</version>
- <association>
- <type>String</type>
- </association>
- </field>
- <field>
- <name>url</name>
- <description>name of the organisation</description>
- <version>1.1.0+</version>
- <association>
- <type>String</type>
- </association>
- </field>
- <field>
- <name>logoLocation</name>
- <description>name of the organisation</description>
- <version>1.1.0+</version>
- <association>
- <type>String</type>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <name>WebappConfiguration</name>
- <version>1.0.0+</version>
- <description>
- The webapp configuration settings.
- </description>
- <fields>
- <field>
- <name>ui</name>
- <description>options for altering the ui presentation</description>
- <version>1.0.0+</version>
- <association>
- <type>UserInterfaceOptions</type>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <name>UserInterfaceOptions</name>
- <version>1.0.0+</version>
- <description>
- The user interface configuration settings.
- </description>
- <fields>
- <field>
- <name>showFindArtifacts</name>
- <description>true if find artifacts should be enabled</description>
- <version>1.0.0+</version>
- <type>boolean</type>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>appletFindEnabled</name>
- <description>true if applet behavior for find artifacts should be enabled</description>
- <version>1.0.0+</version>
- <type>boolean</type>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>disableEasterEggs</name>
- <version>1.3.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>applicationUrl</name>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>disableRegistration</name>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- </fields>
- </class>
-
- <class>
- <name>NetworkConfiguration</name>
- <version>1.4.0+</version>
- <description>
- The network configuration for external http request to repositories.
- </description>
- <fields>
- <field>
- <name>maxTotal</name>
- <description>maximum total external http connections.</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>30</defaultValue>
- </field>
- <field>
- <name>maxTotalPerHost</name>
- <description>maximum total external http connections per host</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>30</defaultValue>
- </field>
- <field>
- <name>usePooling</name>
- <description>use or not http connection pooling default true</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>true</defaultValue>
- </field>
- </fields>
- </class>
-
- <class>
- <name>ArchivaRuntimeConfiguration</name>
- <version>1.4.0+</version>
- <description>
- The runtime configuration.
- </description>
- <fields>
- <field>
- <name>urlFailureCacheConfiguration</name>
- <description>the url failure cache configuration</description>
- <version>1.4.0+</version>
- <association>
- <type>CacheConfiguration</type>
- </association>
- </field>
- <field>
- <name>fileLockConfiguration</name>
- <description>the FileLocking configuration</description>
- <version>1.4.0+</version>
- <association>
- <type>FileLockConfiguration</type>
- </association>
- </field>
- <field>
- <name>dataDirectory</name>
- <version>3.0.0+</version>
- <description>The base directory where the archiva data is stored. If not set, the appserver.base is used.</description>
- <type>String</type>
- <required>false</required>
- </field>
- <field>
- <name>repositoryBaseDirectory</name>
- <version>3.0.0+</version>
- <description>The base directory for local storage of repository data. If not set, it's ${dataDirectory}/repositories.</description>
- <type>String</type>
- <required>false</required>
- </field>
- <field>
- <name>remoteRepositoryBaseDirectory</name>
- <version>3.0.0+</version>
- <description>The base directory for local storage of remote repository data. If not set, it's ${dataDirectory}/remotes.</description>
- <type>String</type>
- <required>false</required>
- </field>
- <field>
- <name>defaultLanguage</name>
- <type>String</type>
- <version>3.0.0+</version>
- <defaultValue>en-US</defaultValue>
- <description>The default language used for setting internationalized strings.</description>
- </field>
- <field>
- <name>languageRange</name>
- <type>String</type>
- <version>3.0.0+</version>
- <defaultValue>en,fr,de</defaultValue>
- <description>Comma separated list of language patterns. Sorted by priority descending. Used for display of internationalized strings.</description>
- </field>
- </fields>
- </class>
-
- <class>
- <name>RedbackRuntimeConfiguration</name>
- <version>1.4.0+</version>
- <description>
- The redback runtime configuration.
- </description>
- <fields>
- <field>
- <name>migratedFromRedbackConfiguration</name>
- <description>flag to know if redback configuration has been checked/migrated.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>userManagerImpls</name>
- <description>The user manager impls to use.</description>
- <version>1.4.0+</version>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>rbacManagerImpls</name>
- <description>The RBAC Manager impls to use.</description>
- <version>1.4.0+</version>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>ldapConfiguration</name>
- <description>the ldap configuration</description>
- <version>1.4.0+</version>
- <association>
- <type>LdapConfiguration</type>
- </association>
- </field>
- <field>
- <name>ldapGroupMappings</name>
- <description>LdapGroupMappings</description>
- <version>1.4.0+</version>
- <association>
- <type>LdapGroupMapping</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>configurationProperties</name>
- <description>extra properties for redback configuration. String/String</description>
- <version>1.4.0+</version>
- <type>Map</type>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- <field>
- <name>useUsersCache</name>
- <description>flag to know if redback will use a cache to prevent searching users already found.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>usersCacheConfiguration</name>
- <description>the users cache configuration</description>
- <version>1.4.0+</version>
- <association>
- <type>CacheConfiguration</type>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <name>ArchivaDefaultConfiguration</name>
- <version>1.4.2+</version>
- <description>
- Archiva default settings.
- </description>
- <fields>
- <field>
- <name>defaultCheckPaths</name>
- <description>The default check paths for certain remote repositories</description>
- <version>1.4.2+</version>
- <association>
- <type>RepositoryCheckPath</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <name>LdapConfiguration</name>
- <version>1.4.0+</version>
- <description>
- The LDAP configuration.
- </description>
- <fields>
- <field>
- <name>hostName</name>
- <description>The LDAP host.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>port</name>
- <description>The LDAP port.</description>
- <version>1.4.0+</version>
- <type>int</type>
- </field>
- <field>
- <name>ssl</name>
- <description>ssl LDAP connection.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>baseDn</name>
- <description>The LDAP base dn.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>baseGroupsDn</name>
- <description>The LDAP base dn for groups (if empty baseDn is used).</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>contextFactory</name>
- <description>contextFactory to use.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>bindDn</name>
- <description>The LDAP bind dn.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>password</name>
- <description>The LDAP password.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>authenticationMethod</name>
- <description>The LDAP authenticationMethod.</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>bindAuthenticatorEnabled</name>
- <description>The LDAP authenticator enabled.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>writable</name>
- <description>LDAP writable.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>useRoleNameAsGroup</name>
- <description>Will use role name as LDAP group.</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>false</defaultValue>
- </field>
- <field>
- <name>extraProperties</name>
- <version>1.4.0+</version>
- <type>Map</type>
- <description>Additional properties to use for ldap connection.</description>
- <association xml.mapStyle="inline">
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- </fields>
- </class>
-
- <class>
- <name>FileLockConfiguration</name>
- <version>1.4.0+</version>
- <description>File Locking configuration.</description>
- <fields>
- <field>
- <name>skipLocking</name>
- <description>skipping the locking mechanism</description>
- <version>1.4.0+</version>
- <type>boolean</type>
- <defaultValue>true</defaultValue>
- </field>
- <field>
- <name>lockingTimeout</name>
- <description>maximum time to wait to get the file lock (0 infinite)</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>0</defaultValue>
- </field>
- </fields>
- </class>
-
- <class>
- <name>CacheConfiguration</name>
- <version>1.4.0+</version>
- <description>Cache configuration.</description>
- <fields>
- <field>
- <name>timeToIdleSeconds</name>
- <description>TimeToIdleSeconds</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>-1</defaultValue>
- </field>
- <field>
- <name>timeToLiveSeconds</name>
- <description>TimeToLiveSeconds</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>-1</defaultValue>
- </field>
- <field>
- <name>maxElementsInMemory</name>
- <description>max elements in memory</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>-1</defaultValue>
- </field>
- <field>
- <name>maxElementsOnDisk</name>
- <description>max elements on disk</description>
- <version>1.4.0+</version>
- <type>int</type>
- <defaultValue>-1</defaultValue>
- </field>
- </fields>
- </class>
-
- <class>
- <name>LdapGroupMapping</name>
- <version>1.4.0+</version>
- <description>configuration of a LDAP group to Archiva roles</description>
- <fields>
- <field>
- <name>group</name>
- <description>LDAP Group</description>
- <version>1.4.0+</version>
- <type>String</type>
- </field>
- <field>
- <name>roleNames</name>
- <version>1.4.0+</version>
- <description>Archiva roles.</description>
- <association>
- <type>String</type>
- <multiplicity>*</multiplicity>
- </association>
- </field>
- </fields>
- </class>
-
- </classes>
- </model>
-
-
|