karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Why are the standard and enterprise bundles copied twice when adding features to a repository?
Date Tue, 04 Mar 2014 18:25:12 GMT
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é
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message