[ 
https://issues.apache.org/jira/browse/KARAF-3601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14499241#comment-14499241
 ] 

Freeman Fang commented on KARAF-3601:
-------------------------------------

Hi Martin,

As stated in the [1], the karaf:features-add-to-repository is old style manual 
assemblies, and it's actually redundant with install-kars, the install-kars 
goal can do same thing per your requirement "Copying all bundles required for a 
given set of features into a directory". If you don't wanna create a custom 
karaf distribution tar ball I think you can use install-kars goal  only which 
by default will copy all bundles  required for a given set of features into 
target/assembly folder.

Moreover, in this thread[2] discussion you can see the redundant old 
features-add-to-repository will be removed and rename install-kars goal to 
*assembly*(which is more meaningful), at least for the Karaf 4.x

[1]http://karaf.apache.org/manual/latest/developers-guide/karaf-maven-plugin.html
[2]http://karaf.922171.n3.nabble.com/Clean-up-karaf-maven-plugin-goals-td4039508.html
Freeman

> karaf-maven-plugin - support feature <conditional>
> --------------------------------------------------
>
>                 Key: KARAF-3601
>                 URL: https://issues.apache.org/jira/browse/KARAF-3601
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 3.0.3
>            Reporter: Martin Lichtin
>            Assignee: Freeman Fang
>
> This is a followup on 
> http://karaf.922171.n3.nabble.com/How-does-conditional-work-in-feature-files-tp4038880p4038888.html
> When configuring the plugin with:
> {noformat}
>     <descriptors>
>         
> <descriptor>mvn:org.apache.karaf.features/spring/3.0.3/xml/features</descriptor>
>         
> <descriptor>mvn:org.apache.karaf.features/standard/3.0.3/xml/features</descriptor>
>     </descriptors>
>     <features>
>         <feature>webconsole</feature>
>         ...
> {noformat}
> karaf-maven-plugin will not include the bundles that are inside the 
> "webconsole" conditional of "standard".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to