You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Christopher Arnold <ca...@ptc.com> on 2014/03/14 21:51:45 UTC
Issues with karaf-maven-plugin and ActiveMQ 5.9.1-SNAPSHOT
I've run into an issue with the karaf-maven-plugin's assembly packaging
and changes to ActiveMQ's features files upcoming in 5.9.1. We are
using a custom build of ActiveMQ 5.9.0 cherry-picking some OSGi fixes
from the upcoming 5.9.1 release:
4689b43aff001c975d70270f59add0f661803698 - AMQ-4844
014ba867cbc0b005b32dc6303ca214ce917b68be - AMQ-4909.
The main issue is that they've split their feature file into two parts,
org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features and
org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features-core.
Their features.xml has a <repository> reference to features-core.xml.
The issue is that the karaf-maven-plugin doesn't read the repository
element so the resulting assembly lacks both features-core.xml and the
bundles those features reference. Also, adding features-core.xml as a
maven dependency doesn't work either since it's classifier is
features-core rather than features. I know there's a bunch of fixes for
the plugin coming in 3.0.1 so I tried this with a build of the latest of
the 3.0.x branch and it still has issues. With 3.0.1-SNAPSHOT the
assembly contains the features-core.xml but none of the bundles
referenced by those features. Is this something you'd consider a bug in
the karaf-maven-plugin or is using a features file with classifier
features-core considered a no-no and should be forwarded to the ActiveMQ
list?
Thanks,
-Chris
Re: Issues with karaf-maven-plugin and ActiveMQ 5.9.1-SNAPSHOT
Posted by ozzyoli <oz...@gmail.com>.
Did this merge happen?
I'm experiencing similar behaviour in 3.0.1
--
View this message in context: http://karaf.922171.n3.nabble.com/Issues-with-karaf-maven-plugin-and-ActiveMQ-5-9-1-SNAPSHOT-tp4032269p4033097.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Issues with karaf-maven-plugin and ActiveMQ 5.9.1-SNAPSHOT
Posted by Christopher Arnold <ca...@ptc.com>.
Thanks for the info and the fixes.
-Chris
On 03/14/2014 04:29 PM, Jean-Baptiste Onofré wrote:
> Hi Chritopher,
>
> Regarding the first issue (inclusion of the <repository/> in the
> assembly), it's already fixed in karaf-maven-plugin 3.0.1-SNAPSHOT.
>
> I already fixed the second issue (to include the bundles from
> "transitive" features from other repository) but not yet merge. I will
> do that over the week end.
>
> Regards
> JB
>
> On 03/14/2014 09:51 PM, Christopher Arnold wrote:
>> I've run into an issue with the karaf-maven-plugin's assembly packaging
>> and changes to ActiveMQ's features files upcoming in 5.9.1. We are
>> using a custom build of ActiveMQ 5.9.0 cherry-picking some OSGi fixes
>> from the upcoming 5.9.1 release:
>>
>> 4689b43aff001c975d70270f59add0f661803698 - AMQ-4844
>> 014ba867cbc0b005b32dc6303ca214ce917b68be - AMQ-4909.
>>
>> The main issue is that they've split their feature file into two parts,
>> org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features and
>> org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features-core.
>> Their features.xml has a <repository> reference to features-core.xml.
>> The issue is that the karaf-maven-plugin doesn't read the repository
>> element so the resulting assembly lacks both features-core.xml and the
>> bundles those features reference. Also, adding features-core.xml as a
>> maven dependency doesn't work either since it's classifier is
>> features-core rather than features. I know there's a bunch of fixes for
>> the plugin coming in 3.0.1 so I tried this with a build of the latest of
>> the 3.0.x branch and it still has issues. With 3.0.1-SNAPSHOT the
>> assembly contains the features-core.xml but none of the bundles
>> referenced by those features. Is this something you'd consider a bug in
>> the karaf-maven-plugin or is using a features file with classifier
>> features-core considered a no-no and should be forwarded to the ActiveMQ
>> list?
>>
>> Thanks,
>> -Chris
>
Re: Issues with karaf-maven-plugin and ActiveMQ 5.9.1-SNAPSHOT
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Chritopher,
Regarding the first issue (inclusion of the <repository/> in the
assembly), it's already fixed in karaf-maven-plugin 3.0.1-SNAPSHOT.
I already fixed the second issue (to include the bundles from
"transitive" features from other repository) but not yet merge. I will
do that over the week end.
Regards
JB
On 03/14/2014 09:51 PM, Christopher Arnold wrote:
> I've run into an issue with the karaf-maven-plugin's assembly packaging
> and changes to ActiveMQ's features files upcoming in 5.9.1. We are
> using a custom build of ActiveMQ 5.9.0 cherry-picking some OSGi fixes
> from the upcoming 5.9.1 release:
>
> 4689b43aff001c975d70270f59add0f661803698 - AMQ-4844
> 014ba867cbc0b005b32dc6303ca214ce917b68be - AMQ-4909.
>
> The main issue is that they've split their feature file into two parts,
> org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features and
> org.apache.activemq/activemq-karaf/5.9.1-SNAPSHOT/xml/features-core.
> Their features.xml has a <repository> reference to features-core.xml.
> The issue is that the karaf-maven-plugin doesn't read the repository
> element so the resulting assembly lacks both features-core.xml and the
> bundles those features reference. Also, adding features-core.xml as a
> maven dependency doesn't work either since it's classifier is
> features-core rather than features. I know there's a bunch of fixes for
> the plugin coming in 3.0.1 so I tried this with a build of the latest of
> the 3.0.x branch and it still has issues. With 3.0.1-SNAPSHOT the
> assembly contains the features-core.xml but none of the bundles
> referenced by those features. Is this something you'd consider a bug in
> the karaf-maven-plugin or is using a features file with classifier
> features-core considered a no-no and should be forwarded to the ActiveMQ
> list?
>
> Thanks,
> -Chris
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com