Hi , 

Thank you for the answer.
I have add the project personservice-message for provider and the project
personservice-bundlelogv11 for consumer
like in the screen shot .
<http://karaf.922171.n3.nabble.com/file/n4033806/scshot20140626.png> 

if I do "mvn clean install" without the project personservice-bundlev11, the
build is working.
        
with the project personservice-bundlev11, I have an error in the pom.xml :  
"Missing artifact personservice-message:personservice-message:jar:1.0" where
is the dependency for groupId personservice-message  in the pom.xml

this is the 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>bundleLogv11</artifactId>
  <groupId>personservice-bundleLogv11</groupId>
  <name>bundleLogV11</name>
  <description>Show logging message</description>
  
  <packaging>bundle</packaging>

    <dependencies>
        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>1.0.0</version>
        </dependency>
        
       <dependency>
            <groupId>personservice-message</groupId>
            <artifactId>personservice-message</artifactId>
            <version>1.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-bundleLogv11</Bundle-SymbolicName>
                       
<Bundle-Activator>com.bw.osgi.consumer.bundleLogActivator</Bundle-Activator>
                        <Bundle-Vendor>parker</Bundle-Vendor>
                    </instructions>
                </configuration>
            </plugin>
        </plugins>
    </build>
   
</project>

If  I do  "mvn clean install" with the project personservice-bundlev11, I
have this error :

[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bundleLogv11: Could not resolve
dependencies for project
personservice-bundleLogv11:bundleLogv11:bundle:1.0-SNAPSHOT: Failure to find
personservice-message:personservice-message:jar:1.0 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :bundleLogv11



thank you for your advice and help .



--
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-tp4033785p4033806.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to