You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by mv...@comcast.net on 2010/10/22 22:48:36 UTC

possible bug in maven-bundle-plugin


All, 



A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for <Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.  



In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 



In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 



I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library. 





v/r, 



Mike Van 

Re: possible bug in maven-bundle-plugin

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Thanks. I didn't understand that we were talking about a single manifest 
file, but still is this the same scenario?

g! lb
START LEVEL 1
    ID|State      |Level|Name
     0|Active     |    0|System Bundle (3.1.0.SNAPSHOT)
     1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
     2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT)
     3|Active     |    1|Apache Felix Gogo Runtime (0.6.1)
     4|Active     |    1|Apache Felix Gogo Shell (0.6.1)
     5|Installed  |    1|exporter (0.0.0)
g! headers 5

Bundle 5
--------
Bundle-ManifestVersion = 2
Bundle-SymbolicName = exporter
Created-By = 1.6.0_22 (Apple Inc.)
Export-Package = org.foo; version=0.04.0.SNAPSHOT
Import-Package = org.foo; version=0.4
Manifest-Version = 1.0
g! resolve 5
g!

It appears to work.

-> richard


On 10/27/10 11:07, mvangeertruy@comcast.net wrote:
>
> In the interest of keeping the file short, here is a truncated version of the MANIFEST.MF file:
>
>
>
> Manifest-Version: 1.0
>
> Archiver-Version: Plexus Archiver
>
> Created-By: 1.6.0_18 (Sun Microsystems Inc.)
>
> Build-Jdk: 1.6.0_18
>
> Built-By:
>
> Export-Package: myApp;version="0.04.0.SNAPSHOT"
>
> Bundle-Version: 0.04.0.SNAPSHOT
>
> Tool: Bnd-0.0.357
>
> Bundle-Name: myApp
>
> Bnd-LastModified: 1287101586012
>
> Bundle-ManifestVersion: 2
>
> Bundle-SymbolicName: myApp
>
> Import-Package: myApp;version="0.4"
>
>
>
>
> ----- Original Message -----
> From: "Richard S. Hall"<he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, October 26, 2010 5:06:01 PM
> Subject: Re: possible bug in maven-bundle-plugin
>
> On 10/26/10 16:59, mvangeertruy@comcast.net wrote:
>> Richard,
>>
>>
>>
>> The below test does not replicate the original result because it does not imitate the original behavior.
>>
>>
>>
>> In the original bug, the ${pom.version} was set to "0.04-SNAPSHOT".  The<Bundle-Version>,<Import-Package>, and the<Export-Package>    sections of the maven-bundle-plugin were all present, but empty.
>>
>>
>>
>> In the resulting bundle, the following was in the MANIFEST.MF file:
>>
>>
>>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>>>>
>>>>>
>>>>>
>>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>> It should be noted that the Bundle-Version was set to "0.04.0.SNAPSHOT" in the MANIFEST.MF file.
> Are you saying the problem is a single manifest? If so, can you show me
> the manifest?
>
> ->  richard
>
>>
>> v/r,
>>
>>
>>
>> Mike Van
>>
>>
>>
>>
>> ----- Original Message -----
>> From: "Richard S. Hall"<he...@ungoverned.org>
>> To: users@felix.apache.org
>> Sent: Tuesday, October 26, 2010 3:32:12 PM
>> Subject: Re: possible bug in maven-bundle-plugin
>>
>> On 10/26/10 11:54, mvangeertruy@comcast.net wrote:
>>> When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited.
>> Must be something else going on, because this works for me:
>>
>> g! lb
>> START LEVEL 1
>>       ID|State      |Level|Name
>>        0|Active     |    0|System Bundle (3.1.0.SNAPSHOT)
>>        1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
>>        2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT)
>>        3|Active     |    1|Apache Felix Gogo Runtime (0.6.1)
>>        4|Active     |    1|Apache Felix Gogo Shell (0.6.1)
>>        5|Installed  |    1|exporter (0.0.0)
>>        6|Installed  |    1|importer (0.0.0)
>> g! headers 5 6
>>
>> Bundle 5
>> --------
>> Bundle-ManifestVersion = 2
>> Bundle-SymbolicName = exporter
>> Created-By = 1.6.0_22 (Apple Inc.)
>> Export-Package = org.foo; version=0.04.0.SNAPSHOT
>> Manifest-Version = 1.0
>>
>> Bundle 6
>> --------
>> Bundle-ManifestVersion = 2
>> Bundle-SymbolicName = importer
>> Created-By = 1.6.0_22 (Apple Inc.)
>> Import-Package = org.foo; version=0.4
>> Manifest-Version = 1.0
>> g! resolve 6
>> DEBUG: WIRE: [6.0] package; (&(package=org.foo)(version>=0.4.0)) ->    [5.0]
>> g!
>>
>> ->    richard
>>
>>> v/r,
>>>
>>>
>>>
>>> Mike Van
>>>
>>>
>>> ----- Original Message -----
>>> From: "Richard S. Hall"<he...@ungoverned.org>
>>> To: users@felix.apache.org
>>> Sent: Tuesday, October 26, 2010 9:37:25 AM
>>> Subject: Re: possible bug in maven-bundle-plugin
>>>
>>>
>>>
>>> On 10/26/10 3:08, Peter Kriens wrote:
>>>> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4
>>> Yeah, actually, that didn't even dawn on me. How/when are you getting an
>>> unresolved constraint?
>>>
>>> ->      richard
>>>
>>>> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms.
>>>>
>>>> Kind regards,
>>>>
>>>>            Peter Kriens
>>>>
>>>> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote:
>>>>
>>>>> All,
>>>>>
>>>>>
>>>>>
>>>>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.
>>>>>
>>>>>
>>>>>
>>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>>>>
>>>>>
>>>>>
>>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>>>>>
>>>>>
>>>>>
>>>>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> v/r,
>>>>>
>>>>>
>>>>>
>>>>> Mike Van
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>>> For additional commands, e-mail: users-help@felix.apache.org
>>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: possible bug in maven-bundle-plugin

Posted by mv...@comcast.net.

In the interest of keeping the file short, here is a truncated version of the MANIFEST.MF file: 



Manifest-Version: 1.0 

Archiver-Version: Plexus Archiver 

Created-By: 1.6.0_18 (Sun Microsystems Inc.) 

Build-Jdk: 1.6.0_18 

Built-By: 

Export-Package: myApp;version="0.04.0.SNAPSHOT" 

Bundle-Version: 0.04.0.SNAPSHOT 

Tool: Bnd-0.0.357 

Bundle-Name: myApp 

Bnd-LastModified: 1287101586012 

Bundle-ManifestVersion: 2 

Bundle-SymbolicName: myApp 

Import-Package: myApp;version="0.4" 




----- Original Message ----- 
From: "Richard S. Hall" <he...@ungoverned.org> 
To: users@felix.apache.org 
Sent: Tuesday, October 26, 2010 5:06:01 PM 
Subject: Re: possible bug in maven-bundle-plugin 

On 10/26/10 16:59, mvangeertruy@comcast.net wrote: 
> 
> Richard, 
> 
> 
> 
> The below test does not replicate the original result because it does not imitate the original behavior. 
> 
> 
> 
> In the original bug, the ${pom.version} was set to "0.04-SNAPSHOT".  The<Bundle-Version>,<Import-Package>, and the<Export-Package>  sections of the maven-bundle-plugin were all present, but empty. 
> 
> 
> 
> In the resulting bundle, the following was in the MANIFEST.MF file: 
> 
> 
>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
>>>> 
>>>> 
>>>> 
>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 
> 
> It should be noted that the Bundle-Version was set to "0.04.0.SNAPSHOT" in the MANIFEST.MF file. 

Are you saying the problem is a single manifest? If so, can you show me 
the manifest? 

-> richard 

> 
> 
> v/r, 
> 
> 
> 
> Mike Van 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "Richard S. Hall"<he...@ungoverned.org> 
> To: users@felix.apache.org 
> Sent: Tuesday, October 26, 2010 3:32:12 PM 
> Subject: Re: possible bug in maven-bundle-plugin 
> 
> On 10/26/10 11:54, mvangeertruy@comcast.net wrote: 
>> When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited. 
> Must be something else going on, because this works for me: 
> 
> g! lb 
> START LEVEL 1 
>      ID|State      |Level|Name 
>       0|Active     |    0|System Bundle (3.1.0.SNAPSHOT) 
>       1|Active     |    1|Apache Felix Bundle Repository (1.6.2) 
>       2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT) 
>       3|Active     |    1|Apache Felix Gogo Runtime (0.6.1) 
>       4|Active     |    1|Apache Felix Gogo Shell (0.6.1) 
>       5|Installed  |    1|exporter (0.0.0) 
>       6|Installed  |    1|importer (0.0.0) 
> g! headers 5 6 
> 
> Bundle 5 
> -------- 
> Bundle-ManifestVersion = 2 
> Bundle-SymbolicName = exporter 
> Created-By = 1.6.0_22 (Apple Inc.) 
> Export-Package = org.foo; version=0.04.0.SNAPSHOT 
> Manifest-Version = 1.0 
> 
> Bundle 6 
> -------- 
> Bundle-ManifestVersion = 2 
> Bundle-SymbolicName = importer 
> Created-By = 1.6.0_22 (Apple Inc.) 
> Import-Package = org.foo; version=0.4 
> Manifest-Version = 1.0 
> g! resolve 6 
> DEBUG: WIRE: [6.0] package; (&(package=org.foo)(version>=0.4.0)) ->  [5.0] 
> g! 
> 
> ->  richard 
> 
>> 
>> v/r, 
>> 
>> 
>> 
>> Mike Van 
>> 
>> 
>> ----- Original Message ----- 
>> From: "Richard S. Hall"<he...@ungoverned.org> 
>> To: users@felix.apache.org 
>> Sent: Tuesday, October 26, 2010 9:37:25 AM 
>> Subject: Re: possible bug in maven-bundle-plugin 
>> 
>> 
>> 
>> On 10/26/10 3:08, Peter Kriens wrote: 
>>> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4 
>> Yeah, actually, that didn't even dawn on me. How/when are you getting an 
>> unresolved constraint? 
>> 
>> ->    richard 
>> 
>>> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms. 
>>> 
>>> Kind regards, 
>>> 
>>>           Peter Kriens 
>>> 
>>> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote: 
>>> 
>>>> All, 
>>>> 
>>>> 
>>>> 
>>>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT. 
>>>> 
>>>> 
>>>> 
>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
>>>> 
>>>> 
>>>> 
>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 
>>>> 
>>>> 
>>>> 
>>>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library. 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> v/r, 
>>>> 
>>>> 
>>>> 
>>>> Mike Van 
>>> --------------------------------------------------------------------- 
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
>>> For additional commands, e-mail: users-help@felix.apache.org 
>>> 
>> --------------------------------------------------------------------- 
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
>> For additional commands, e-mail: users-help@felix.apache.org 
>> 
>> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
> For additional commands, e-mail: users-help@felix.apache.org 
> 
> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
For additional commands, e-mail: users-help@felix.apache.org 


Re: possible bug in maven-bundle-plugin

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 10/26/10 16:59, mvangeertruy@comcast.net wrote:
>
> Richard,
>
>
>
> The below test does not replicate the original result because it does not imitate the original behavior.
>
>
>
> In the original bug, the ${pom.version} was set to "0.04-SNAPSHOT".  The<Bundle-Version>,<Import-Package>, and the<Export-Package>  sections of the maven-bundle-plugin were all present, but empty.
>
>
>
> In the resulting bundle, the following was in the MANIFEST.MF file:
>
>
>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>>>
>>>>
>>>>
>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>
> It should be noted that the Bundle-Version was set to "0.04.0.SNAPSHOT" in the MANIFEST.MF file.

Are you saying the problem is a single manifest? If so, can you show me 
the manifest?

-> richard

>
>
> v/r,
>
>
>
> Mike Van
>
>
>
>
> ----- Original Message -----
> From: "Richard S. Hall"<he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, October 26, 2010 3:32:12 PM
> Subject: Re: possible bug in maven-bundle-plugin
>
> On 10/26/10 11:54, mvangeertruy@comcast.net wrote:
>> When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited.
> Must be something else going on, because this works for me:
>
> g! lb
> START LEVEL 1
>      ID|State      |Level|Name
>       0|Active     |    0|System Bundle (3.1.0.SNAPSHOT)
>       1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
>       2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT)
>       3|Active     |    1|Apache Felix Gogo Runtime (0.6.1)
>       4|Active     |    1|Apache Felix Gogo Shell (0.6.1)
>       5|Installed  |    1|exporter (0.0.0)
>       6|Installed  |    1|importer (0.0.0)
> g! headers 5 6
>
> Bundle 5
> --------
> Bundle-ManifestVersion = 2
> Bundle-SymbolicName = exporter
> Created-By = 1.6.0_22 (Apple Inc.)
> Export-Package = org.foo; version=0.04.0.SNAPSHOT
> Manifest-Version = 1.0
>
> Bundle 6
> --------
> Bundle-ManifestVersion = 2
> Bundle-SymbolicName = importer
> Created-By = 1.6.0_22 (Apple Inc.)
> Import-Package = org.foo; version=0.4
> Manifest-Version = 1.0
> g! resolve 6
> DEBUG: WIRE: [6.0] package; (&(package=org.foo)(version>=0.4.0)) ->  [5.0]
> g!
>
> ->  richard
>
>>
>> v/r,
>>
>>
>>
>> Mike Van
>>
>>
>> ----- Original Message -----
>> From: "Richard S. Hall"<he...@ungoverned.org>
>> To: users@felix.apache.org
>> Sent: Tuesday, October 26, 2010 9:37:25 AM
>> Subject: Re: possible bug in maven-bundle-plugin
>>
>>
>>
>> On 10/26/10 3:08, Peter Kriens wrote:
>>> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4
>> Yeah, actually, that didn't even dawn on me. How/when are you getting an
>> unresolved constraint?
>>
>> ->    richard
>>
>>> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms.
>>>
>>> Kind regards,
>>>
>>>           Peter Kriens
>>>
>>> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote:
>>>
>>>> All,
>>>>
>>>>
>>>>
>>>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.
>>>>
>>>>
>>>>
>>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>>>
>>>>
>>>>
>>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>>>>
>>>>
>>>>
>>>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> v/r,
>>>>
>>>>
>>>>
>>>> Mike Van
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>>> For additional commands, e-mail: users-help@felix.apache.org
>>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: possible bug in maven-bundle-plugin

Posted by mv...@comcast.net.

Richard, 



The below test does not replicate the original result because it does not imitate the original behavior. 



In the original bug, the ${pom.version} was set to "0.04-SNAPSHOT".  The <Bundle-Version>, <Import-Package>, and the <Export-Package> sections of the maven-bundle-plugin were all present, but empty. 



In the resulting bundle, the following was in the MANIFEST.MF file: 


>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
>>> 
>>> 
>>> 
>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 


It should be noted that the Bundle-Version was set to "0.04.0.SNAPSHOT" in the MANIFEST.MF file. 



v/r, 



Mike Van 




----- Original Message ----- 
From: "Richard S. Hall" <he...@ungoverned.org> 
To: users@felix.apache.org 
Sent: Tuesday, October 26, 2010 3:32:12 PM 
Subject: Re: possible bug in maven-bundle-plugin 

On 10/26/10 11:54, mvangeertruy@comcast.net wrote: 
> 
> When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited. 

Must be something else going on, because this works for me: 

g! lb 
START LEVEL 1 
    ID|State      |Level|Name 
     0|Active     |    0|System Bundle (3.1.0.SNAPSHOT) 
     1|Active     |    1|Apache Felix Bundle Repository (1.6.2) 
     2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT) 
     3|Active     |    1|Apache Felix Gogo Runtime (0.6.1) 
     4|Active     |    1|Apache Felix Gogo Shell (0.6.1) 
     5|Installed  |    1|exporter (0.0.0) 
     6|Installed  |    1|importer (0.0.0) 
g! headers 5 6 

Bundle 5 
-------- 
Bundle-ManifestVersion = 2 
Bundle-SymbolicName = exporter 
Created-By = 1.6.0_22 (Apple Inc.) 
Export-Package = org.foo; version=0.04.0.SNAPSHOT 
Manifest-Version = 1.0 

Bundle 6 
-------- 
Bundle-ManifestVersion = 2 
Bundle-SymbolicName = importer 
Created-By = 1.6.0_22 (Apple Inc.) 
Import-Package = org.foo; version=0.4 
Manifest-Version = 1.0 
g! resolve 6 
DEBUG: WIRE: [6.0] package; (&(package=org.foo)(version>=0.4.0)) -> [5.0] 
g! 

-> richard 

> 
> 
> v/r, 
> 
> 
> 
> Mike Van 
> 
> 
> ----- Original Message ----- 
> From: "Richard S. Hall"<he...@ungoverned.org> 
> To: users@felix.apache.org 
> Sent: Tuesday, October 26, 2010 9:37:25 AM 
> Subject: Re: possible bug in maven-bundle-plugin 
> 
> 
> 
> On 10/26/10 3:08, Peter Kriens wrote: 
>> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4 
> Yeah, actually, that didn't even dawn on me. How/when are you getting an 
> unresolved constraint? 
> 
> ->  richard 
> 
>> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms. 
>> 
>> Kind regards, 
>> 
>>          Peter Kriens 
>> 
>> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote: 
>> 
>>> All, 
>>> 
>>> 
>>> 
>>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT. 
>>> 
>>> 
>>> 
>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
>>> 
>>> 
>>> 
>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 
>>> 
>>> 
>>> 
>>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library. 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> v/r, 
>>> 
>>> 
>>> 
>>> Mike Van 
>> --------------------------------------------------------------------- 
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
>> For additional commands, e-mail: users-help@felix.apache.org 
>> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
> For additional commands, e-mail: users-help@felix.apache.org 
> 
> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
For additional commands, e-mail: users-help@felix.apache.org 


Re: possible bug in maven-bundle-plugin

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 10/26/10 11:54, mvangeertruy@comcast.net wrote:
>
> When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited.

Must be something else going on, because this works for me:

g! lb
START LEVEL 1
    ID|State      |Level|Name
     0|Active     |    0|System Bundle (3.1.0.SNAPSHOT)
     1|Active     |    1|Apache Felix Bundle Repository (1.6.2)
     2|Active     |    1|Apache Felix Gogo Command (0.7.0.SNAPSHOT)
     3|Active     |    1|Apache Felix Gogo Runtime (0.6.1)
     4|Active     |    1|Apache Felix Gogo Shell (0.6.1)
     5|Installed  |    1|exporter (0.0.0)
     6|Installed  |    1|importer (0.0.0)
g! headers 5 6

Bundle 5
--------
Bundle-ManifestVersion = 2
Bundle-SymbolicName = exporter
Created-By = 1.6.0_22 (Apple Inc.)
Export-Package = org.foo; version=0.04.0.SNAPSHOT
Manifest-Version = 1.0

Bundle 6
--------
Bundle-ManifestVersion = 2
Bundle-SymbolicName = importer
Created-By = 1.6.0_22 (Apple Inc.)
Import-Package = org.foo; version=0.4
Manifest-Version = 1.0
g! resolve 6
DEBUG: WIRE: [6.0] package; (&(package=org.foo)(version>=0.4.0)) -> [5.0]
g!

-> richard

>
>
> v/r,
>
>
>
> Mike Van
>
>
> ----- Original Message -----
> From: "Richard S. Hall"<he...@ungoverned.org>
> To: users@felix.apache.org
> Sent: Tuesday, October 26, 2010 9:37:25 AM
> Subject: Re: possible bug in maven-bundle-plugin
>
>
>
> On 10/26/10 3:08, Peter Kriens wrote:
>> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4
> Yeah, actually, that didn't even dawn on me. How/when are you getting an
> unresolved constraint?
>
> ->  richard
>
>> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms.
>>
>> Kind regards,
>>
>>          Peter Kriens
>>
>> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote:
>>
>>> All,
>>>
>>>
>>>
>>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.
>>>
>>>
>>>
>>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>>
>>>
>>>
>>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>>>
>>>
>>>
>>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library.
>>>
>>>
>>>
>>>
>>>
>>> v/r,
>>>
>>>
>>>
>>> Mike Van
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: possible bug in maven-bundle-plugin

Posted by mv...@comcast.net.

When attempting to deploy the bundle from a features.xml file, the deploy directory, or from the command-line, the unresolved constraint error is exhibited. 



v/r, 



Mike Van 


----- Original Message ----- 
From: "Richard S. Hall" <he...@ungoverned.org> 
To: users@felix.apache.org 
Sent: Tuesday, October 26, 2010 9:37:25 AM 
Subject: Re: possible bug in maven-bundle-plugin 



On 10/26/10 3:08, Peter Kriens wrote: 
> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4 

Yeah, actually, that didn't even dawn on me. How/when are you getting an 
unresolved constraint? 

-> richard 

> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms. 
> 
> Kind regards, 
> 
>         Peter Kriens 
> 
> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote: 
> 
>> 
>> All, 
>> 
>> 
>> 
>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT. 
>> 
>> 
>> 
>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
>> 
>> 
>> 
>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 
>> 
>> 
>> 
>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library. 
>> 
>> 
>> 
>> 
>> 
>> v/r, 
>> 
>> 
>> 
>> Mike Van 
> 
> --------------------------------------------------------------------- 
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
> For additional commands, e-mail: users-help@felix.apache.org 
> 

--------------------------------------------------------------------- 
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org 
For additional commands, e-mail: users-help@felix.apache.org 


Re: possible bug in maven-bundle-plugin

Posted by "Richard S. Hall" <he...@ungoverned.org>.

On 10/26/10 3:08, Peter Kriens wrote:
> I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT>= 0.4

Yeah, actually, that didn't even dawn on me. How/when are you getting an 
unresolved constraint?

-> richard

> But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms.
>
> Kind regards,
>
> 	Peter Kriens
>
> On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote:
>
>>
>> All,
>>
>>
>>
>> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.
>>
>>
>>
>> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>>
>>
>>
>> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>>
>>
>>
>> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library.
>>
>>
>>
>>
>>
>> v/r,
>>
>>
>>
>> Mike Van
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: possible bug in maven-bundle-plugin

Posted by Peter Kriens <pe...@aqute.biz>.
I think this is a framework error :-) The parts of the versions are integers this 04 == 4. So 0.04.0.SNAPSHOT >= 0.4

But I can add a feature to bnd to cleanup the import version. I am already doing this for getting rid of the - sign and other mavenisms.

Kind regards,

	Peter Kriens

On 22 okt 2010, at 22:48, mvangeertruy@comcast.net wrote:

> 
> 
> All, 
> 
> 
> 
> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for <Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT.  
> 
> 
> 
> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior. 
> 
> 
> 
> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment. 
> 
> 
> 
> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library. 
> 
> 
> 
> 
> 
> v/r, 
> 
> 
> 
> Mike Van 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: possible bug in maven-bundle-plugin

Posted by "Richard S. Hall" <he...@ungoverned.org>.
On 10/22/10 14:48, mvangeertruy@comcast.net wrote:
>
> All,
>
>
>
> A project I'm working with is using a very minimalist implementation of the maven bundle plugin that relies on the maven-bundle-plugin to use the default version of the bundle for<Bundle-Version>(whatever the pom.version property is set to).  In this case, the version is 0.04-SNAPSHOT. 
>
>
>
> In the Export-Package section of the MANIFEST.MF file, the number is resolved to "0.04.0.SNAPSHOT", which is the expected behavior.
>
>
>
> In the Import-Package section of the MANIFEST.MF file, all of the bundles packages are imported with version "0.4". This creates an unresolved constraint violation upon deployment.
>
>
>
> I have spoken with the project, and they will be using "0.4-SNAPSHOT" as thier pom.version.  However, this is a workaround, and there still appears to be a bug in the plugin or in the BND library.

Not sure if this is a BND bug, since I think version conversion is 
handled in the plugin.

-> richard

>
>
>
>
> v/r,
>
>
>
> Mike Van
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org