File update.patch of Package plexus-registry

Index: plexus-registry-api/src/main/java/org/codehaus/plexus/registry/RegistryConfigurePhase.java
===================================================================
--- plexus-registry-api/src/main/java/org/codehaus/plexus/registry/RegistryConfigurePhase.java.orig
+++ plexus-registry-api/src/main/java/org/codehaus/plexus/registry/RegistryConfigurePhase.java
@@ -77,11 +77,11 @@ public class RegistryConfigurePhase
 
             try
             {
-                ClassRealm componentRealm = manager.getContainer().getComponentRealm( descriptor.getRealmId() );
+//                 ClassRealm componentRealm = manager.getContainer().getComponentRealm( descriptor.getRealmId() );
 
-                configure( component, registry, componentRealm );
+                //configure( component, registry, componentRealm );
             }
-            catch ( ComponentConfigurationException e )
+            catch ( Exception e )
             {
                 throw new PhaseExecutionException( "Unable to auto-configure component", e );
             }
@@ -112,10 +112,10 @@ public class RegistryConfigurePhase
         {
             try
             {
-                registry = (Registry) manager.getContainer().lookup( Registry.class.getName(), "commons-configuration",
-                                                                     realm );
+//                 registry = (Registry) manager.getContainer().lookup( Registry.class.getName(), "commons-configuration",
+//                                                                      realm );
             }
-            catch ( ComponentLookupException e )
+            catch ( Exception e )
             {
                 throw new PhaseExecutionException( "Unable to configure component as the registry could not be found",
                                                    e );
@@ -123,4 +123,9 @@ public class RegistryConfigurePhase
         }
         return registry;
     }
+
+    public void execute(java.lang.Object o,org.codehaus.plexus.component.manager.ComponentManager e)
+    {
+
+    }
 }
openSUSE Build Service is sponsored by