directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccust...@apache.org
Subject svn commit: r762124 - in /directory/sandbox/ccustine/apacheds-kernel: ./ assembly/ assembly/src/main/distribution/text/deploy/ commands/ commands/src/ commands/src/main/ commands/src/main/java/ commands/src/main/java/org/ commands/src/main/java/org/apa...
Date Sun, 05 Apr 2009 17:43:24 GMT
Author: ccustine
Date: Sun Apr  5 17:43:23 2009
New Revision: 762124

URL: http://svn.apache.org/viewvc?rev=762124&view=rev
Log:
Added command shells to load ldif files and list partition information.

Added:
    directory/sandbox/ccustine/apacheds-kernel/commands/pom.xml
    directory/sandbox/ccustine/apacheds-kernel/commands/src/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/DirectoryServiceSupport.java
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/LoadCommand.java
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/ListCommand.java
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/commands.xml
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/LoadCommand.properties
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/
    directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/ListCommand.properties
Modified:
    directory/sandbox/ccustine/apacheds-kernel/assembly/pom.xml
    directory/sandbox/ccustine/apacheds-kernel/assembly/src/main/distribution/text/deploy/server.xml
    directory/sandbox/ccustine/apacheds-kernel/pom.xml

Modified: directory/sandbox/ccustine/apacheds-kernel/assembly/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/assembly/pom.xml?rev=762124&r1=762123&r2=762124&view=diff
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/assembly/pom.xml (original)
+++ directory/sandbox/ccustine/apacheds-kernel/assembly/pom.xml Sun Apr  5 17:43:23 2009
@@ -22,7 +22,7 @@
 
     <parent>
         <groupId>org.apache.directory.server</groupId>
-        <artifactId>apache-directory-kernel</artifactId>
+        <artifactId>apache-directory-osgi</artifactId>
         <version>2.0.0-SNAPSHOT</version>
     </parent>
 

Modified: directory/sandbox/ccustine/apacheds-kernel/assembly/src/main/distribution/text/deploy/server.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/assembly/src/main/distribution/text/deploy/server.xml?rev=762124&r1=762123&r2=762124&view=diff
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/assembly/src/main/distribution/text/deploy/server.xml (original)
+++ directory/sandbox/ccustine/apacheds-kernel/assembly/src/main/distribution/text/deploy/server.xml Sun Apr  5 17:43:23 2009
@@ -21,82 +21,89 @@
 
 
 <spring:beans xmlns="http://apacheds.org/config/core"
-       xmlns:spring="http://www.springframework.org/schema/beans"
-       xmlns:s="http://www.springframework.org/schema/beans"
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
-	http://apacheds.org/config/core http://apacheds.org/config/core/apacheds.xsd">
-
-  <defaultDirectoryService id="directoryService" instanceId="default"
-                           replicaId="1"
-                           workingDirectory="example.com"
-                           allowAnonymousAccess="true"
-                           accessControlEnabled="false"
-                           denormalizeOpAttrsEnabled="false"
-                           maxPDUSize="2000000">
-    <systemPartition>
-      <!-- use the following partitionConfiguration to override defaults for -->
-      <!-- the system partition                                              -->
-      <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true" syncOnWrite="true">
-        <indexedAttributes>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
-          <jdbmIndex attributeId="ou" cacheSize="100"/>
-          <jdbmIndex attributeId="uid" cacheSize="100"/>
-          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
-        </indexedAttributes>
-      </jdbmPartition>
-    </systemPartition>
-
-    <partitions>
-      <!-- NOTE: when specifying new partitions you need not include those   -->
-      <!-- attributes below with OID's which are the system indices, if left -->
-      <!-- out they will be automatically configured for you with defaults.  -->
-      <jdbmPartition id="example" cacheSize="100" suffix="dc=example,dc=com" optimizerEnabled="true"
-                     syncOnWrite="true">
-        <indexedAttributes>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
-          <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
-          <jdbmIndex attributeId="dc" cacheSize="100"/>
-          <jdbmIndex attributeId="ou" cacheSize="100"/>
-          <jdbmIndex attributeId="krb5PrincipalName" cacheSize="100"/>
-          <jdbmIndex attributeId="uid" cacheSize="100"/>
-          <jdbmIndex attributeId="objectClass" cacheSize="100"/>
-        </indexedAttributes>
-      </jdbmPartition>
-    </partitions>
-
-    <interceptors>
-      <normalizationInterceptor/>
-      <authenticationInterceptor/>
-      <referralInterceptor/>
-      <aciAuthorizationInterceptor/>
-      <defaultAuthorizationInterceptor/>
-      <exceptionInterceptor/>
-      <operationalAttributeInterceptor/>
+              xmlns:spring="http://www.springframework.org/schema/beans"
+              xmlns:s="http://www.springframework.org/schema/beans"
+              xmlns:osgi="http://www.springframework.org/schema/osgi"
+              xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
+              xmlns:ctx="http://www.springframework.org/schema/context"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+	            http://apacheds.org/config/core http://apacheds.org/config/core/apacheds.xsd
+              http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd
+              http://www.springframework.org/schema/osgi-compendium http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
+              http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
+              >
+
+    <defaultDirectoryService id="directoryService" instanceId="default"
+                             replicaId="1"
+                             workingDirectory="example.com"
+                             allowAnonymousAccess="true"
+                             accessControlEnabled="false"
+                             denormalizeOpAttrsEnabled="false"
+                             maxPDUSize="2000000">
+        <systemPartition>
+            <!-- use the following partitionConfiguration to override defaults for -->
+            <!-- the system partition                                              -->
+            <jdbmPartition id="system" cacheSize="100" suffix="ou=system" optimizerEnabled="true" syncOnWrite="true">
+                <indexedAttributes>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
+                    <jdbmIndex attributeId="ou" cacheSize="100"/>
+                    <jdbmIndex attributeId="uid" cacheSize="100"/>
+                    <jdbmIndex attributeId="objectClass" cacheSize="100"/>
+                </indexedAttributes>
+            </jdbmPartition>
+        </systemPartition>
+
+        <partitions>
+            <!-- NOTE: when specifying new partitions you need not include those   -->
+            <!-- attributes below with OID's which are the system indices, if left -->
+            <!-- out they will be automatically configured for you with defaults.  -->
+            <jdbmPartition id="example" cacheSize="100" suffix="dc=example,dc=com" optimizerEnabled="true"
+                           syncOnWrite="true">
+                <indexedAttributes>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.1" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.2" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.3" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.4" cacheSize="100"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.5" cacheSize="10"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.6" cacheSize="10"/>
+                    <jdbmIndex attributeId="1.3.6.1.4.1.18060.0.4.1.2.7" cacheSize="10"/>
+                    <jdbmIndex attributeId="dc" cacheSize="100"/>
+                    <jdbmIndex attributeId="ou" cacheSize="100"/>
+                    <jdbmIndex attributeId="krb5PrincipalName" cacheSize="100"/>
+                    <jdbmIndex attributeId="uid" cacheSize="100"/>
+                    <jdbmIndex attributeId="objectClass" cacheSize="100"/>
+                </indexedAttributes>
+            </jdbmPartition>
+        </partitions>
+
+        <interceptors>
+            <normalizationInterceptor/>
+            <authenticationInterceptor/>
+            <referralInterceptor/>
+            <aciAuthorizationInterceptor/>
+            <defaultAuthorizationInterceptor/>
+            <exceptionInterceptor/>
+            <operationalAttributeInterceptor/>
 
-      <!-- Uncomment to enable the password policy interceptor
+            <!-- Uncomment to enable the password policy interceptor
       <passwordPolicyInterceptor/>
       <keyDerivationInterceptor/>
       -->
 
-      <schemaInterceptor/>
-      <subentryInterceptor/>
-      <collectiveAttributeInterceptor/>
-      <eventInterceptor/>
-      <triggerInterceptor/>
+            <schemaInterceptor/>
+            <subentryInterceptor/>
+            <collectiveAttributeInterceptor/>
+            <eventInterceptor/>
+            <triggerInterceptor/>
 
-      <!-- Uncomment to enable replication interceptor
+            <!-- Uncomment to enable replication interceptor
       <replicationInterceptor>
         <configuration>
           <replicationConfiguration serverPort="10390" peerReplicas="instance_b@localhost:10392">
@@ -107,15 +114,15 @@
         </configuration>
       </replicationInterceptor>
       -->
-    </interceptors>
-  </defaultDirectoryService>
+        </interceptors>
+    </defaultDirectoryService>
 
-  <!-- 
+    <!--
   +============================================================+
   | ChangePassword server configuration                        |
   +============================================================+
   -->
-  <!--  missing  atou=users,dc=example,dc=com
+    <!--  missing  atou=users,dc=example,dc=com
   <changePasswordServer>
     <tcpTransport>
       <tcpTransport port="60464" nbThreads="2" backLog="50"/>
@@ -127,12 +134,12 @@
   </changePasswordServer>
 -->
 
-  <!-- 
+    <!--
   +============================================================+
   | Kerberos server configuration                              |
   +============================================================+
   -->
-  <!--  missing atou=users,dc=example,dc=com
+    <!--  missing atou=users,dc=example,dc=com
   <kdcServer>
     <tcpTransport>
       <tcpTransport port="60088" nbThreads="4" backLog="50"/>
@@ -144,27 +151,27 @@
   </kdcServer>
 -->
 
-  <!-- 
+    <!--
   +============================================================+
   | NtpServer configuration                                    |
   +============================================================+
   -->
-  <ntpServer>
-    <tcpTransport>
-      <tcpTransport port="60123"/>
-    </tcpTransport>
-    <udpTransport>
-      <udpTransport port="60123" nbThreads="1"/>
-    </udpTransport>
-  </ntpServer>
+    <ntpServer>
+        <tcpTransport>
+            <tcpTransport port="60123"/>
+        </tcpTransport>
+        <udpTransport>
+            <udpTransport port="60123" nbThreads="1"/>
+        </udpTransport>
+    </ntpServer>
 
-  <!-- 
+    <!--
   +============================================================+
   | DnsServer configuration                                    |
   +============================================================+
   -->
-  
-  <!--  missing atou=users,dc=example,dc=com
+
+    <!--  missing atou=users,dc=example,dc=com
   <dnsServer>
     <tcpTransport>
       <tcpTransport port="8053"/>
@@ -176,78 +183,99 @@
   </dnsServer>
 -->
 
-  <!-- 
+    <!--
   +============================================================+
   | LDAPS Service configuration                                 |
   +============================================================+
   -->
-  <ldapService id="ldapsService"
-              enabled="true"
-              enableLdaps="true">
-    <tcpTransport>
-      <tcpTransport port="10686"/>
-    </tcpTransport>
-    <directoryService>#directoryService</directoryService>
-  </ldapService>
+    <ldapService id="ldapsService"
+                 enabled="true"
+                 enableLdaps="true">
+        <tcpTransport>
+            <tcpTransport port="10686"/>
+            <!--Not Working, trying to convert to integer-->
+            <!--<tcpTransport port="${ldapsPort}"/>-->
+        </tcpTransport>
+        <directoryService>#directoryService</directoryService>
+    </ldapService>
 
-  <!-- 
+    <!--
   +============================================================+
   | LDAP Service configuration                                 |
   +============================================================+
   -->
-  <ldapService id="ldapService"
-              allowAnonymousAccess="false"
-              saslHost="ldap.example.com"
-              saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
-              searchBaseDn="ou=users,ou=system"
-              maxTimeLimit="15000"
-              maxSizeLimit="1000">
-    <tcpTransport>
-      <tcpTransport port="10389" nbThreads="8" backLog="50"/>
-    </tcpTransport>
+    <ldapService id="ldapService"
+                 allowAnonymousAccess="false"
+                 saslHost="ldap.example.com"
+                 saslPrincipal="ldap/ldap.example.com@EXAMPLE.COM"
+                 searchBaseDn="ou=users,ou=system"
+                 maxTimeLimit="15000"
+                 maxSizeLimit="1000">
+        <tcpTransport>
+            <tcpTransport port="10389" nbThreads="8" backLog="50"/>
+            <!--Not Working, trying to convert to integer-->
+            <!--<tcpTransport port="${ldapPort}" nbThreads="8" backLog="50"/>-->
+        </tcpTransport>
+
+        <directoryService>#directoryService</directoryService>
+
+        <!-- The list of supported authentication mechanisms.                   -->
+        <saslMechanismHandlers>
+            <simpleMechanismHandler mech-name="SIMPLE"/>
+            <cramMd5MechanismHandler mech-name="CRAM-MD5"/>
+            <digestMd5MechanismHandler mech-name="DIGEST-MD5"/>
+            <gssapiMechanismHandler mech-name="GSSAPI"/>
+            <ntlmMechanismHandler mech-name="NTLM" ntlmProviderFqcn="com.foo.Bar"/>
+            <ntlmMechanismHandler mech-name="GSS-SPNEGO" ntlmProviderFqcn="com.foo.Bar"/>
+        </saslMechanismHandlers>
+
+        <!-- The desired quality-of-protection, used by DIGEST-MD5 and GSSAPI.  -->
+        <saslQop>
+            <s:value>auth</s:value>
+            <s:value>auth-int</s:value>
+            <s:value>auth-conf</s:value>
+        </saslQop>
+
+        <!-- The realms serviced by this SASL host, used by DIGEST-MD5 and GSSAPI. -->
+        <saslRealms>
+            <s:value>example.com</s:value>
+            <s:value>apache.org</s:value>
+        </saslRealms>
+
+        <!-- the collection of extended operation handlers to install           -->
+        <extendedOperationHandlers>
+            <startTlsHandler/>
+            <gracefulShutdownHandler/>
+            <launchDiagnosticUiHandler/>
+            <!-- The Stored Procedure Extended Operation is not stable yet and it may cause security risks.-->
+            <!--storedProcedureExtendedOperationHandler/-->
+        </extendedOperationHandlers>
+    </ldapService>
+
+
+    <apacheDS id="apacheDS"
+              synchPeriodMillis="15000"
+              allowAnonymousAccess="false">
+
+        <directoryService>#directoryService</directoryService>
+        <ldapService>#ldapService</ldapService>
+        <ldapsService>#ldapsService</ldapsService>
+    </apacheDS>
+
+    <osgix:cm-properties id="cmProps" persistent-id="org.apache.directory.ldap">
+        <spring:prop key="ldapPort">10389</spring:prop>
+        <spring:prop key="ldapsPort">10686</spring:prop>
+    </osgix:cm-properties>
+
+    <ctx:property-placeholder properties-ref="cmProps"/>
+
+    <osgi:service ref="directoryService">
+        <osgi:interfaces>
+            <spring:value>org.apache.directory.server.core.DirectoryService</spring:value>
+        </osgi:interfaces>
+        <osgi:service-properties>
+            <spring:entry key="name" value="default"/>
+        </osgi:service-properties>
+    </osgi:service>
 
-    <directoryService>#directoryService</directoryService>
-
-    <!-- The list of supported authentication mechanisms.                   -->
-    <saslMechanismHandlers>
-      <simpleMechanismHandler mech-name="SIMPLE"/>
-      <cramMd5MechanismHandler mech-name="CRAM-MD5" />
-      <digestMd5MechanismHandler mech-name="DIGEST-MD5" />
-      <gssapiMechanismHandler mech-name="GSSAPI" />
-      <ntlmMechanismHandler mech-name="NTLM" ntlmProviderFqcn="com.foo.Bar"/>
-      <ntlmMechanismHandler mech-name="GSS-SPNEGO" ntlmProviderFqcn="com.foo.Bar"/>
-    </saslMechanismHandlers>
-
-    <!-- The desired quality-of-protection, used by DIGEST-MD5 and GSSAPI.  -->
-    <saslQop>
-      <s:value>auth</s:value>
-      <s:value>auth-int</s:value>
-      <s:value>auth-conf</s:value>
-    </saslQop>
-
-    <!-- The realms serviced by this SASL host, used by DIGEST-MD5 and GSSAPI. -->
-    <saslRealms>
-      <s:value>example.com</s:value>
-      <s:value>apache.org</s:value>
-    </saslRealms>
-
-    <!-- the collection of extended operation handlers to install           -->
-    <extendedOperationHandlers>
-      <startTlsHandler/>
-      <gracefulShutdownHandler/>
-      <launchDiagnosticUiHandler/>
-      <!-- The Stored Procedure Extended Operation is not stable yet and it may cause security risks.-->
-      <!--storedProcedureExtendedOperationHandler/-->
-    </extendedOperationHandlers>
-  </ldapService>
-
-
-  <apacheDS id="apacheDS"
-            synchPeriodMillis="15000"
-            allowAnonymousAccess="false">
-
-    <directoryService>#directoryService</directoryService>
-    <ldapService>#ldapService</ldapService>
-    <ldapsService>#ldapsService</ldapsService>
-  </apacheDS>
 </spring:beans>

Added: directory/sandbox/ccustine/apacheds-kernel/commands/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/pom.xml?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/pom.xml (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/pom.xml Sun Apr  5 17:43:23 2009
@@ -0,0 +1,99 @@
+<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">
+
+    <!--
+
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You 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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.directory.server</groupId>
+        <artifactId>apache-directory-osgi</artifactId>
+        <version>2.0.0-SNAPSHOT</version>
+    </parent>
+
+    <groupId>org.apache.directory.server</groupId>
+    <artifactId>org.apache.directory.server.commands</artifactId>
+    <packaging>bundle</packaging>
+    <version>2.0.0-SNAPSHOT</version>
+    <name>Apache Directory Server :: Commands</name>
+
+    <description>
+        Provides the commands for managing the Directory Service
+    </description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.directory.server</groupId>
+            <artifactId>apacheds-osgi</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.servicemix.kernel.gshell</groupId>
+            <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.felix</groupId>
+            <artifactId>org.osgi.compendium</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.osgi</groupId>
+            <artifactId>spring-osgi-core</artifactId>
+        </dependency>
+
+        <dependency>
+             <groupId>org.apache.geronimo.specs</groupId>
+             <artifactId>geronimo-annotation_1.0_spec</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
+                        <Export-Package>
+                            org.apache.directory.kernel.commands*;version=${project.version};-split-package:=merge-first
+                        </Export-Package>
+                        <Import-Package>
+                            org.apache.geronimo.gshell.wisdom.command,
+                            org.apache.geronimo.gshell.wisdom.registry,
+                            org.apache.servicemix.kernel.gshell.core,
+                            org.apache.directory.server.configuration,
+                            *
+                        </Import-Package>
+                        <Private-Package>!*</Private-Package>
+                        <Spring-Context>*;publish-context:=false;create-asynchronously:=false</Spring-Context>
+                    </instructions>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/DirectoryServiceSupport.java
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/DirectoryServiceSupport.java?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/DirectoryServiceSupport.java (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/DirectoryServiceSupport.java Sun Apr  5 17:43:23 2009
@@ -0,0 +1,14 @@
+package org.apache.directory.kernel.commands;
+
+import org.apache.servicemix.kernel.gshell.core.OsgiCommandSupport;
+import org.apache.directory.server.core.DirectoryService;
+
+public abstract class DirectoryServiceSupport extends OsgiCommandSupport {
+    protected DirectoryService directoryService;
+
+    public void setDirectoryService(DirectoryService directoryService) {
+        this.directoryService = directoryService;
+    }
+
+    protected abstract Object doExecute() throws Exception;
+}

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/LoadCommand.java
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/LoadCommand.java?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/LoadCommand.java (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/ldif/LoadCommand.java Sun Apr  5 17:43:23 2009
@@ -0,0 +1,118 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.directory.kernel.commands.ldif;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.directory.kernel.commands.DirectoryServiceSupport;
+import org.apache.directory.server.constants.ApacheSchemaConstants;
+import org.apache.directory.server.constants.ServerDNConstants;
+import org.apache.directory.server.core.DirectoryService;
+import org.apache.directory.server.core.entry.ClonedServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
+import org.apache.directory.server.protocol.shared.store.LdifFileLoader;
+import org.apache.directory.server.protocol.shared.store.LdifLoadFilter;
+import org.apache.directory.shared.ldap.constants.SchemaConstants;
+import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.shared.ldap.util.StringTools;
+import org.apache.geronimo.gshell.clp.Argument;
+
+public class LoadCommand extends DirectoryServiceSupport {
+
+    @Argument(required = true, description = "LDIF File")
+    String ldifFile;
+
+    protected Object doExecute() throws Exception {
+
+        List<LdifLoadFilter> ldifFilters = new ArrayList<LdifLoadFilter>();
+        File ldif = new File(ldifFile);
+        ClonedServerEntry fileEntry = null;
+
+        try
+        {
+            fileEntry = directoryService.getAdminSession().lookup( buildProtectedFileEntryDn( ldif ) );
+        }
+        catch( Exception e )
+        {
+            // if does not exist
+        }
+
+        if ( fileEntry != null )
+        {
+            String time = ((ClonedServerEntry)fileEntry).getOriginalEntry().get( SchemaConstants.CREATE_TIMESTAMP_AT ).getString();
+            io.out.println( "Load of LDIF file '" + getCanonical( ldif )
+                + "' skipped.  It has already been loaded on " + time + "." );
+        }
+        else
+        {
+            LdifFileLoader loader = new LdifFileLoader( directoryService.getAdminSession(), ldif, ldifFilters );
+            int count = loader.execute();
+            io.out.println("Loaded " + count + " entries from LDIF file '" + getCanonical( ldif ) + "'" );
+//            addFileEntry( ldif, directoryService );
+        }
+        return null;
+    }
+
+    private LdapDN buildProtectedFileEntryDn( File ldif ) throws Exception
+    {
+        String fileSep = File.separatorChar == '\\' ?
+            ApacheSchemaConstants.WINDOWS_FILE_AT :
+            ApacheSchemaConstants.UNIX_FILE_AT;
+
+        return  new LdapDN( fileSep +
+            "=" +
+            StringTools.dumpHexPairs( StringTools.getBytesUtf8( getCanonical( ldif ) ) ) +
+            "," +
+            ServerDNConstants.LDIF_FILES_DN );
+    }
+
+    private String getCanonical( File file )
+    {
+        String canonical;
+
+        try
+        {
+            canonical = file.getCanonicalPath();
+        }
+        catch ( IOException e )
+        {
+            System.out.println("could not get canonical path");
+            return null;
+        }
+
+        return StringUtils.replace( canonical, "\\", "\\\\" );
+    }
+
+    private void addFileEntry( File ldif, DirectoryService directoryService ) throws Exception
+    {
+        String rdnAttr = File.separatorChar == '\\' ?
+            ApacheSchemaConstants.WINDOWS_FILE_AT :
+            ApacheSchemaConstants.UNIX_FILE_AT;
+        String oc = File.separatorChar == '\\' ? ApacheSchemaConstants.WINDOWS_FILE_OC : ApacheSchemaConstants.UNIX_FILE_OC;
+
+        ServerEntry entry = directoryService.newEntry( buildProtectedFileEntryDn( ldif ) );
+        entry.add( rdnAttr, getCanonical( ldif ) );
+        entry.add( SchemaConstants.OBJECT_CLASS_AT, SchemaConstants.TOP_OC, oc );
+        directoryService.getAdminSession().add( entry );
+    }
+
+
+}

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/ListCommand.java
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/ListCommand.java?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/ListCommand.java (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/java/org/apache/directory/kernel/commands/partitions/ListCommand.java Sun Apr  5 17:43:23 2009
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ */
+package org.apache.directory.kernel.commands.partitions;
+
+import java.io.File;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Set;
+import java.util.HashSet;
+
+import org.apache.commons.lang.StringUtils;
+import org.apache.directory.server.constants.ApacheSchemaConstants;
+import org.apache.directory.server.constants.ServerDNConstants;
+import org.apache.directory.server.core.DirectoryService;
+import org.apache.directory.server.core.partition.Partition;
+import org.apache.directory.server.core.entry.ClonedServerEntry;
+import org.apache.directory.server.core.entry.ServerEntry;
+import org.apache.directory.server.protocol.shared.store.LdifFileLoader;
+import org.apache.directory.server.protocol.shared.store.LdifLoadFilter;
+import org.apache.directory.shared.ldap.constants.SchemaConstants;
+import org.apache.directory.shared.ldap.name.LdapDN;
+import org.apache.directory.shared.ldap.util.StringTools;
+import org.apache.directory.kernel.commands.DirectoryServiceSupport;
+import org.apache.geronimo.gshell.clp.Argument;
+import org.apache.servicemix.kernel.gshell.core.OsgiCommandSupport;
+
+public class ListCommand extends DirectoryServiceSupport {
+
+    protected Object doExecute() throws Exception {
+        Set<? extends Partition> partitions = directoryService.getPartitions();
+
+        if (null == partitions || partitions.size() == 0) {
+            io.out.println("No partitions to list...");
+            return null;
+        }
+
+        io.out.println("Partitions");
+        io.out.println("================================");
+        
+        for (Partition partition : partitions) {
+            io.out.println("Partition ID   : " + partition.getId());
+            io.out.println("Suffix         : " + partition.getSuffix());
+            io.out.println("Partition Type : " + partition.getClass().getName());
+            io.out.println("---------");
+        }
+
+        return null;
+    }
+
+
+}
\ No newline at end of file

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/commands.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/commands.xml?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/commands.xml (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/META-INF/spring/commands.xml Sun Apr  5 17:43:23 2009
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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.
+
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xmlns:osgi="http://www.springframework.org/schema/osgi"
+       xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
+       xmlns:util="http://www.springframework.org/schema/util"
+       xmlns:gshell="http://servicemix.apache.org/schema/servicemix-gshell"
+       xsi:schemaLocation="
+  http://www.springframework.org/schema/beans
+  http://www.springframework.org/schema/beans/spring-beans.xsd
+  http://www.springframework.org/schema/osgi
+  http://www.springframework.org/schema/osgi/spring-osgi.xsd
+  http://www.springframework.org/schema/osgi-compendium
+  http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd
+  http://www.springframework.org/schema/util
+  http://www.springframework.org/schema/util/spring-util.xsd
+  http://servicemix.apache.org/schema/servicemix-gshell
+  http://servicemix.apache.org/schema/servicemix-gshell/servicemix-gshell.xsd">
+
+    <import resource="classpath:org/apache/servicemix/kernel/gshell/core/commands.xml" />
+
+    <gshell:command-bundle>
+        <gshell:command name="ldif/load">
+            <gshell:action class="org.apache.directory.kernel.commands.ldif.LoadCommand">
+                <property name="directoryService" ref="directoryService"/>
+            </gshell:action>
+        </gshell:command>
+    </gshell:command-bundle>
+    <gshell:command-bundle>
+        <gshell:command name="partitions/list">
+            <gshell:action class="org.apache.directory.kernel.commands.partitions.ListCommand">
+                <property name="directoryService" ref="directoryService"/>
+            </gshell:action>
+        </gshell:command>
+    </gshell:command-bundle>
+
+    <osgi:reference id="directoryService" interface="org.apache.directory.server.core.DirectoryService" />
+
+</beans>
\ No newline at end of file

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/LoadCommand.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/LoadCommand.properties?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/LoadCommand.properties (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/ldif/LoadCommand.properties Sun Apr  5 17:43:23 2009
@@ -0,0 +1,27 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you 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.
+##
+
+##
+## $Rev: 703511 $ $Date: 2008-10-10 18:07:36 +0200 (Fri, 10 Oct 2008) $
+##
+
+command.description=Load an LDIF file from the system path.
+
+command.manual=\
+  TODO: create man page
\ No newline at end of file

Added: directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/ListCommand.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/ListCommand.properties?rev=762124&view=auto
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/ListCommand.properties (added)
+++ directory/sandbox/ccustine/apacheds-kernel/commands/src/main/resources/org/apache/directory/kernel/commands/partitions/ListCommand.properties Sun Apr  5 17:43:23 2009
@@ -0,0 +1,27 @@
+##
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you 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.
+##
+
+##
+## $Rev: 703511 $ $Date: 2008-10-10 18:07:36 +0200 (Fri, 10 Oct 2008) $
+##
+
+command.description=Load an LDIF file from the system path.
+
+command.manual=\
+  TODO: create man page
\ No newline at end of file

Modified: directory/sandbox/ccustine/apacheds-kernel/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/ccustine/apacheds-kernel/pom.xml?rev=762124&r1=762123&r2=762124&view=diff
==============================================================================
--- directory/sandbox/ccustine/apacheds-kernel/pom.xml (original)
+++ directory/sandbox/ccustine/apacheds-kernel/pom.xml Sun Apr  5 17:43:23 2009
@@ -1,419 +1,426 @@
 <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">
 
-  <!--
+    <!--
 
-      Licensed to the Apache Software Foundation (ASF) under one or more
-      contributor license agreements.  See the NOTICE file distributed with
-      this work for additional information regarding copyright ownership.
-      The ASF licenses this file to You 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.
-  -->
-
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.apache.directory.server</groupId>
-  <artifactId>apache-directory-osgi</artifactId>
-  <packaging>pom</packaging>
-  <version>2.0.0-SNAPSHOT</version>
-  <name>Apache Directory :: Parent POM</name>
-
-  <modules>
-      <module>branding</module>
-      <module>assembly</module>
-  </modules>
-
-  <prerequisites>
-      <maven>2.0.9</maven>
-  </prerequisites>
-
-  <properties>
-      <apache.directory.version>1.5.5-SNAPSHOT</apache.directory.version>
-      <aopalliance.version>1.0_1</aopalliance.version>
-      <asm.version>2.2.3_1</asm.version>
-      <cglib.version>2.1_3</cglib.version>
-      <commons.io.version>1.3.2_1</commons.io.version>
-      <commons.logging.version>1.1.1</commons.logging.version>
-      <commons.collections.version>1.1.1</commons.collections.version>
-      <derby.version>10.4.2.0</derby.version>
-      <depends.maven.plugin.version>1.0</depends.maven.plugin.version>
-      <easymock.version>2.4</easymock.version>
-      <felix.configadmin.version>1.0.4</felix.configadmin.version>
-      <felix.plugin.version>1.4.3</felix.plugin.version>
-      <felix.framework.version>1.5.0-r752991</felix.framework.version>
-      <felix.osgi.version>1.2.0</felix.osgi.version>
-      <felix.compendium.version>1.2.0</felix.compendium.version>
-      <felix.bundlerepository.version>1.2.0</felix.bundlerepository.version>
-      <felix.prefs.version>1.0.2</felix.prefs.version>
-      <jline.version>0.9.94</jline.version>
-      <junit.version>3.8.2_1</junit.version>
-      <log4j.version>1.2.14</log4j.version>
-      <lucene.version>2.4.1</lucene.version>
-      <pax.logging.version>1.1.1</pax.logging.version>
-      <servicemix.kernel.version>1.1.0</servicemix.kernel.version>
-      <servicemix.legal.version>1.0</servicemix.legal.version>
-      <servicemix.specs.version>1.3.0</servicemix.specs.version>
-      <servicemix.utils.version>1.1.0</servicemix.utils.version>
-      <spring.osgi.version>1.2.0-m2</spring.osgi.version>
-      <spring.version>2.5.6</spring.version>
-      <woodstox.version>3.2.7_1</woodstox.version>
-      <wsdl4j.version>1.6.1_1</wsdl4j.version>
-      <xbean.version>3.5</xbean.version>
-      <geronimo.stax.version>1.0.1</geronimo.stax.version>
-  </properties>
-
-   <repositories>
-       <!-- Default repository -->
-       <repository>
-           <id>central</id>
-           <name>Default maven repo</name>
-           <url>http://repo1.maven.org/maven2</url>
-           <releases>
-               <enabled>true</enabled>
-           </releases>
-           <snapshots>     
-               <enabled>false</enabled>
-           </snapshots>     
-       </repository>
-       <!-- ServiceMix repo -->
-       <repository>
-           <id>servicemix</id>
-           <name>Apache ServiceMix Repository</name>
-           <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
-           <releases>
-               <enabled>true</enabled>
-           </releases>
-           <snapshots>     
-               <enabled>false</enabled>
-           </snapshots>     
-       </repository>
-       <!-- Apache snapshots -->
-       <repository>
-           <id>apache-snapshots</id>
-           <name>Apache Snapshot repository</name>
-           <url>http://repository.apache.org/content/groups/snapshots-group</url>
-           <releases>
-               <enabled>false</enabled>
-           </releases>
-           <snapshots>
-               <enabled>true</enabled>
-           </snapshots>
-       </repository>
-       <!-- Spring milestones repository -->
-       <!-- TODO: remove this repo when spring-dm 1.2.0 is out -->
-       <repository>
-           <id>spring-milestone</id>
-           <name>Spring Portfolio Milestone Repository</name>
-           <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
-           <releases>
-               <enabled>true</enabled>
-           </releases>
-           <snapshots>
-               <enabled>false</enabled>
-           </snapshots>
-       </repository>
-   </repositories>
-
-  <pluginRepositories>
-      <!-- Apache snapshot -->
-      <pluginRepository>
-          <id>apache-snapshots</id>
-          <name>Apache Snapshot repository</name>
-          <url>http://repository.apache.org/content/groups/snapshots-group</url>
-          <releases>
-              <enabled>false</enabled>
-          </releases>
-          <snapshots>
-              <enabled>true</enabled>
-          </snapshots>
-      </pluginRepository>
-  </pluginRepositories>
-
-  <dependencies>
-      <dependency>
-          <groupId>org.apache.servicemix.bundles</groupId>
-          <artifactId>org.apache.servicemix.bundles.junit</artifactId>
-          <scope>test</scope>
-      </dependency>
-  </dependencies>
+        Licensed to the Apache Software Foundation (ASF) under one or more
+        contributor license agreements.  See the NOTICE file distributed with
+        this work for additional information regarding copyright ownership.
+        The ASF licenses this file to You 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.
+    -->
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.directory.server</groupId>
+    <artifactId>apache-directory-osgi</artifactId>
+    <packaging>pom</packaging>
+    <version>2.0.0-SNAPSHOT</version>
+    <name>Apache Directory :: Parent POM</name>
+
+    <modules>
+        <module>branding</module>
+        <module>assembly</module>
+        <module>commands</module>
+    </modules>
+
+    <prerequisites>
+        <maven>2.0.9</maven>
+    </prerequisites>
+
+    <properties>
+        <apache.directory.version>1.5.5-SNAPSHOT</apache.directory.version>
+        <geronimo.annotation.version>1.1.1</geronimo.annotation.version>
+        <aopalliance.version>1.0_1</aopalliance.version>
+        <asm.version>2.2.3_1</asm.version>
+        <cglib.version>2.1_3_1</cglib.version>
+        <commons.io.version>1.3.2_1</commons.io.version>
+        <commons.logging.version>1.1.1</commons.logging.version>
+        <commons.collections.version>1.1.1</commons.collections.version>
+        <derby.version>10.4.2.0</derby.version>
+        <depends.maven.plugin.version>1.0</depends.maven.plugin.version>
+        <easymock.version>2.4</easymock.version>
+        <felix.configadmin.version>1.0.4</felix.configadmin.version>
+        <felix.plugin.version>1.4.3</felix.plugin.version>
+        <felix.framework.version>1.5.0-r752991</felix.framework.version>
+        <felix.osgi.version>1.2.0</felix.osgi.version>
+        <felix.compendium.version>1.2.0</felix.compendium.version>
+        <felix.bundlerepository.version>1.2.0</felix.bundlerepository.version>
+        <felix.prefs.version>1.0.2</felix.prefs.version>
+        <jline.version>0.9.94</jline.version>
+        <junit.version>3.8.2_1</junit.version>
+        <log4j.version>1.2.14</log4j.version>
+        <lucene.version>2.4.1</lucene.version>
+        <pax.logging.version>1.1.1</pax.logging.version>
+        <servicemix.kernel.version>1.2.0-SNAPSHOT</servicemix.kernel.version>
+        <servicemix.legal.version>1.0</servicemix.legal.version>
+        <servicemix.specs.version>1.3.0</servicemix.specs.version>
+        <servicemix.utils.version>1.1.0</servicemix.utils.version>
+        <spring.osgi.version>1.2.0-m2</spring.osgi.version>
+        <spring.version>2.5.6</spring.version>
+        <woodstox.version>3.2.7_1</woodstox.version>
+        <wsdl4j.version>1.6.1_1</wsdl4j.version>
+        <xbean.version>3.5</xbean.version>
+        <geronimo.stax.version>1.0.1</geronimo.stax.version>
+    </properties>
+
+    <repositories>
+        <!-- Default repository -->
+        <repository>
+            <id>central</id>
+            <name>Default maven repo</name>
+            <url>http://repo1.maven.org/maven2</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+        <!-- ServiceMix repo -->
+        <repository>
+            <id>servicemix</id>
+            <name>Apache ServiceMix Repository</name>
+            <url>http://svn.apache.org/repos/asf/servicemix/m2-repo</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+        <!-- Apache snapshots -->
+        <repository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshot repository</name>
+            <url>http://repository.apache.org/content/groups/snapshots-group</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </repository>
+        <!-- Spring milestones repository -->
+        <!-- TODO: remove this repo when spring-dm 1.2.0 is out -->
+        <repository>
+            <id>spring-milestone</id>
+            <name>Spring Portfolio Milestone Repository</name>
+            <url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
+            <releases>
+                <enabled>true</enabled>
+            </releases>
+            <snapshots>
+                <enabled>false</enabled>
+            </snapshots>
+        </repository>
+    </repositories>
+
+    <pluginRepositories>
+        <!-- Apache snapshot -->
+        <pluginRepository>
+            <id>apache-snapshots</id>
+            <name>Apache Snapshot repository</name>
+            <url>http://repository.apache.org/content/groups/snapshots-group</url>
+            <releases>
+                <enabled>false</enabled>
+            </releases>
+            <snapshots>
+                <enabled>true</enabled>
+            </snapshots>
+        </pluginRepository>
+    </pluginRepositories>
 
-  <dependencyManagement>
     <dependencies>
-      <dependency>
-          <groupId>org.apache.directory.server</groupId>
-          <artifactId>apacheds-osgi</artifactId>
-          <version>${apache.directory.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-aop</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-beans</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-core</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-context</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-jms</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework.osgi</groupId>
-          <artifactId>spring-osgi-test</artifactId>
-          <version>${spring.osgi.version}</version>
-          <exclusions>
-              <exclusion>
-                  <groupId>org.springframework.osgi</groupId>
-                  <artifactId>asm.osgi</artifactId>
-              </exclusion>
-          </exclusions>
-      </dependency>
-      <dependency>
-          <groupId>log4j</groupId>
-          <artifactId>log4j</artifactId>
-          <version>${log4j.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>commons-logging</groupId>
-          <artifactId>commons-logging</artifactId>
-          <version>${commons.logging.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.felix</groupId>
-          <artifactId>org.apache.felix.prefs</artifactId>
-          <version>${felix.prefs.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.felix</groupId>
-          <artifactId>org.apache.felix.framework</artifactId>
-          <version>${felix.framework.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.felix</groupId>
-          <artifactId>org.osgi.compendium</artifactId>
-          <version>${felix.compendium.version}</version>
-          <exclusions>
-              <exclusion>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>org.osgi.foundation</artifactId>
-              </exclusion>
-              <exclusion>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>javax.servlet</artifactId>
-              </exclusion>
-          </exclusions>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.xbean</groupId>
-          <artifactId>xbean-classloader</artifactId>
-          <version>${xbean.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.xbean</groupId>
-          <artifactId>xbean-naming</artifactId>
-          <version>${xbean.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework.osgi</groupId>
-          <artifactId>spring-osgi-core</artifactId>
-          <version>${spring.osgi.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.felix</groupId>
-          <artifactId>org.osgi.core</artifactId>
-          <version>${felix.osgi.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.bundles</groupId>
-          <artifactId>org.apache.servicemix.bundles.junit</artifactId>
-          <version>${junit.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel.gshell</groupId>
-          <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId>
-          <version>${servicemix.kernel.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel</groupId>
-          <artifactId>org.apache.servicemix.kernel.filemonitor</artifactId>
-          <version>${servicemix.kernel.version}</version>
-          <exclusions>
-              <exclusion>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>org.osgi.core</artifactId>
-              </exclusion>
-          </exclusions>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel</groupId>
-          <artifactId>org.apache.servicemix.kernel.management</artifactId>
-          <version>${servicemix.kernel.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel.testing</groupId>
-          <artifactId>org.apache.servicemix.kernel.testing.support</artifactId>
-          <version>${servicemix.kernel.version}</version>
-          <exclusions>
-              <exclusion>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>org.osgi.core</artifactId>
-              </exclusion>
-          </exclusions>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.directory.server</groupId>
-          <artifactId>org.apache.directory.server.branding</artifactId>
-          <version>${pom.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel</groupId>
-          <artifactId>org.apache.servicemix.kernel.main</artifactId>
-          <version>${servicemix.kernel.version}</version>
-          <exclusions>
-              <exclusion>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>org.osgi.core</artifactId>
-              </exclusion>
-          </exclusions>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.legal</groupId>
-          <artifactId>legal</artifactId>
-          <version>${servicemix.legal.version}</version>
-          <type>xml</type>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel</groupId>
-          <artifactId>apache-servicemix-kernel</artifactId>
-          <version>${servicemix.kernel.version}</version>
-          <type>zip</type>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix.kernel</groupId>
-          <artifactId>apache-servicemix-kernel</artifactId>
-          <version>${servicemix.kernel.version}</version>
-          <type>tar.gz</type>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework.osgi</groupId>
-          <artifactId>spring-osgi-core</artifactId>
-          <version>${spring.osgi.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.springframework</groupId>
-          <artifactId>spring-tx</artifactId>
-          <version>${spring.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.easymock</groupId>
-          <artifactId>easymock</artifactId>
-          <version>${easymock.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.derby</groupId>
-          <artifactId>derby</artifactId>
-          <version>${derby.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.lucene</groupId>
-          <artifactId>lucene-core</artifactId>
-          <version>${lucene.version}</version>
-      </dependency>
-      <dependency>
-          <groupId>org.apache.servicemix</groupId>
-          <artifactId>servicemix-utils</artifactId>
-          <version>${servicemix.utils.version}</version>
-      </dependency>
+        <dependency>
+            <groupId>org.apache.servicemix.bundles</groupId>
+            <artifactId>org.apache.servicemix.bundles.junit</artifactId>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
-  </dependencyManagement>
 
-  <build>
-      <defaultGoal>install</defaultGoal>
-
-      <pluginManagement>
-          <plugins>
-              <plugin>
-                  <groupId>org.apache.felix</groupId>
-                  <artifactId>maven-bundle-plugin</artifactId>
-                  <version>${felix.plugin.version}</version>
-                  <extensions>true</extensions>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-compiler-plugin</artifactId>
-                  <version>2.0.2</version>
-                  <configuration>
-                      <source>1.5</source>
-                      <target>1.5</target>
-                      <maxmem>256M</maxmem>
-                      <fork>${compiler.fork}</fork>
-                  </configuration>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-surefire-plugin</artifactId>
-                  <version>2.4.2</version>
-                  <configuration>
-                      <failIfNoTests>false</failIfNoTests>
-                  </configuration>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-assembly-plugin</artifactId>
-                  <version>2.2-beta-3</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-dependency-plugin</artifactId>
-                  <version>2.0</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-jar-plugin</artifactId>
-                  <version>2.2</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-shade-plugin</artifactId>
-                  <version>1.0</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-javadoc-plugin</artifactId>
-                  <version>2.5</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-jxr-plugin</artifactId>
-                  <version>2.0</version>
-              </plugin>
-              <plugin>
-                  <groupId>org.apache.maven.plugins</groupId>
-                  <artifactId>maven-resources-plugin</artifactId>
-                  <version>2.3</version>
-              </plugin>
-          </plugins>
-      </pluginManagement>
-  </build>
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.apache.geronimo.specs</groupId>
+                <artifactId>geronimo-annotation_1.0_spec</artifactId>
+                <version>${geronimo.annotation.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.directory.server</groupId>
+                <artifactId>apacheds-osgi</artifactId>
+                <version>${apache.directory.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-aop</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-beans</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-core</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-context</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-jms</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.osgi</groupId>
+                <artifactId>spring-osgi-test</artifactId>
+                <version>${spring.osgi.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.springframework.osgi</groupId>
+                        <artifactId>asm.osgi</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>log4j</groupId>
+                <artifactId>log4j</artifactId>
+                <version>${log4j.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>commons-logging</groupId>
+                <artifactId>commons-logging</artifactId>
+                <version>${commons.logging.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.prefs</artifactId>
+                <version>${felix.prefs.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.apache.felix.framework</artifactId>
+                <version>${felix.framework.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.compendium</artifactId>
+                <version>${felix.compendium.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.apache.felix</groupId>
+                        <artifactId>org.osgi.foundation</artifactId>
+                    </exclusion>
+                    <exclusion>
+                        <groupId>org.apache.felix</groupId>
+                        <artifactId>javax.servlet</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.xbean</groupId>
+                <artifactId>xbean-classloader</artifactId>
+                <version>${xbean.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.xbean</groupId>
+                <artifactId>xbean-naming</artifactId>
+                <version>${xbean.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.osgi</groupId>
+                <artifactId>spring-osgi-core</artifactId>
+                <version>${spring.osgi.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>org.osgi.core</artifactId>
+                <version>${felix.osgi.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.bundles</groupId>
+                <artifactId>org.apache.servicemix.bundles.junit</artifactId>
+                <version>${junit.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel.gshell</groupId>
+                <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId>
+                <version>${servicemix.kernel.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel</groupId>
+                <artifactId>org.apache.servicemix.kernel.filemonitor</artifactId>
+                <version>${servicemix.kernel.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.apache.felix</groupId>
+                        <artifactId>org.osgi.core</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel</groupId>
+                <artifactId>org.apache.servicemix.kernel.management</artifactId>
+                <version>${servicemix.kernel.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel.testing</groupId>
+                <artifactId>org.apache.servicemix.kernel.testing.support</artifactId>
+                <version>${servicemix.kernel.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.apache.felix</groupId>
+                        <artifactId>org.osgi.core</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.directory.server</groupId>
+                <artifactId>org.apache.directory.server.branding</artifactId>
+                <version>${pom.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel</groupId>
+                <artifactId>org.apache.servicemix.kernel.main</artifactId>
+                <version>${servicemix.kernel.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.apache.felix</groupId>
+                        <artifactId>org.osgi.core</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.legal</groupId>
+                <artifactId>legal</artifactId>
+                <version>${servicemix.legal.version}</version>
+                <type>xml</type>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel</groupId>
+                <artifactId>apache-servicemix-kernel</artifactId>
+                <version>${servicemix.kernel.version}</version>
+                <type>zip</type>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix.kernel</groupId>
+                <artifactId>apache-servicemix-kernel</artifactId>
+                <version>${servicemix.kernel.version}</version>
+                <type>tar.gz</type>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework.osgi</groupId>
+                <artifactId>spring-osgi-core</artifactId>
+                <version>${spring.osgi.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.springframework</groupId>
+                <artifactId>spring-tx</artifactId>
+                <version>${spring.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.easymock</groupId>
+                <artifactId>easymock</artifactId>
+                <version>${easymock.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.derby</groupId>
+                <artifactId>derby</artifactId>
+                <version>${derby.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.lucene</groupId>
+                <artifactId>lucene-core</artifactId>
+                <version>${lucene.version}</version>
+            </dependency>
+            <dependency>
+                <groupId>org.apache.servicemix</groupId>
+                <artifactId>servicemix-utils</artifactId>
+                <version>${servicemix.utils.version}</version>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <build>
+        <defaultGoal>install</defaultGoal>
+
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <groupId>org.apache.felix</groupId>
+                    <artifactId>maven-bundle-plugin</artifactId>
+                    <version>${felix.plugin.version}</version>
+                    <extensions>true</extensions>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <version>2.0.2</version>
+                    <configuration>
+                        <source>1.5</source>
+                        <target>1.5</target>
+                        <maxmem>256M</maxmem>
+                        <fork>${compiler.fork}</fork>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-surefire-plugin</artifactId>
+                    <version>2.4.2</version>
+                    <configuration>
+                        <failIfNoTests>false</failIfNoTests>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-assembly-plugin</artifactId>
+                    <version>2.2-beta-3</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-dependency-plugin</artifactId>
+                    <version>2.0</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-jar-plugin</artifactId>
+                    <version>2.2</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-shade-plugin</artifactId>
+                    <version>1.0</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-javadoc-plugin</artifactId>
+                    <version>2.5</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-jxr-plugin</artifactId>
+                    <version>2.0</version>
+                </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-resources-plugin</artifactId>
+                    <version>2.3</version>
+                </plugin>
+            </plugins>
+        </pluginManagement>
+    </build>
 
 </project>



Mime
View raw message