I think that the pom of this bundle should be :

<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.servicemix.bundles</groupId>
            <artifactId>bundles-pom</artifactId>
            <version>1</version>
    </parent>

    <groupId>org.apache.servicemix.bundles</groupId>
    <artifactId>org.apache.servicemix.bundles.cglib</artifactId>
    <packaging>bundle</packaging>
    <version>2.1.3_2-SNAPSHOT</version> --> 2.1_3_2 has been changed to
2.1.3_2
    <name>Apache ServiceMix Bundles: ${pkgArtifactId}-${pkgVersion}</name>
    <description>
        This bundle simply wraps ${pkgArtifactId}-${pkgVersion}.jar.
    </description>

    <properties>
        <pkgGroupId>cglib</pkgGroupId>
        <pkgArtifactId>cglib</pkgArtifactId>
        <pkgVersion>2.1.3</pkgVersion> --> changed from 2.1_3 to 2.1.3
       
<servicemix.osgi.export.pkg>net.sf.cglib</servicemix.osgi.export.pkg>
        <servicemix.osgi.import.pkg>
            net.sf.cglib.asm.util;resolution:=optional,
            org.apache.tools.ant*;resolution:=optional,
            org.codehaus.aspectwerkz.hook;resolution:=optional,
            *
        </servicemix.osgi.import.pkg>
    </properties>

    <dependencies>
        <dependency>
            <groupId>${pkgGroupId}</groupId>
            <artifactId>cglib-nodep</artifactId>
            <version>${pkgVersion}</version>
            <optional>true</optional>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-shade-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>shade</goal>
                        </goals>
                        <configuration>
                            <artifactSet>
                                <includes>
                                   
<include>${pkgGroupId}:cglib-nodep</include>
                                </includes>
                            </artifactSet>
                            <filters>
                                <filter>
                                   
<artifact>${pkgGroupId}:cglib-nodep</artifact>
                                    <excludes>
                                        <exclude>**</exclude>
                                    </excludes>
                                </filter>
                            </filters>
                           
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
                           
<createDependencyReducedPom>true</createDependencyReducedPom>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

cmoulliard wrote:
> 
> Hi,
> 
> Is the bundle cglib generated correctly
> (org\apache\servicemix\bundles\org.apache.servicemix.bundles.cglib\2.1_3_2-SNAPSHOT)
> ?
> 
> This bundle is a wrapper of the cglib.jar version 2.1.3  but in the
> MANIFEST file, the packages are exported with the version : 2.1.0.3
> 
> Manifest-Version: 1.0
> Built-By: 002597273
> Created-By: Apache Maven Bundle Plugin
> Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt
> Import-Package: net.sf.cglib.asm;version="2.1.0.3",net.sf.cglib.asm.at
>  trs;version="2.1.0.3",net.sf.cglib.asm.util;resolution:=optional,net.
>  sf.cglib.beans;version="2.1.0.3",net.sf.cglib.core;version="2.1.0.3",
>  net.sf.cglib.proxy;version="2.1.0.3",net.sf.cglib.reflect;version="2.
>  1.0.3",net.sf.cglib.transform;version="2.1.0.3",net.sf.cglib.transfor
>  m.hook;version="2.1.0.3",net.sf.cglib.transform.impl;version="2.1.0.3
>  ",net.sf.cglib.util;version="2.1.0.3",org.apache.tools.ant;resolution
>  :=optional,org.apache.tools.ant.types;resolution:=optional,org.codeha
>  us.aspectwerkz.hook;resolution:=optional
> Bnd-LastModified: 1236863035811
> Export-Package: net.sf.cglib.reflect;uses:="net.sf.cglib.core,net.sf.c
>  glib.asm";version="2.1.0.3",net.sf.cglib.core;uses:="net.sf.cglib.asm
>  ,net.sf.cglib.asm.util";version="2.1.0.3",net.sf.cglib.beans;uses:="n
>  et.sf.cglib.core,net.sf.cglib.asm";version="2.1.0.3",net.sf.cglib.tra
>  nsform.impl;uses:="net.sf.cglib.core,net.sf.cglib.transform,net.sf.cg
>  lib.asm";version="2.1.0.3",net.sf.cglib.transform;uses:="net.sf.cglib
>  .core,org.apache.tools.ant.types,net.sf.cglib.asm,org.apache.tools.an
>  t,net.sf.cglib.asm.attrs";version="2.1.0.3",net.sf.cglib.asm;version=
>  "2.1.0.3",net.sf.cglib.proxy;uses:="net.sf.cglib.reflect,net.sf.cglib
>  .core,net.sf.cglib.asm";version="2.1.0.3",net.sf.cglib.asm.attrs;uses
>  :="net.sf.cglib.asm";version="2.1.0.3",net.sf.cglib.util;uses:="net.s
>  f.cglib.core,net.sf.cglib.asm";version="2.1.0.3",net.sf.cglib.transfo
>  rm.hook;uses:="net.sf.cglib.core,net.sf.cglib.asm,net.sf.cglib.transf
>  orm,org.codehaus.aspectwerkz.hook";version="2.1.0.3"
> Bundle-Version: 2.1.0.3_2-SNAPSHOT
> Bundle-Name: Apache ServiceMix Bundles: cglib-2.1_3
> Bundle-Description: This bundle simply wraps cglib-2.1_3.jar.
> Build-Jdk: 1.5.0_16
> Bundle-DocURL: http://www.apache.org/
> Bundle-ManifestVersion: 2
> Bundle-Vendor: Apache Software Foundation
> Bundle-SymbolicName: org.apache.servicemix.bundles.cglib
> 
> Regards,
> 
> 
> 
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: 
http://www.nabble.com/Error-with-the-OSGI-bundle-cglib-----tp22475969p22476031.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to