Hi Paul,

Probably because the apache-cxf features repository XML define <repository/> tag. And, on Karaf 2.x, the standard and enterprise features repository are automatically added in the plugin configuration.

I enhanced it on karaf-maven-plugin (with Karaf 3.0.x).

Regards
JB

On 03/04/2014 07:18 PM, Paul Spencer wrote:
Why are the standard and enterprise bundles copied twice when adding features 
to a repository?


** From output of  mvm clean generate-resources command
[INFO] --- features-maven-plugin:2.3.2:add-features-to-repo 
(add-features-to-repo) @ ewm-karaf-base ---
[INFO] Copying bundle: 
org.apache.karaf.assemblies.features:standard:xml:features:2.3.4
[INFO] Copying bundle: 
org.apache.karaf.assemblies.features:enterprise:xml:features:2.3.4
[INFO] Copying bundle: 
org.apache.karaf.assemblies.features:enterprise:xml:features:2.3.4
[INFO] Copying bundle: org.ops4j.pax.cdi:pax-cdi-features:xml:features:0.6.0
[INFO] Copying bundle: 
org.apache.karaf.assemblies.features:standard:xml:features:2.3.4
[INFO] Copying bundle: org.apache.cxf.karaf:apache-cxf:xml:features:2.7.6

** From pom.xml
   <groupId>org.apache.karaf.tooling</groupId>
   <artifactId>features-maven-plugin</artifactId>
   <version>2.3.2</version>

   <executions>
     <execution>
       <id>add-features-to-repo</id>
         <phase>generate-resources</phase>
         <goals>
           <goal>add-features-to-repo</goal>
         </goals>
         <configuration>
           <descriptors>
             <!--  Feature Descriptor Files -->
             <descriptor>
               mvn:org.apache.cxf.karaf/apache-cxf/2.7.6/xml/features
             </descriptor>
           </descriptors>
           <features>
             <!--  Features to add to offline respository -->
             <feature>http</feature>
             <feature>cxf-jaxws</feature>
           </features>
           <repository>target/offline-repository</repository>
           <karafVersion>2.3.4</karafVersion>
         </configuration>
     <execution>
   <executions>


Paul Spencer


--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to