cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject [INFO] Karaf features-maven-plugin validate goal
Date Tue, 31 May 2011 12:47:00 GMT
Hi all,

FYI, I fixed KARAF-651.

Now, the features-maven-plugin (and karaf-maven-plugin on Karaf 
3.0.0-SNAPSHOT) now embeds by default the Karaf standard and enterprise 
features descriptors.

It means that it's no more required to add:

<repository>mvn:org.apache.karaf.assemblies.features/standard/x.x.x/xml/features</repository>
<repository>mvn:org.apache.karaf.assemblies.features/enterprise/x.x.x/xml/features</repository>

in your features descriptor to validate your features, it's made 
automatically by the plugin.

It means that now, your features descriptors is not linked to only one 
Karaf version.
By default, the plugin will use its version to get the Karaf core 
features descriptors, but you can also define the target Karaf version 
with the karafVersion attribute.

For instance, you can use something like:

   <plugin>
    <groupId>org.apache.karaf.tooling</groupId>
    <artifactId>features-maven-plugin</artifactId>
    <version>2.2.2-SNAPSHOT</version>
    <extensions>true</extensions>
    <executions>
     <execution>
      <phase>process-resources</phase>
      <goals>
       <goal>validate</goal>
      </goals>
      <configuration>
       <file>target/classes/features.xml</file>
       <karafVersion>2.2.0</karafVersion>
      </configuration>
     <execution>
    <executions>
  </plugin>

Regards
JB

Mime
View raw message