From: Maria Odea B. Ching Date: Fri, 18 Apr 2008 04:38:48 +0000 (+0000) Subject: [MRM-694] X-Git-Tag: archiva-r676265~180 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fada72428ff488944372047ad53df0ce3ce981a4;p=archiva.git [MRM-694] changes by Nap Ramirez, Maria Catherine Tan, Henry Isidro, Brett Porter and myself -add repositoryGroups in configuration -updated ArchivaConfiguration and added test for this change git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@649364 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-base/archiva-configuration/pom.xml b/archiva-modules/archiva-base/archiva-configuration/pom.xml index f5bb1c9f7..3833eddf0 100644 --- a/archiva-modules/archiva-base/archiva-configuration/pom.xml +++ b/archiva-modules/archiva-base/archiva-configuration/pom.xml @@ -87,7 +87,7 @@ - 1.1.0 + 1.2.0 src/main/mdo/configuration.mdo diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java index cc8636531..2e86bde8d 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/maven/archiva/configuration/DefaultArchivaConfiguration.java @@ -416,7 +416,7 @@ public class DefaultArchivaConfiguration if ( key.startsWith( "repositories" ) || key.startsWith( "proxyConnectors" ) || key.startsWith( "networkProxies" ) || key.startsWith( "repositoryScanning" ) || key.startsWith( "databaseScanning" ) || key.startsWith( "remoteRepositories" ) - || key.startsWith( "managedRepositories" ) ) + || key.startsWith( "managedRepositories" ) || key.startsWith( "repositoryGroups" ) ) { foundList = true; } @@ -455,6 +455,10 @@ public class DefaultArchivaConfiguration { section.removeSubset( "legacyArtifactPaths" ); } + if ( configuration.getRepositoryGroups().isEmpty() ) + { + section.removeSubset( "repositoryGroups" ); + } if ( configuration.getRepositoryScanning() != null ) { if ( configuration.getRepositoryScanning().getKnownContentConsumers().isEmpty() ) diff --git a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo index 773674384..041e3b8f2 100644 --- a/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo +++ b/archiva-modules/archiva-base/archiva-configuration/src/main/mdo/configuration.mdo @@ -56,6 +56,15 @@ * + + repositoryGroups + 1.2.0+ + + RepositoryGroupConfiguration + * + + The list of repository groups. + managedRepositories 1.0.0+ @@ -511,6 +520,28 @@ + + 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. + + +