Custom ServiceMix Build

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Custom ServiceMix Build

puperzenkarl
I would like to build a custom ServiceMix 7.0
I need the following additional features:
* activemq-web-console
* webconsole
* camel-quartz2

Can someone explain the necesarry steps!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

ksobkowiak
Hi

The ServiceMix assembly is module is here https://github.com/apache/servicemix/tree/master/assemblies/apache-servicemix. You can do it similarly and add your features to booteFeatures here https://github.com/apache/servicemix/blob/master/assemblies/apache-servicemix/pom.xml#L228-L240

Regards
Krzysztof

On 20.04.2016 18:11, puperzenkarl wrote:

> I would like to build a custom ServiceMix 7.0
> I need the following additional features:
> * activemq-web-console
> * webconsole
> * camel-quartz2
>
> Can someone explain the necesarry steps!
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Custom-ServiceMix-Build-tp5723621.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

puperzenkarl
Works. But ServiceMix is not able to start offline. It still tries to load this from the maven repositories:
com\fasterxml\jackson\jaxrs\jackson-jaxrs-base\2.6.3
com\fasterxml\jackson\jaxrs\jackson-jaxrs-json-provider\2.6.3
com\fasterxml\jackson\module\jackson-module-scala_2.11\2.6.3

Why?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

ksobkowiak
ServiceMix doesn't provide anymore the full assembly which contains all bundles in system directory and can be used without internet connection.  But at least the bundles used during boot should be available and ServiceMix should start with no connection. I'll check it later in the evening.

Do you use ServiceMix master?

Regards
Krzysztof

On 21.04.2016 10:46, puperzenkarl wrote:

> Works. But ServiceMix is not able to start offline. It still tries to load
> this from the maven repositories:
> com\fasterxml\jackson\jaxrs\jackson-jaxrs-base\2.6.3
> com\fasterxml\jackson\jaxrs\jackson-jaxrs-json-provider\2.6.3
> com\fasterxml\jackson\module\jackson-module-scala_2.11\2.6.3
>
> Why?
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Custom-ServiceMix-Build-tp5723621p5723623.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

ksobkowiak
Hi

I have found that the problem occurs when overrides.properties defines bundles which are not used by any boot features and from this reason they are not installed in system directory. When you look here https://github.com/apache/servicemix/blob/master/assemblies/apache-servicemix/src/main/filtered-resources/etc/overrides.properties#L34-L36 you can find the 3 missing bundles here.

mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-base/${fasterxml.jackson.version};range="[2,3)" mvn:com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider/${fasterxml.jackson.version};range="[2,3)" mvn:com.fasterxml.jackson.module/jackson-module-scala_2.11/${fasterxml.jackson.version};range="[2,3)"

Please remove simply these 3 entries from ovverides.propertiesand it should work. I'll ask in Karaf dev whether this is a correct behaviour.

Regards
Krzysztof


On 21.04.2016 12:46, Sobkowiak Krzysztof wrote:

> ServiceMix doesn't provide anymore the full assembly which contains all bundles in system directory and can be used without internet connection.  But at least the bundles used during boot should be available and ServiceMix should start with no connection. I'll check it later in the evening.
>
> Do you use ServiceMix master?
>
> Regards
> Krzysztof
>
> On 21.04.2016 10:46, puperzenkarl wrote:
>> Works. But ServiceMix is not able to start offline. It still tries to load
>> this from the maven repositories:
>> com\fasterxml\jackson\jaxrs\jackson-jaxrs-base\2.6.3
>> com\fasterxml\jackson\jaxrs\jackson-jaxrs-json-provider\2.6.3
>> com\fasterxml\jackson\module\jackson-module-scala_2.11\2.6.3
>>
>> Why?
>>
>>
>>
>> --
>> View this message in context: http://servicemix.396122.n5.nabble.com/Custom-ServiceMix-Build-tp5723621p5723623.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

puperzenkarl
Thanks a lot!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

ksobkowiak
I have created an issue to track this https://issues.apache.org/jira/browse/SM-2991

Regards
Krzysztof

On 22.04.2016 09:06, puperzenkarl wrote:
> Thanks a lot!
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Custom-ServiceMix-Build-tp5723621p5723628.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.

--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
MK
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

MK
In reply to this post by ksobkowiak
Hi All
Quick question... I'm also looking on building custom distribution of SXM... one of the features that I need to add is MQTT transport support for ActiveMQ. Doing this manually is rather simple. You just need to add to activmq.xml
   <transportConnector name="mqtt" uri="mqtt://localhost:1883"/>

And it works... but how to do it during the build of ServiceMix ?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Custom ServiceMix Build

Koprowski, Mariusz
In reply to this post by puperzenkarl
Hi All
Quick question... I'm also looking on building custom distribution of SXM... one of the features that I need to add is MQTT transport support for ActiveMQ. Doing this manually is rather simple. You just need to add to activmq.xml
   <transportConnector name="mqtt" uri="mqtt://localhost:1883"/>

And it works... but how to do it during the build of ServiceMix ?

Regards
Mariusz
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Custom ServiceMix Build

ksobkowiak
Hi

You must take the original activemq.xmlfile, add the entry to the file and put it under assemblies/apache-servicemix/src/main/resources/etc(if you don't need maven filtering) or assemblies/apache-servicemix/src/main/filtered-resources/etc
(if you  need maven filtering) and it will be added to your distribution after build.

Kindly regards
Krzysztof



On 12.04.2017 23:40, Koprowski, Mariusz wrote:
> Hi All
> Quick question... I'm also looking on building custom distribution of SXM... one of the features that I need to add is MQTT transport support for ActiveMQ. Doing this manually is rather simple. You just need to add to activmq.xml
>    <transportConnector name="mqtt" uri="mqtt://localhost:1883"/>
>
> And it works... but how to do it during the build of ServiceMix ?
>
> Regards
> Mariusz

--
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)
Loading...