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

Jean-Baptiste Onofré commented on KARAF-6414:
---------------------------------------------

If you use <repository/> if your features, it should work.

As a reminder, add-features-to-repo goal is deprecated and replaced by the 
archive one.

I will do the change anyway (it's super quick).



> [karaf-maven-plugin] Feature for auto-copy of features XML ?
> ------------------------------------------------------------
>
>                 Key: KARAF-6414
>                 URL: https://issues.apache.org/jira/browse/KARAF-6414
>             Project: Karaf
>          Issue Type: Improvement
>          Components: karaf
>    Affects Versions: 4.1.5, 4.3.0, 4.2.4
>            Reporter: Julien Greffe
>            Priority: Major
>
> Hello,
> I would like to be able to create a patch for Karaf.
> I used karaf-maven-plugin, goal {{features-add-to-repository}}. and declared 
> descriptors :
> {code:java}
> <descriptors>
>      <descriptor>file:somewhere/feature1.xml</descriptor>
>      <descriptor>file:somewhere/sub/feature2.xml</descriptor>
>      <descriptor>file:elsewhere/feature3.xml</descriptor>
>      <descriptor>file:elsewhere/sub/feature4.xml</descriptor>
> </descriptors> {code}
> Bundles are correctly copied to my {{<repository>}} parameter.
> But the declared {{<descriptors>}} files are not, and I have to declare them 
> one by one (again) using 
> {code:java}
> <copyFileBasedDescriptors>
>     <copyFileBasedDescriptor>
>         <sourceFile>...</sourceFile>
>         <targetDirectory>...</targetDirectory>
>         <targetFileName>...</targetFileName>
>     </copyFileBasedDescriptor>
>     <copyFileBasedDescriptor>
>     ...
>     </copyFileBasedDescriptor>
> </copyFileBasedDescriptors> {code}
> Is there any other way to auto-copy the used features to the target 
> repository?



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to