From 4d1ac081177e251d2192cd6f4dff6d9f920a2f21 Mon Sep 17 00:00:00 2001 From: Trygve Laugstol Date: Tue, 31 Aug 2004 11:47:13 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163022 13f79535-47bb-0310-9956-ffa450edef68 --- maven-repository-tools/pom.xml | 2 +- .../maven/converter/Maven1Repository.java | 2 +- .../maven/converter/Maven2Repository.java | 16 +++- .../maven/converter/MavenRepository.java | 2 + .../maven/converter/PomV3ToV4Converter.java | 7 +- .../apache/maven/converter/RepoReaper.java | 14 ++- .../apache/maven/converter/{ => old}/Fix.java | 2 +- .../maven/converter/{ => old}/Fix2.java | 2 +- .../{ => old}/MavenPomConverter.java | 2 +- .../{ => old}/MavenPomConverterCli.java | 2 +- .../MavenPomConvertionException.java | 2 +- .../converter/project/Model300Converter.java | 41 --------- .../project/ModelConversionException.java | 40 --------- .../converter/project/ModelConverter.java | 39 --------- .../maven/converter/tmp/Dependency.java | 85 ------------------ .../apache/maven/converter/tmp/Project.java | 86 ------------------- .../resources/META-INF/plexus/components.xml | 19 ++++ .../apache/maven/converter/ReaperTest.java | 7 ++ 18 files changed, 64 insertions(+), 306 deletions(-) rename maven-repository-tools/src/main/java/org/apache/maven/converter/{ => old}/Fix.java (98%) rename maven-repository-tools/src/main/java/org/apache/maven/converter/{ => old}/Fix2.java (98%) rename maven-repository-tools/src/main/java/org/apache/maven/converter/{ => old}/MavenPomConverter.java (97%) rename maven-repository-tools/src/main/java/org/apache/maven/converter/{ => old}/MavenPomConverterCli.java (97%) rename maven-repository-tools/src/main/java/org/apache/maven/converter/{ => old}/MavenPomConvertionException.java (96%) delete mode 100644 maven-repository-tools/src/main/java/org/apache/maven/converter/project/Model300Converter.java delete mode 100644 maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConversionException.java delete mode 100644 maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConverter.java delete mode 100644 maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Dependency.java delete mode 100644 maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Project.java create mode 100644 maven-repository-tools/src/main/resources/META-INF/plexus/components.xml diff --git a/maven-repository-tools/pom.xml b/maven-repository-tools/pom.xml index 2a7e027825..978260f222 100644 --- a/maven-repository-tools/pom.xml +++ b/maven-repository-tools/pom.xml @@ -34,7 +34,7 @@ plexus plexus - 0.14-SNAPSHOT + 0.17-SNAPSHOT diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven1Repository.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven1Repository.java index 17397d959c..ca6753945a 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven1Repository.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven1Repository.java @@ -23,7 +23,7 @@ public class Maven1Repository public Iterator getArtifactsByType( String type ) throws Exception { - List files = FileUtils.getFiles( getRepository(), "*/" + type + "s/*." + type, "" ); + List files = FileUtils.getFiles( getRepository(), "tambora*/" + type + "s/*." + type, "" ); Collections.sort( files ); diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven2Repository.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven2Repository.java index d9b39d3b0e..874b6a4e32 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven2Repository.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/Maven2Repository.java @@ -14,6 +14,10 @@ import java.io.Writer; import java.security.MessageDigest; import java.util.Iterator; +import org.apache.maven.artifact.Artifact; +import org.apache.maven.artifact.DefaultArtifact; +import org.apache.maven.artifact.installer.ArtifactInstaller; +import org.apache.maven.artifact.repository.ArtifactRepository; import org.apache.maven.model.Model; import org.apache.maven.model.io.xpp3.MavenXpp3Writer; @@ -27,15 +31,21 @@ import org.codehaus.plexus.util.IOUtil; public class Maven2Repository extends AbstractMavenRepository { + private ArtifactInstaller installer; + public Iterator getArtifactsByType( String type ) throws Exception { throw new Exception( "Not implemented." ); } - public void installArtifact( File artifact, Model model ) + public void installArtifact( File artifactFile, Model model ) throws Exception { + ArtifactRepository repository = new ArtifactRepository(); + + repository.setBasedir( getRepository().getAbsolutePath() ); +/* String type = model.getType(); if ( type.equals( "jar" ) ) @@ -46,6 +56,10 @@ public class Maven2Repository { throw new Exception( "This installer can only handle jars." ); } +*/ + Artifact artifact = new DefaultArtifact( model.getGroupId(), model.getArtifactId(), model.getVersion(), model.getType() ); + + installer.install( artifactFile, artifact, repository ); } public String getPomForArtifact( String artifactPath ) diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenRepository.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenRepository.java index 176d0ae72e..6682e7b349 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenRepository.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenRepository.java @@ -15,6 +15,8 @@ import org.apache.maven.model.Model; */ public interface MavenRepository { + String ROLE = MavenRepository.class.getName(); + void setRepository( File repository ); File getRepository(); diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/PomV3ToV4Converter.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/PomV3ToV4Converter.java index bf90e3d129..5d9b797847 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/PomV3ToV4Converter.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/PomV3ToV4Converter.java @@ -51,7 +51,7 @@ import org.apache.maven.model.Site; import org.apache.maven.model.SourceModification; import org.apache.maven.model.UnitTest; import org.apache.maven.model.io.xpp3.MavenXpp3Writer; -import org.apache.maven.model.v300.io.xpp3.MavenV300Xpp3Reader; +import org.apache.maven.model.v300.io.xpp3.MavenXpp3Reader; import org.codehaus.plexus.util.FileUtils; @@ -791,12 +791,13 @@ public class PomV3ToV4Converter private org.apache.maven.model.v300.Model loadV3Pom( File inputFile ) throws Exception { - MavenV300Xpp3Reader v3Reader = new MavenV300Xpp3Reader(); + MavenXpp3Reader v3Reader = new MavenXpp3Reader(); org.apache.maven.model.v300.Model model; model = v3Reader.read( new FileReader( inputFile ) ); +/* String id = model.getId(); String groupId = model.getGroupId(); @@ -842,7 +843,7 @@ public class PomV3ToV4Converter model.setArtifactId( artifactId ); } } - +*/ return model; } diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/RepoReaper.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/RepoReaper.java index 5d01d68293..9250ded58a 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/RepoReaper.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/RepoReaper.java @@ -21,16 +21,14 @@ import java.util.Iterator; import org.apache.maven.model.Model; +import org.codehaus.plexus.embed.ArtifactEnabledEmbedder; + /** * @author Trygve Laugstøl * @version $Id$ */ public class RepoReaper { - MavenRepository inRepository = new Maven1Repository(); - - MavenRepository outRepository = new Maven2Repository(); - public static void main( String[] args ) throws Exception { @@ -65,6 +63,14 @@ public class RepoReaper public void work( File inbase, File outbase ) throws Exception { + ArtifactEnabledEmbedder embedder = new ArtifactEnabledEmbedder(); + + embedder.start(); + + MavenRepository inRepository = (MavenRepository)embedder.lookup( MavenRepository.ROLE, "maven1" ); + + MavenRepository outRepository = (MavenRepository)embedder.lookup( MavenRepository.ROLE, "maven2" ); + inRepository.setRepository( inbase ); System.out.println( "Input basedir: " + inbase.getAbsolutePath() ); diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/Fix.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix.java similarity index 98% rename from maven-repository-tools/src/main/java/org/apache/maven/converter/Fix.java rename to maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix.java index f8e3973518..b344bae26d 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/Fix.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix.java @@ -1,4 +1,4 @@ -package org.apache.maven.converter; +package org.apache.maven.converter.old; /* ==================================================================== * Copyright 2001-2004 The Apache Software Foundation. diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/Fix2.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix2.java similarity index 98% rename from maven-repository-tools/src/main/java/org/apache/maven/converter/Fix2.java rename to maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix2.java index fc2d97689a..fb51e4e7d9 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/Fix2.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/Fix2.java @@ -1,4 +1,4 @@ -package org.apache.maven.converter; +package org.apache.maven.converter.old; /* ==================================================================== * Copyright 2001-2004 The Apache Software Foundation. diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverter.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverter.java similarity index 97% rename from maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverter.java rename to maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverter.java index 97362e31f5..167f1ae5dd 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverter.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverter.java @@ -1,4 +1,4 @@ -package org.apache.maven.converter; +package org.apache.maven.converter.old; /* * Copyright 2001-2004 The Apache Software Foundation. diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverterCli.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverterCli.java similarity index 97% rename from maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverterCli.java rename to maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverterCli.java index cae79403bd..4853b167a2 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConverterCli.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConverterCli.java @@ -1,4 +1,4 @@ -package org.apache.maven.converter; +package org.apache.maven.converter.old; /* * Copyright 2001-2004 The Apache Software Foundation. diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConvertionException.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConvertionException.java similarity index 96% rename from maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConvertionException.java rename to maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConvertionException.java index c672527f1c..79a7faccb5 100644 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/MavenPomConvertionException.java +++ b/maven-repository-tools/src/main/java/org/apache/maven/converter/old/MavenPomConvertionException.java @@ -1,4 +1,4 @@ -package org.apache.maven.converter; +package org.apache.maven.converter.old; /* * Copyright 2001-2004 The Apache Software Foundation. diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/Model300Converter.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/project/Model300Converter.java deleted file mode 100644 index 514d4dd81c..0000000000 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/Model300Converter.java +++ /dev/null @@ -1,41 +0,0 @@ -package org.apache.maven.converter.project; - -/* - * Copyright (c) 2004, Jason van Zyl and Trygve Laugstøl - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - * of the Software, and to permit persons to whom the Software is furnished to do - * so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -/** - * @author Trygve Laugstøl - * @version $Id$ - */ -public class Model300Converter - implements ModelConverter -{ - // ---------------------------------------------------------------------- - // ModelConverter Implementation - // ---------------------------------------------------------------------- - - public Object convert( Object fromModel ) - throws ModelConversionException - { - return null; - } -} diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConversionException.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConversionException.java deleted file mode 100644 index 920e3bffa9..0000000000 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConversionException.java +++ /dev/null @@ -1,40 +0,0 @@ -package org.apache.maven.converter.project; - -/* - * Copyright (c) 2004, Jason van Zyl and Trygve Laugstøl - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - * of the Software, and to permit persons to whom the Software is furnished to do - * so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -/** - * @author Trygve Laugstøl - * @version $Id$ - */ -public class ModelConversionException extends Exception -{ - public ModelConversionException( String msg ) - { - super( msg ); - } - - public ModelConversionException( String msg, Throwable cause ) - { - super( msg, cause ); - } -} diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConverter.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConverter.java deleted file mode 100644 index 885357286f..0000000000 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/project/ModelConverter.java +++ /dev/null @@ -1,39 +0,0 @@ -package org.apache.maven.converter.project; - -/* - * Copyright (c) 2004, Jason van Zyl and Trygve Laugstøl - * - * Permission is hereby granted, free of charge, to any person obtaining a copy of - * this software and associated documentation files (the "Software"), to deal in - * the Software without restriction, including without limitation the rights to - * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies - * of the Software, and to permit persons to whom the Software is furnished to do - * so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -/** - * @author Trygve Laugstøl - * @version $Id$ - */ -public interface ModelConverter -{ - /** - * - * @param model The model to convert from. - * @return Returns the new model. - * @throws ModelConversionException - */ - Object convert( Object model ) - throws ModelConversionException; -} diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Dependency.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Dependency.java deleted file mode 100644 index cd7bcf4b18..0000000000 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Dependency.java +++ /dev/null @@ -1,85 +0,0 @@ -package org.apache.maven.converter.tmp; - -/* - * Copyright 2001-2004 The Apache Software Foundation. - * - * Licensed 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. - */ - -/** - * @author Trygve Laugstøl - * @version $Id$ - */ -public class Dependency -{ - private String groupId; - private String artifactId; - private String type; - private String version; - /** - * @return Returns the artifactId. - */ - public String getArtifactId() - { - return artifactId; - } - /** - * @param artifactId The artifactId to set. - */ - public void setArtifactId( String artifactId ) - { - this.artifactId = artifactId; - } - /** - * @return Returns the groupId. - */ - public String getGroupId() - { - return groupId; - } - /** - * @param groupId The groupId to set. - */ - public void setGroupId( String groupId ) - { - this.groupId = groupId; - } - /** - * @return Returns the type. - */ - public String getType() - { - return type; - } - /** - * @param type The type to set. - */ - public void setType( String type ) - { - this.type = type; - } - /** - * @return Returns the version. - */ - public String getVersion() - { - return version; - } - /** - * @param version The version to set. - */ - public void setVersion( String version ) - { - this.version = version; - } -} diff --git a/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Project.java b/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Project.java deleted file mode 100644 index 4b4c6fca36..0000000000 --- a/maven-repository-tools/src/main/java/org/apache/maven/converter/tmp/Project.java +++ /dev/null @@ -1,86 +0,0 @@ -package org.apache.maven.converter.tmp; - -/* - * Copyright 2001-2004 The Apache Software Foundation. - * - * Licensed 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. - */ - -/** - * @author Trygve Laugstøl - * @version $Id$ - */ -public class Project -{ - private String groupId; - private String artifactId; - private String version; - private String type; - - /** - * @return Returns the artifactId. - */ - public String getArtifactId() - { - return artifactId; - } - /** - * @param artifactId The artifactId to set. - */ - public void setArtifactId( String artifactId ) - { - this.artifactId = artifactId; - } - /** - * @return Returns the groupId. - */ - public String getGroupId() - { - return groupId; - } - /** - * @param groupId The groupId to set. - */ - public void setGroupId( String groupId ) - { - this.groupId = groupId; - } - /** - * @return Returns the type. - */ - public String getType() - { - return type; - } - /** - * @param type The type to set. - */ - public void setType( String type ) - { - this.type = type; - } - /** - * @return Returns the version. - */ - public String getVersion() - { - return version; - } - /** - * @param version The version to set. - */ - public void setVersion( String version ) - { - this.version = version; - } -} diff --git a/maven-repository-tools/src/main/resources/META-INF/plexus/components.xml b/maven-repository-tools/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 0000000000..dc0f077785 --- /dev/null +++ b/maven-repository-tools/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,19 @@ + + + + org.apache.maven.converter.MavenRepository + maven1 + org.apache.maven.converter.Maven1Repository + + + org.apache.maven.converter.MavenRepository + maven2 + org.apache.maven.converter.Maven2Repository + + + org.apache.maven.artifact.installer.ArtifactInstaller + + + + + diff --git a/maven-repository-tools/src/test/java/org/apache/maven/converter/ReaperTest.java b/maven-repository-tools/src/test/java/org/apache/maven/converter/ReaperTest.java index cbc1fe9353..f17c922ca9 100644 --- a/maven-repository-tools/src/test/java/org/apache/maven/converter/ReaperTest.java +++ b/maven-repository-tools/src/test/java/org/apache/maven/converter/ReaperTest.java @@ -18,6 +18,8 @@ package org.apache.maven.converter; import java.io.File; +import org.codehaus.plexus.DefaultArtifactEnabledContainer; +import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.PlexusTestCase; import org.codehaus.plexus.util.FileUtils; @@ -28,6 +30,11 @@ import org.codehaus.plexus.util.FileUtils; public class ReaperTest extends PlexusTestCase { + public PlexusContainer getContainerInstance() + { + return new DefaultArtifactEnabledContainer(); + } + public void testReaper() throws Exception {