directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ciprian Ciubotariu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2150) Deploy and start apacheds-osgi in karaf
Date Tue, 31 May 2016 13:54:12 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15307756#comment-15307756
] 

Ciprian Ciubotariu commented on DIRSERVER-2150:
-----------------------------------------------

Patch for directory-shared:

diff --git a/ldap/codec/standalone/pom.xml b/ldap/codec/standalone/pom.xml               
                                                                                         
           
index 94efdac..5b30bc4 100644                                                            
                                                                                         
           
--- a/ldap/codec/standalone/pom.xml                                                      
                                                                                         
           
+++ b/ldap/codec/standalone/pom.xml                                                      
                                                                                         
           
@@ -68,5 +68,39 @@                                                                       
                                                                                         
           
       <artifactId>mina-core</artifactId>                                    
                                                                                         
                       
     </dependency>                                                                 
                                                                                         
                 
   </dependencies>                                                                 
                                                                                         
                 
+                                                                                        
                                                                                         
           
+  <build>                                                                         
                                                                                         
                 
+    <plugins>                                                                     
                                                                                         
                 
+      <plugin>                                                                    
                                                                                         
                 
+        <artifactId>maven-jar-plugin</artifactId>                           
                                                                                         
                       
+        <configuration>                                                           
                                                                                         
                 
+          <archive>                                                               
                                                                                         
                 
+            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                                                                                         
     
+          </archive>                                                              
                                                                                         
                 
+        </configuration>                                                          
                                                                                         
                 
+      </plugin>                                                                   
                                                                                         
                 
+      <plugin>                                                                    
                                                                                         
                 
+        <groupId>org.apache.felix</groupId>                                 
                                                                                         
                       
+        <artifactId>maven-bundle-plugin</artifactId>                        
                                                                                         
                       
+        <configuration>                                                           
                                                                                         
                 
+          <supportedProjectTypes>                                                 
                                                                                         
                 
+            <supportedProjectType>jar</supportedProjectType>                
                                                                                         
                       
+          </supportedProjectTypes>                                                
                                                                                         
                 
+          <instructions>                                                          
                                                                                         
                 
+            <Export-Package>*</Export-Package>                              
                                                                                         
                       
+          </instructions>
+        </configuration>
+        <executions>
+          <execution>
+            <id>bundle-manifest</id>
+            <phase>process-classes</phase>
+            <goals>
+              <goal>manifest</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
   
 </project>
diff --git a/ldap/schema/data/pom.xml b/ldap/schema/data/pom.xml
index 2e8d06c..599a15a 100644
--- a/ldap/schema/data/pom.xml
+++ b/ldap/schema/data/pom.xml
@@ -99,6 +99,8 @@
                   <!-- Replace the file separator ('/' on Unix, '\' on Windows) by a '/'
- Useful on Windows -->
                   <replacefilter token="${file.separator}" value="/" />
                 </replace>
+
+                <attachartifact file="${schema.index}" classifier="schema" type="index"/>
               </target>
             </configuration>
             <goals>


> Deploy and start apacheds-osgi in karaf
> ---------------------------------------
>
>                 Key: DIRSERVER-2150
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2150
>             Project: Directory ApacheDS
>          Issue Type: Improvement
>    Affects Versions: 2.0.0-M22
>         Environment: Linux, Java7, Karaf 4.0.4
>            Reporter: Ciprian Ciubotariu
>              Labels: osgi
>
> I want to automate some karaf integration tests that rely on a LDAP server, and for that
purpose I thought I could use apacheds running in karaf. I found the apacheds-osgi module
and brought it to a point where one can start a LDAP server in karaf using aries blueprints
and some support code (unfortunately duplicated with minor changes) from apacheds-service
and apacheds-service-builder.
> I will attach patches for SVN to the issue, but one can review the changes on github
for [directory-shared|https://github.com/apache/directory-shared/compare/trunk...CMoH:osgi]
and [directory-server|https://github.com/apache/directory-server/compare/trunk...CMoH:osgi]
> Thank



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message