hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r387048 - in /jakarta/hivemind/trunk: ./ examples/ examples/src/descriptor/META-INF/ examples/src/java/org/apache/examples/ examples/src/java/org/apache/examples/panorama/startup/ framework/ framework/src/test-data/ framework/src/test/hivem...
Date Sun, 19 Mar 2006 22:27:36 GMT
Author: hlship
Date: Sun Mar 19 14:27:34 2006
New Revision: 387048

URL: http://svn.apache.org/viewcvs?rev=387048&view=rev
Log:
Setup initial Maven 2 build

Added:
    jakarta/hivemind/trunk/examples/pom.xml
    jakarta/hivemind/trunk/examples/src/descriptor/META-INF/hivemodule.xml
    jakarta/hivemind/trunk/framework/pom.xml
    jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/MessageFormatterTarget.java
    jakarta/hivemind/trunk/framework/src/test/test-data/
      - copied from r386879, jakarta/hivemind/trunk/framework/src/test-data/
    jakarta/hivemind/trunk/jmx/pom.xml
    jakarta/hivemind/trunk/library/pom.xml
    jakarta/hivemind/trunk/pom-common/
    jakarta/hivemind/trunk/pom-common/pom.xml
    jakarta/hivemind/trunk/pom-common/src/
    jakarta/hivemind/trunk/pom-common/src/NO-CODE.txt
    jakarta/hivemind/trunk/pom.xml
Removed:
    jakarta/hivemind/trunk/build.properties
    jakarta/hivemind/trunk/build.xml
    jakarta/hivemind/trunk/examples/build.xml
    jakarta/hivemind/trunk/forrest.properties
    jakarta/hivemind/trunk/framework/build.xml
    jakarta/hivemind/trunk/framework/src/test-data/
    jakarta/hivemind/trunk/jmx/build.xml
    jakarta/hivemind/trunk/library/build.xml
    jakarta/hivemind/trunk/project.properties
Modified:
    jakarta/hivemind/trunk/.classpath
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/CalculatorMain.java
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/ExampleUtils.java
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/LoggingMain.java
    jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java
    jakarta/hivemind/trunk/framework/src/test/hivemind/test/FrameworkTestCase.java
    jakarta/hivemind/trunk/framework/src/test/hivemind/test/TestRegistryBuilder.java
    jakarta/hivemind/trunk/framework/src/test/hivemind/test/ant/TestConstructRegistry.java
    jakarta/hivemind/trunk/framework/src/test/hivemind/test/rules/TestSmartTranslator.java
    jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/TestMessageFormatter.java
    jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/util/TestFileResource.java
    jakarta/hivemind/trunk/jmx/src/java/org/apache/hivemind/management/ManagementStrings.properties
    jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/TestPerformanceMonitorFactory.java

Modified: jakarta/hivemind/trunk/.classpath
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/.classpath?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/.classpath (original)
+++ jakarta/hivemind/trunk/.classpath Sun Mar 19 14:27:34 2006
@@ -14,24 +14,24 @@
 	<classpathentry output="examples/target/eclipse-test-classes" kind="src" path="examples/src/test"/>
 	<classpathentry kind="src" path="hivebuild/src/java"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-	<classpathentry kind="lib" path="ext-package/lib/commons-logging-1.0.3.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/easymock-1.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/log4j-1.2.7.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/oro-2.0.6.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/servletapi-2.3.jar"/>
 	<classpathentry kind="var" path="ANT_HOME/lib/xercesImpl.jar"/>
 	<classpathentry kind="var" path="ANT_HOME/lib/xml-apis.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/spring-full-1.0.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/junit-3.8.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/jboss-j2ee-3.2.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/groovy-all-1.0-jsr-03.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/cglib-full-2.0.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/easymockclassextension-1.1.jar"/>
 	<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/aopalliance-1.0.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/mx4j-2.1.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/mx4j-remote-2.1.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/mx4j-tools-2.1.1.jar"/>
-	<classpathentry kind="lib" path="ext-package/lib/javassist-3.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/aopalliance/aopalliance/1.0/aopalliance-1.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/cglib/cglib-full/2.0.1/cglib-full-2.0.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging/1.0.3/commons-logging-1.0.3.jar"/>
+	<classpathentry kind="var" path="M2_REPO/easymock/easymock/1.1/easymock-1.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/easymock/easymockclassextension/1.1/easymockclassextension-1.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/groovy/groovy-all-1.0-jsr/03/groovy-all-1.0-jsr-03.jar"/>
+	<classpathentry kind="var" path="M2_REPO/javassist/javassist/3.0/javassist-3.0.jar"/>
+	<classpathentry kind="var" path="M2_REPO/jboss/jboss-j2ee/3.2.1/jboss-j2ee-3.2.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.8/log4j-1.2.8.jar"/>
+	<classpathentry kind="var" path="M2_REPO/mx4j/mx4j/2.1.1/mx4j-2.1.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/mx4j/mx4j-remote/2.1.1/mx4j-remote-2.1.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/mx4j/mx4j-tools/2.1.1/mx4j-tools-2.1.1.jar"/>
+	<classpathentry kind="var" path="M2_REPO/oro/oro/2.0.8/oro-2.0.8.jar"/>
+	<classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar"/>
+	<classpathentry kind="var" path="M2_REPO/org/springframework/spring-full/1.0.1/spring-full-1.0.1.jar"/>
 	<classpathentry kind="output" path="bin"/>
 </classpath>

Added: jakarta/hivemind/trunk/examples/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/examples/pom.xml (added)
+++ jakarta/hivemind/trunk/examples/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,54 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>hivemind-examples</artifactId>
+    <packaging>jar</packaging>
+    <version>1.2.1</version>
+    <parent>
+        <groupId>hivemind</groupId>
+        <artifactId>pom-common</artifactId>
+        <version>0.0.1</version>
+        <relativePath>../pom-common/pom.xml</relativePath>
+    </parent>
+    <name>HiveMind Examples</name>
+    <inceptionYear>2003</inceptionYear>
+    <dependencies>
+        <dependency>
+            <groupId>hivemind</groupId>
+            <artifactId>hivemind</artifactId>
+            <version>1.2.1</version>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.3</source>
+                            <target>1.5</target>
+                            <optimize>true</optimize>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.5</source>
+                            <target>1.5</target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: jakarta/hivemind/trunk/examples/src/descriptor/META-INF/hivemodule.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/descriptor/META-INF/hivemodule.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/examples/src/descriptor/META-INF/hivemodule.xml (added)
+++ jakarta/hivemind/trunk/examples/src/descriptor/META-INF/hivemodule.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,9 @@
+<?xml version="1.0"?>
+<module id="hivemind.examples" version="0.0.1">
+    
+    Master hivemodule descriptor for all the examples.
+    
+    <sub-module descriptor="examples.xml"/>
+    <sub-module descriptor="panorama.xml"/>    
+    
+</module>
\ No newline at end of file

Modified: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/CalculatorMain.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/CalculatorMain.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/CalculatorMain.java (original)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/CalculatorMain.java Sun Mar 19 14:27:34 2006
@@ -15,23 +15,26 @@
 package org.apache.examples;
 
 import org.apache.hivemind.Registry;
+import org.apache.hivemind.impl.RegistryBuilder;
 
 /**
- * Runs through the methods of the {@link org.apache.examples.Calculator} with
- * a pair of argument values parsed from the command line.
- *
+ * Runs through the methods of the {@link org.apache.examples.Calculator} with a
+ * pair of argument values parsed from the command line.
+ * 
  * @author Howard Lewis Ship
  */
 public class CalculatorMain
 {
+
     public static void main(String[] args)
     {
         double arg0 = Double.parseDouble(args[0]);
         double arg1 = Double.parseDouble(args[1]);
 
-        Registry registry = ExampleUtils.buildRegistry("examples.xml");
+        Registry registry = RegistryBuilder.constructDefaultRegistry();
 
-        // Since we know there's exactly *one* service-point implementing Calculator,
+        // Since we know there's exactly *one* service-point implementing
+        // Calculator,
         // we can get it this way, and never have to know its service id.
 
         Calculator calculator = (Calculator) registry.getService(Calculator.class);
@@ -41,7 +44,7 @@
         System.out.println("Subtract: " + calculator.subtract(arg0, arg1));
         System.out.println("Multiply: " + calculator.multiply(arg0, arg1));
         System.out.println("Divide:   " + calculator.divide(arg0, arg1));
-        
+
         registry.shutdown();
     }
 }

Modified: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/ExampleUtils.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/ExampleUtils.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/ExampleUtils.java (original)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/ExampleUtils.java Sun Mar 19 14:27:34 2006
@@ -34,37 +34,20 @@
  * 
  * @author Howard Lewis Ship
  */
-public class ExampleUtils
+public final class ExampleUtils
 {
-    /**
-     * Builds a Registry for a file stored in the src/descriptor/META-INF directory.
-     * 
-     * @param fileName --
-     *            the name of the module descriptor file.
-     */
-    public static Registry buildRegistry(String fileName)
-    {
-        // The examples package is structured oddly (so that it doesn't interfere with
-        // the main HiveMind framework tests), so we have to go through some gyrations
-        // here that aren't necessary in an ordinary HiveMind application.
-
-        String projectRoot = System.getProperty("PROJECT_ROOT", ".");
-        String path = projectRoot + "/examples/src/descriptor/META-INF/" + fileName;
-
-        ClassResolver resolver = new DefaultClassResolver();
 
-        // Register the examples.xml file, which (given its non-standard name)
-        // is not visible.
-        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver,
-                new FileResource(path));
-        return buildRegistry(provider);
+    /** Prevent instantiation. */
+    private ExampleUtils()
+    {
     }
-    
+
     /**
-     * Convenience method for invoking {@link #buildClasspathRegistry(String[])} with only a single
-     * file.
+     * Convenience method for invoking {@link #buildClasspathRegistry(String[])}
+     * with only a single file.
      */
-    public static Registry buildClasspathRegistry(String file) throws Exception
+    public static Registry buildClasspathRegistry(String file)
+        throws Exception
     {
         return buildClasspathRegistry(new String[] { file });
     }
@@ -72,23 +55,23 @@
     /**
      * Builds a registry for files in the classpath.
      */
-    public static Registry buildClasspathRegistry(String[] files) throws Exception
+    public static Registry buildClasspathRegistry(String[] files)
+        throws Exception
     {
         ClassResolver resolver = new DefaultClassResolver();
 
         List descriptorResources = new ArrayList();
-        for (int i = 0; i < files.length; i++)
+        for(int i = 0; i < files.length; i++)
         {
             Resource resource = getResource(files[i]);
             descriptorResources.add(resource);
         }
 
-        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver,
-                descriptorResources);
+        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver, descriptorResources);
 
         return buildRegistry(provider);
     }
-    
+
     protected static Registry buildRegistry(ModuleDescriptorProvider customProvider)
     {
         ClassResolver resolver = new DefaultClassResolver();
@@ -100,19 +83,19 @@
 
         return builder.constructRegistry(Locale.getDefault());
     }
-    
+
     /**
-     * Returns the given file as a {@link Resource} from the classpath. Typically, this is to find
-     * files in the same folder as the invoking class.
+     * Returns the given file as a {@link Resource} from the classpath.
+     * Typically, this is to find files in the same folder as the invoking
+     * class.
      */
     protected static Resource getResource(String file)
     {
         URL url = ExampleUtils.class.getResource(file);
 
-        if (url == null)
-            throw new NullPointerException("No resource named '" + file + "'.");
+        if (url == null) throw new NullPointerException("No resource named '" + file + "'.");
 
         return new URLResource(url);
     }
 
-}
\ No newline at end of file
+}

Modified: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/LoggingMain.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/LoggingMain.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/LoggingMain.java (original)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/LoggingMain.java Sun Mar 19 14:27:34 2006
@@ -16,13 +16,14 @@
 
 import org.apache.hivemind.ApplicationRuntimeException;
 import org.apache.hivemind.Registry;
+import org.apache.hivemind.impl.RegistryBuilder;
 
 public class LoggingMain
 {
 
     public static void main(String[] args)
     {
-        Registry registry = ExampleUtils.buildRegistry("examples.xml");
+        Registry registry = RegistryBuilder.constructDefaultRegistry();
 
         TargetService service = (TargetService) registry.getService(TargetService.class);
 

Modified: jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java (original)
+++ jakarta/hivemind/trunk/examples/src/java/org/apache/examples/panorama/startup/PanoramaMain.java Sun Mar 19 14:27:34 2006
@@ -14,13 +14,13 @@
 
 package org.apache.examples.panorama.startup;
 
-import org.apache.examples.ExampleUtils;
 import org.apache.hivemind.Registry;
+import org.apache.hivemind.impl.RegistryBuilder;
 
 /**
- * Builds the Registry for Panorama, then exits.  Demonstrates how the
- * MDDs are parsed and the startup logic executed.
- *
+ * Builds the Registry for Panorama, then exits. Demonstrates how the MDDs are
+ * parsed and the startup logic executed.
+ * 
  * @author Howard Lewis Ship
  */
 public class PanoramaMain
@@ -28,8 +28,8 @@
 
     public static void main(String[] args)
     {
-        Registry registry = ExampleUtils.buildRegistry("panorama.xml");
-        
+        Registry registry = RegistryBuilder.constructDefaultRegistry();
+
         registry.shutdown();
     }
 }

Added: jakarta/hivemind/trunk/framework/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/framework/pom.xml (added)
+++ jakarta/hivemind/trunk/framework/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,114 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>hivemind</artifactId>
+    <packaging>jar</packaging>
+    <version>1.2.1</version>
+    <parent>
+        <groupId>hivemind</groupId>
+        <artifactId>pom-common</artifactId>
+        <version>0.0.1</version>
+        <relativePath>../pom-common/pom.xml</relativePath>
+    </parent>
+    <name>HiveMind core framework</name>
+    <inceptionYear>2003</inceptionYear>
+    <dependencies>
+        <dependency>
+            <groupId>commons-logging</groupId>
+            <artifactId>commons-logging</artifactId>
+            <version>1.0.3</version>
+        </dependency>
+        <dependency>
+            <groupId>javassist</groupId>
+            <artifactId>javassist</artifactId>
+            <version>3.0</version>
+        </dependency>
+        <dependency>
+            <groupId>oro</groupId>
+            <artifactId>oro</artifactId>
+            <version>2.0.6</version>
+        </dependency>
+        <!-- PROVIDED -->
+        <dependency>
+            <groupId>ant</groupId>
+            <artifactId>ant</artifactId>
+            <version>1.6.3</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>javax.servlet</groupId>
+            <artifactId>servlet-api</artifactId>
+            <version>2.3</version>
+            <scope>provided</scope>
+        </dependency>
+        <!-- Because the core framework includes some JUnit base classes that
+             use easymock (and easymockclassextension), those dependencies
+             are marked as "provided". Normally, that means "provided by the container",
+             meaning a runtime dependency provided by a servlet container or
+             application server, but we're retrocanonicalizing :-) that to
+             mean "provided by the using project, if needed" -->
+        <dependency>
+            <groupId>easymock</groupId>
+            <artifactId>easymock</artifactId>
+            <version>1.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>xerces</groupId>
+            <artifactId>xercesImpl</artifactId>
+            <version>2.6.2</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>easymock</groupId>
+            <artifactId>easymockclassextension</artifactId>
+            <version>1.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <!-- TEST -->
+        <dependency>
+            <groupId>cglib</groupId>
+            <artifactId>cglib-full</artifactId>
+            <version>2.0.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.3</source>
+                            <target>1.5</target>
+                            <optimize>true</optimize>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.5</source>
+                            <target>1.5</target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Modified: jakarta/hivemind/trunk/framework/src/test/hivemind/test/FrameworkTestCase.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/hivemind/test/FrameworkTestCase.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/hivemind/test/FrameworkTestCase.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/hivemind/test/FrameworkTestCase.java Sun Mar 19 14:27:34 2006
@@ -14,6 +14,8 @@
 
 package hivemind.test;
 
+import java.net.URL;
+
 import org.apache.hivemind.ClassResolver;
 import org.apache.hivemind.Resource;
 import org.apache.hivemind.impl.DefaultClassResolver;
@@ -32,16 +34,25 @@
  */
 public abstract class FrameworkTestCase extends HiveMindTestCase
 {
-    protected ClassResolver _resolver = new DefaultClassResolver();
 
-    private static final String PROJECT_ROOT = System.getProperty("PROJECT_ROOT", ".");
+    protected ClassResolver _resolver = new DefaultClassResolver();
 
+    /** Returns a filesystem path to a resource within the classpath. */
     protected String getFrameworkPath(String path)
     {
-        return PROJECT_ROOT + "/framework/" + path;
+        URL url = getClass().getResource(path);
+
+        String protocol = url.getProtocol();
+
+        if (!protocol.equals("file"))
+            throw new RuntimeException("Classpath resource " + path
+                    + " is not stored on the filesystem. It is available as " + url);
+
+        return url.getPath();
     }
 
-    protected ModuleDescriptor parse(String file) throws Exception
+    protected ModuleDescriptor parse(String file)
+        throws Exception
     {
         Resource location = getResource(file);
         DefaultErrorHandler eh = new DefaultErrorHandler();
@@ -59,7 +70,8 @@
     }
 
     /**
-     * Convenience method for creating a {@link org.apache.hivemind.parse.ModuleDescriptor}.
+     * Convenience method for creating a
+     * {@link org.apache.hivemind.parse.ModuleDescriptor}.
      */
     protected ModuleDescriptor createModuleDescriptor(String moduleId, String version)
     {
@@ -73,7 +85,8 @@
     }
 
     /**
-     * Convenience method for creating a {@link org.apache.hivemind.parse.DependencyDescriptor}.
+     * Convenience method for creating a
+     * {@link org.apache.hivemind.parse.DependencyDescriptor}.
      */
     protected DependencyDescriptor createDependencyDescriptor(String moduleId, String version)
     {
@@ -89,8 +102,7 @@
     /**
      * Convenience method for creating a {@link ServicePointDescriptor}.
      */
-    protected ServicePointDescriptor createServicePointDescriptor(String pointId,
-            Class serviceInterface)
+    protected ServicePointDescriptor createServicePointDescriptor(String pointId, Class serviceInterface)
     {
         ServicePointDescriptor result = new ServicePointDescriptor();
 
@@ -113,4 +125,4 @@
 
         return result;
     }
-}
\ No newline at end of file
+}

Modified: jakarta/hivemind/trunk/framework/src/test/hivemind/test/TestRegistryBuilder.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/hivemind/test/TestRegistryBuilder.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/hivemind/test/TestRegistryBuilder.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/hivemind/test/TestRegistryBuilder.java Sun Mar 19 14:27:34 2006
@@ -47,7 +47,7 @@
         // JDK 1.3 URLClassLoader doesn't seem to work properly for directories, so
         // the contents of the TestRegistryBuilder folder are packaged inside this JAR.
 
-        File f = new File(getFrameworkPath("src/test-data/TestRegistryBuilder.jar"));
+        File f = new File(getFrameworkPath("/test-data/TestRegistryBuilder.jar"));
 
         URL[] urls = new URL[]
         { f.toURL() };

Modified: jakarta/hivemind/trunk/framework/src/test/hivemind/test/ant/TestConstructRegistry.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/hivemind/test/ant/TestConstructRegistry.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/hivemind/test/ant/TestConstructRegistry.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/hivemind/test/ant/TestConstructRegistry.java Sun Mar 19 14:27:34 2006
@@ -108,9 +108,9 @@
         Path p = cr.createDescriptors();
 
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/master.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/master.xml")));
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/Symbols.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/Symbols.xml")));
 
         File output = File.createTempFile("testBasic-", ".xml");
 
@@ -126,7 +126,7 @@
 
         compare(
                 output,
-                getFrameworkPath("src/test-data/TestConstructRegistry/testBasic.xml.master"));
+                getFrameworkPath("/test-data/TestConstructRegistry/testBasic.xml.master"));
     }
 
     public void testLocalRefs() throws Exception
@@ -139,7 +139,7 @@
         Path p = cr.createDescriptors();
 
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/LocalRefs.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/LocalRefs.xml")));
 
         File output = File.createTempFile("testLocalRefs-", ".xml");
 
@@ -155,7 +155,7 @@
 
         compare(
                 output,
-                getFrameworkPath("src/test-data/TestConstructRegistry/testLocalRefs.xml.master"));
+                getFrameworkPath("/test-data/TestConstructRegistry/testLocalRefs.xml.master"));
     }
 
     public void testUptoDate() throws Exception
@@ -168,9 +168,9 @@
         Path p = cr.createDescriptors();
 
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/master.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/master.xml")));
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/Symbols.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/Symbols.xml")));
 
         File output = File.createTempFile("testUptoDate-", ".xml");
 
@@ -186,7 +186,7 @@
 
         compare(
                 output,
-                getFrameworkPath("src/test-data/TestConstructRegistry/testUptoDate.xml.master"));
+                getFrameworkPath("/test-data/TestConstructRegistry/testUptoDate.xml.master"));
 
         long stamp = output.lastModified();
 
@@ -205,11 +205,11 @@
         Path p = cr.createDescriptors();
 
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/master.xml")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/master.xml")));
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/empty.jar")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/empty.jar")));
         p.createPath().setLocation(
-                new File(getFrameworkPath("src/test-data/TestConstructRegistry/module.jar")));
+                new File(getFrameworkPath("/test-data/TestConstructRegistry/module.jar")));
 
         File output = File.createTempFile("testJars-", ".xml");
 
@@ -221,7 +221,7 @@
 
         cr.execute();
 
-        compare(output, getFrameworkPath("src/test-data/TestConstructRegistry/testJars.xml.master"));
+        compare(output, getFrameworkPath("/test-data/TestConstructRegistry/testJars.xml.master"));
     }
 
     protected void compare(File actual, String expectedPath) throws Exception

Modified: jakarta/hivemind/trunk/framework/src/test/hivemind/test/rules/TestSmartTranslator.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/hivemind/test/rules/TestSmartTranslator.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/hivemind/test/rules/TestSmartTranslator.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/hivemind/test/rules/TestSmartTranslator.java Sun Mar 19 14:27:34 2006
@@ -30,6 +30,7 @@
  */
 public class TestSmartTranslator extends HiveMindTestCase
 {
+
     /**
      * Test a primitive type (int).
      */
@@ -78,7 +79,8 @@
     }
 
     /**
-     * Test with a String value (apparently, this doesn't always work, see bug HIVEMIND-15).
+     * Test with a String value (apparently, this doesn't always work, see bug
+     * HIVEMIND-15).
      */
     public void testString()
     {
@@ -90,8 +92,8 @@
     }
 
     /**
-     * The input value should be returned as is (i.e. as a String) when the property type is Object
-     * (see HIVEMIND-15).
+     * The input value should be returned as is (i.e. as a String) when the
+     * property type is Object (see HIVEMIND-15).
      */
     public void testObjectAsString()
     {
@@ -104,13 +106,22 @@
 
     public void testStringWithNoEditor()
     {
-        PropertyEditorManager.setEditorSearchPath(new String[]
-        { "bogus.package" });
-        Translator t = new SmartTranslator();
+        String[] paths = PropertyEditorManager.getEditorSearchPath();
 
-        Object result = t.translate(null, String.class, "Fluffy Puppies", null);
+        try
+        {
+            PropertyEditorManager.setEditorSearchPath(new String[] { "bogus.package" });
+            Translator t = new SmartTranslator();
+
+            Object result = t.translate(null, String.class, "Fluffy Puppies", null);
+
+            assertEquals("Fluffy Puppies", result);
+        }
+        finally
+        {
+            PropertyEditorManager.setEditorSearchPath(paths);
+        }
 
-        assertEquals("Fluffy Puppies", result);
     }
 
     public void testNoEditor()

Added: jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/MessageFormatterTarget.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/MessageFormatterTarget.java?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/MessageFormatterTarget.java (added)
+++ jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/MessageFormatterTarget.java Sun Mar 19 14:27:34 2006
@@ -0,0 +1,13 @@
+package org.apache.hivemind.impl;
+
+/**
+ * An empty class, used by {@link org.apache.hivemind.impl.TestMessageFormatter},
+ * to check its handling of a null package. Tricky stuff.
+ * 
+ * @author Howard M. Lewis Ship
+ * @since 1.2
+ */
+public class MessageFormatterTarget
+{
+
+}

Modified: jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/TestMessageFormatter.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/TestMessageFormatter.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/TestMessageFormatter.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/impl/TestMessageFormatter.java Sun Mar 19 14:27:34 2006
@@ -25,12 +25,13 @@
  */
 public class TestMessageFormatter extends HiveMindTestCase
 {
-    public void testWithNoPackage() throws Exception
+
+    public void testWithNoPackage()
+        throws Exception
     {
         final ClassLoader loader = new NoPackageClassLoader();
 
-        new MessageFormatter(loader.loadClass(TestMessageFormatter.class
-                .getName()), "MessageFinder");
+        new MessageFormatter(loader.loadClass(MessageFormatterTarget.class.getName()), "MessageFinder");
     }
 
     private class NoPackageClassLoader extends URLClassLoader
@@ -38,24 +39,25 @@
 
         public NoPackageClassLoader()
         {
-            super( new URL[] { TestMessageFormatter.class.getProtectionDomain().getCodeSource().getLocation() } );
+            super(new URL[] { TestMessageFormatter.class.getProtectionDomain().getCodeSource().getLocation() });
         }
 
         protected Package getPackage(String name)
         {
             return null;
         }
-        public Class loadClass(String name) throws ClassNotFoundException
+
+        public Class loadClass(String name)
+            throws ClassNotFoundException
         {
             try
             {
-                return findClass( name );
+                return findClass(name);
             }
-            catch( ClassNotFoundException e )
+            catch (ClassNotFoundException e)
             {
                 return super.loadClass(name);
             }
-            
 
         }
     }

Modified: jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/util/TestFileResource.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/util/TestFileResource.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/util/TestFileResource.java (original)
+++ jakarta/hivemind/trunk/framework/src/test/org/apache/hivemind/util/TestFileResource.java Sun Mar 19 14:27:34 2006
@@ -25,15 +25,17 @@
 /**
  * Tests for {@link org.apache.hivemind.util.FileResource} and
  * {@link org.apache.hivemind.util.LocalizedFileResourceFinder}.
- *
+ * 
  * @author Howard Lewis Ship
  */
 public class TestFileResource extends FrameworkTestCase
 {
-    private static final String DIR = "src/test-data/TestFileResource";
+
+    private static final String DIR = "/test-data/TestFileResource";
     private static final String BASEFILE = DIR + "/localizable.properties";
 
-    public void testFindLocalization() throws Exception
+    public void testFindLocalization()
+        throws Exception
     {
         String path = getFrameworkPath(BASEFILE);
 
@@ -42,10 +44,7 @@
         File file = new File(path);
 
         if (!file.exists())
-            throw new IllegalArgumentException(
-                "Configuration error: base path ("
-                    + path
-                    + ") evaluates to "
+            throw new IllegalArgumentException("Configuration error: base path (" + path + ") evaluates to "
                     + file.getCanonicalPath()
                     + ", which does not exist. Set the correct working directory or FRAMEWORK_DIR system property.");
 
@@ -68,7 +67,8 @@
         assertEquals(path, f.findLocalizedPath(path, Locale.GERMAN));
     }
 
-    public void testExisting() throws Exception
+    public void testExisting()
+        throws Exception
     {
         String path = getFrameworkPath(BASEFILE);
 
@@ -80,16 +80,18 @@
         assertEquals(expected, r.getResourceURL());
     }
 
-    public void testMissing() throws Exception
+    public void testMissing()
+        throws Exception
     {
-        String path = getFrameworkPath(DIR + "/does-not-exist");
+        String path = "file-does-not-exist.xml";
 
         Resource r = new FileResource(path);
 
         assertEquals(null, r.getResourceURL());
     }
 
-    public void testCreateWithLocale() throws Exception
+    public void testCreateWithLocale()
+        throws Exception
     {
         String path = getFrameworkPath(DIR + "/localizable_fr.properties");
 
@@ -129,14 +131,13 @@
 
         assertEquals(path, r.toString());
     }
-    
+
     public void testExtensionLess()
     {
-    	String path = getFrameworkPath(DIR);
-    	// Remove the ./ at the beginning to remove any dot from the path
-    	if (path.startsWith("./"))
-    		path = path.substring(2);
-    	
+        String path = getFrameworkPath(DIR);
+        // Remove the ./ at the beginning to remove any dot from the path
+        if (path.startsWith("./")) path = path.substring(2);
+
         Resource r = new FileResource(path);
         Resource localized = r.getLocalization(Locale.CHINA);
 

Added: jakarta/hivemind/trunk/jmx/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/jmx/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/jmx/pom.xml (added)
+++ jakarta/hivemind/trunk/jmx/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,79 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>hivemind-jmx</artifactId>
+    <packaging>jar</packaging>
+    <version>1.2.1</version>
+    <parent>
+        <groupId>hivemind</groupId>
+        <artifactId>pom-common</artifactId>
+        <version>0.0.1</version>
+        <relativePath>../pom-common/pom.xml</relativePath>
+    </parent>
+    <name>HiveMind JMX Support</name>
+    <inceptionYear>2004</inceptionYear>
+    <dependencies>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.8</version>
+        </dependency>
+        <dependency>
+            <groupId>hivemind</groupId>
+            <artifactId>hivemind</artifactId>
+            <version>1.2.1</version>
+        </dependency>
+        <!-- Here, again, we're using a scope of provided to mean
+            "optional at runtime" -->
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j</artifactId>
+            <version>2.1.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j-tools</artifactId>
+            <version>2.1.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>mx4j</groupId>
+            <artifactId>mx4j-remote</artifactId>
+            <version>2.1.1</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.3</source>
+                            <target>1.5</target>
+                            <optimize>true</optimize>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.5</source>
+                            <target>1.5</target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Modified: jakarta/hivemind/trunk/jmx/src/java/org/apache/hivemind/management/ManagementStrings.properties
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/jmx/src/java/org/apache/hivemind/management/ManagementStrings.properties?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/jmx/src/java/org/apache/hivemind/management/ManagementStrings.properties (original)
+++ jakarta/hivemind/trunk/jmx/src/java/org/apache/hivemind/management/ManagementStrings.properties Sun Mar 19 14:27:34 2006
@@ -12,7 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-error-instantiating-performance-interceptor=Service interceptor factory {0} failed to create {1} interceptor for service {2} : {4}
+error-instantiating-performance-interceptor=Service interceptor factory {0} failed to create {1} interceptor for service {2} : {3}
 error-instantiating-connector-server=JMX connector server factory failed to create connector for address {0}
 error-unregistering-mbean=Unregistering MBean {0} failed. Exception {1} occured
 error-registering-mbean=Registering MBean {0} failed

Modified: jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/TestPerformanceMonitorFactory.java
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/TestPerformanceMonitorFactory.java?rev=387048&r1=387047&r2=387048&view=diff
==============================================================================
--- jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/TestPerformanceMonitorFactory.java (original)
+++ jakarta/hivemind/trunk/jmx/src/test/org/apache/hivemind/management/TestPerformanceMonitorFactory.java Sun Mar 19 14:27:34 2006
@@ -49,6 +49,11 @@
 
         // Execute some operations for code coverage
         calculator.add(123);
+        
+        
+        // Shutdown the registry, to make sure the JMX server is shutdown
+        
+        registry.shutdown();
     }
 
 }

Added: jakarta/hivemind/trunk/library/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/library/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/library/pom.xml (added)
+++ jakarta/hivemind/trunk/library/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,80 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>hivemind-lib</artifactId>
+    <packaging>jar</packaging>
+    <version>1.2.1</version>
+    <parent>
+        <groupId>hivemind</groupId>
+        <artifactId>pom-common</artifactId>
+        <version>0.0.1</version>
+        <relativePath>../pom-common/pom.xml</relativePath>
+    </parent>
+    <name>HiveMind standard library</name>
+    <inceptionYear>2003</inceptionYear>
+    <dependencies>
+        <dependency>
+            <groupId>hivemind</groupId>
+            <artifactId>hivemind</artifactId>
+            <version>1.2.1</version>
+        </dependency>
+        <!-- Here, again, we're using a scope of provided to mean
+             "optional at runtime" -->
+        <dependency>
+            <groupId>groovy</groupId>
+            <artifactId>groovy-all</artifactId>
+            <version>1.0-jsr-03</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>jboss</groupId>
+            <artifactId>jboss-j2ee</artifactId>
+            <version>3.2.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-full</artifactId>
+            <version>1.0.1</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>aopalliance</groupId>
+            <artifactId>aopalliance</artifactId>
+            <version>1.0</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.3</source>
+                            <target>1.5</target>
+                            <optimize>true</optimize>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                        <configuration>
+                            <source>1.5</source>
+                            <target>1.5</target>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: jakarta/hivemind/trunk/pom-common/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/pom-common/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/pom-common/pom.xml (added)
+++ jakarta/hivemind/trunk/pom-common/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,166 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>pom-common</artifactId>
+    <packaging>pom</packaging>
+    <version>0.0.1</version>
+    <name>HiveMind common parent POM</name>
+    <inceptionYear>2006</inceptionYear>
+    <url>http://jakarta.apache.org/hivemind/${pom.artifactId}</url>
+    <developers>
+        <developer>
+            <id>HLS</id>
+            <email>howard@howardlewisship.com</email>
+            <url>http://howardlewisship.com</url>
+            <roles>
+                <role>dev</role>
+            </roles>
+            <timezone>-8</timezone>
+        </developer>
+    </developers>
+    <licenses>
+        <license>
+            <name>Apache Software License 2.0</name>
+            <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+            <distribution>repo</distribution>
+        </license>
+    </licenses>
+    <dependencies>
+        <dependency>
+            <groupId>log4j</groupId>
+            <artifactId>log4j</artifactId>
+            <version>1.2.8</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>3.8.1</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>easymock</groupId>
+            <artifactId>easymock</artifactId>
+            <version>1.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <sourceDirectory>src/java</sourceDirectory>
+        <resources>
+            <resource>
+                <directory>src/java</directory>
+                <excludes>
+                    <exclude>**/*.java</exclude>
+                    <exclude>**/package.html</exclude>
+                </excludes>
+            </resource>
+            <resource>
+                <directory>src/descriptor</directory>
+            </resource>
+        </resources>
+        <testSourceDirectory>src/test</testSourceDirectory>
+        <testResources>
+            <testResource>
+                <directory>src/test</directory>
+                <excludes>
+                    <exclude>**/*.java</exclude>
+                </excludes>
+            </testResource>
+            <testResource>
+                <directory>src/conf</directory>
+            </testResource>
+        </testResources>
+        <plugins>
+
+            <plugin>
+                <artifactId>maven-site-plugin</artifactId>
+                <configuration>
+                    <locales>en</locales>
+                </configuration>
+            </plugin>
+            <!-- This should cause the assembly:assembly goal to be triggered
+                to create a source distro whenever we package the jar file. -->
+            <!--
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <configuration>
+                            <descriptorId>src</descriptorId>
+                        </configuration>
+                        <goals>
+                            <goal>assembly</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            -->
+            <!-- Here, we want to package a source jar so that it can eventually be
+                packaged into the remote repository with the binary jar. -->
+            <!--
+            <plugin>
+                  <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+        -->
+        </plugins>
+        <extensions>
+            <!-- Needed to support FTP deployment. -->
+            <extension>
+                <groupId>org.apache.maven.wagon</groupId>
+                <artifactId>wagon-ftp</artifactId>
+            </extension>
+        </extensions>
+    </build>
+    <!-- Standard reports used in the HiveMind projects. -->
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>surefire-report-maven-plugin</artifactId>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <linksource>true</linksource>
+                </configuration>
+            </plugin>
+        </plugins>
+    </reporting>
+    <distributionManagement>
+        <!-- Alas, this doesn't work yet -->
+        <site>
+            <id>apache.org</id>
+            <url>ssh://cvs.apache.org/jakarta/hivemind/%{pom.artifactId}</url>
+        </site>
+        <repository>
+            <!-- The "maven" login id, specified in settings.xml, ensures that the Maven
+                repository (i.e. http://howardlewisship.com/repository) is accessed. -->
+            <!-- This is temporary, until HiveMind 1.2 is stable. -->
+            <id>howardlewisship.com</id>
+            <url>ftp://howardlewisship.com/repository</url>
+        </repository>
+    </distributionManagement>
+    <organization>
+        <name>Apache Software Foundation</name>
+        <url>http://jakarta.apache.org/</url>
+    </organization>
+    <scm>
+        <connection>svn:http://svn.apache.org/repos/asf/jakarta/hivemind/${pom.artifactId}/trunk</connection>
+        <url>http://svn.apache.org/viewcvs.cgi/jakarta/hivemind/${pom.artifactId}</url>
+    </scm>
+</project>

Added: jakarta/hivemind/trunk/pom-common/src/NO-CODE.txt
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/pom-common/src/NO-CODE.txt?rev=387048&view=auto
==============================================================================
    (empty)

Added: jakarta/hivemind/trunk/pom.xml
URL: http://svn.apache.org/viewcvs/jakarta/hivemind/trunk/pom.xml?rev=387048&view=auto
==============================================================================
--- jakarta/hivemind/trunk/pom.xml (added)
+++ jakarta/hivemind/trunk/pom.xml Sun Mar 19 14:27:34 2006
@@ -0,0 +1,23 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>hivemind</groupId>
+    <artifactId>hivemind-project</artifactId>
+    <packaging>pom</packaging>
+    <version>1.2.1</version>
+    <parent>
+        <groupId>hivemind</groupId>
+        <artifactId>pom-common</artifactId>
+        <version>0.0.1</version>
+        <relativePath>pom-common/pom.xml</relativePath>
+    </parent>
+    <name>HiveMind Project</name>
+    <inceptionYear>2003</inceptionYear>
+    <modules>
+        <module>pom-common</module>
+        <module>framework</module>
+        <module>library</module>
+        <module>jmx</module>
+        <module>examples</module>
+    </modules>
+</project>



---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message