geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r1221375 - /geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java
Date Tue, 20 Dec 2011 18:03:36 GMT
Author: djencks
Date: Tue Dec 20 18:03:36 2011
New Revision: 1221375

URL: http://svn.apache.org/viewvc?rev=1221375&view=rev
Log:
GERONIMO-6240 DependencyManager seems to need its lifecycle methods called to work properly

Modified:
    geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java

Modified: geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java?rev=1221375&r1=1221374&r2=1221375&view=diff
==============================================================================
--- geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java
(original)
+++ geronimo/server/trunk/framework/buildsupport/car-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/car/PluginBootstrap2.java
Tue Dec 20 18:03:36 2011
@@ -85,7 +85,8 @@ public class PluginBootstrap2 {
 //        ModuleType config = ModuleDocument.Factory.parse(plan).getModule();
 
         Maven2Repository repository = new Maven2Repository(localRepo);
-        new DependencyManager(bundleContext, Collections.<Repository>singleton(repository),
null);
+        DependencyManager dm = new DependencyManager(bundleContext, Collections.<Repository>singleton(repository),
null);
+        dm.doStart();
 
         GBeanBuilder gBeanBuilder = new GBeanBuilder(null, null);
         ServiceConfigBuilder builder = new ServiceConfigBuilder(null, Collections.<Repository>singleton(repository),
Collections.<NamespaceDrivenBuilder>singleton(gBeanBuilder), new Jsr77Naming(), bundleContext);
@@ -123,6 +124,8 @@ public class PluginBootstrap2 {
         finally {
             context.close();
         }
+        dm.doStop();
+
     }
 
     private void writeConfiguration(final ConfigurationData configurationData) throws IOException
{



Mime
View raw message