[ 
https://issues.apache.org/activemq/browse/SMX4-250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50567#action_50567
 ] 

Guillaume Nodet commented on SMX4-250:
--------------------------------------

The problem is in the maven-bundle-plugin because it interprets the maven 
version number in an OSGi compatible way.
OSGi requires the following version scheme:
   major.minor.micro.qualifier
where major, minor and micro are integers.

The solution is to explicitely set the version of the exported packges to 2.1.3 
instead of using the maven version in the Export-Packages osgi manifest.

> Error with the OSGI bundle cglib version n° created (2.1.0.3 instead of 2.1.3)
> ------------------------------------------------------------------------------
>
>                 Key: SMX4-250
>                 URL: https://issues.apache.org/activemq/browse/SMX4-250
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Charles Moulliard
>
> The bundle 
> org\apache\servicemix\bundles\org.apache.servicemix.bundles.cglib\2.1_3_2 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to