Hi, 

Thank you for your answer, I understand than the problem come from maven , 
I have never used maven and I would like to know how I can answer to the
challenge, the challenge is to use a project inside an other project.

I am really new with OSGi and new with maven.
Then to do it , step by step ?  Where are  the errors in these 3 first steps
?

1 I create maven module "personservice-message", the father of this module
is "personservice-parent"
2 I  create 3 package 
2.1 One for the activator  : com.bw.osgi.provider
2.2 One for the interface  : com.bw.osgi.provider.able
2.3 One for the impl         : com.bw.osgi.provider.impl
3 I create a pom.xml :
<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/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>net.lr.tutorial.karaf.cxf.personservice</groupId>
    <artifactId>personservice-parent</artifactId>
    <version>1.0-SNAPSHOT</version>
  </parent>
  <artifactId>personservice-message</artifactId>
  <version>1.0</version>
  <packaging>bundle</packaging>
    
      <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>1.0.0</version>
        </dependency>
    </dependencies>
    
       <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            
            <plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>
                       
<Bundle-SymbolicName>personservice-message</Bundle-SymbolicName>
                       
<Export-Package>com.bw.osgi.provider.able</Export-Package>
                       
<Bundle-Activator>com.bw.osgi.provider.ProviderActivator</Bundle-Activator>
                        <Bundle-Vendor>parker</Bundle-Vendor>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build> 





Thanks



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Karaf-Tutorial-Part-4-CXF-Services-in-OSGi-How-to-use-a-new-service-tp4033785p4033820.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to