camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: [INFO] Karaf features-maven-plugin validate goal
Date Tue, 31 May 2011 13:27:28 GMT
It's handy feature and I really like it :)

On 5/31/11 8:47 PM, Jean-Baptiste Onofré wrote:
> 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
>


-- 
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
          http://jnn.javaeye.com (Chinese)
Twitter: willemjiang
Weibo: willemjiang

Mime
View raw message