So I'm using the karaf-maven-plugin and version 3.0.1 of Karaf. I think I
understand how the plugin works but the issue is knowing the dependencies.

In the documentation for a custom distribution (
http://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html)
it shows a pom file with the following contained:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>3.0.1</version>
<extensions>true</extensions>
<configuration>
<!-- no startupFeatures -->
<bootFeatures>
<feature>standard</feature>
<feature>management</feature>
</bootFeatures>
<!-- no installedFeatures -->
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

Now in addition to this there are some
dependencies, org.apache.karaf.features/framework
and org.apache.karaf.features/standard. What I am confused about is how
someone can determine that it is these two dependencies that provide the
"standard" and "management" features that are specified as bootFeatures.

I require other features, jetty, jms, camel, blueprint, activemq etc., I
know the name of the features I want so can add those to the bootFeatures /
installedFeatures / startupFeatures however I do not know the names of the
dependency artifacts that provide these features so that my custom
distribution has everything it needs when it is built with the relevant
artifacts pre-installed in the system directory.

Marcus.



On Mon, Oct 6, 2014 at 8:10 PM, Matthieu Vincent <[email protected]>
wrote:

> On features-maven-plugin you can set which features you'll need and the
> plugin will build the repository according to features definitions : easy :)
> Le 6 oct. 2014 21:07, "Marcus Bond" <[email protected]> a écrit :
>
> Thanks, however it's not so much how I do it as the docs are ok and the
>> Pom I have works but without providing all dependencies I will need. I need
>> to know how I find out the names of the dependency artefacts that define
>> the features I would like to include. E.g if I want a camel feature how
>> do I determine which artifact provides that feature?
>> M
>>
>> On Monday, October 6, 2014, Jean-Baptiste Onofré <[email protected]> wrote:
>>
>>> Hi Marcus,
>>>
>>> you can take a look on the Karaf distribution itself (we eat our own dog
>>> food ;)).
>>>
>>> The assembly archetype also provides a skeleton to create your distro.
>>>
>>> The documentation also provides good start point:
>>>
>>> http://karaf.apache.org/manual/latest/developers-
>>> guide/custom-distribution.html
>>>
>>> Regards
>>> JB
>>>
>>> On 10/06/2014 07:54 PM, Marcus Bond wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to figure out how to set up the pom for a karaf-assembly in
>>>> order to produce a custom distribution.
>>>>
>>>> I know the names of the features I want installed and started, such as
>>>> jetty, jms, cxf, camel etc. however I would like to know how I can
>>>> determine the dependencies that are required in the pom in order that
>>>> the custom distro will have all required dependencies in the "system"
>>>> folder. The environment it will run in has no access to any repositories
>>>> so will need to have a complete system folder generated at build time.
>>>>
>>>> How do we determine the maven dependency that a given feature requires?
>>>>
>>>> Regards,
>>>> Marcus.
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> [email protected]
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>>
>>

Reply via email to