Skip to content

Instantly share code, notes, and snippets.

@pentaho-nbaker
Last active April 25, 2016 15:52
Show Gist options
  • Save pentaho-nbaker/59fc12a7f6a874d0ec88ca9f782ef510 to your computer and use it in GitHub Desktop.
Save pentaho-nbaker/59fc12a7f6a874d0ec88ca9f782ef510 to your computer and use it in GitHub Desktop.
Using new Maven plugin to build feature.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>pentaho</groupId>
<artifactId>pentaho-kettle-karaf</artifactId>
<version>6.1-SNAPSHOT</version>
<relativePath>../</relativePath>
</parent>
<groupId>pentaho</groupId>
<artifactId>pentaho-kettle-feature</artifactId>
<packaging>feature</packaging>
<name>Pentaho Community Edition Project: ${project.artifactId}</name>
<description>a Pentaho open source project</description>
<url>http://www.pentaho.com</url>
<properties>
<exam.version>4.6.0</exam.version>
<url.version>2.4.1</url.version>
</properties>
<dependencies>
<dependency>
<groupId>org.pentaho</groupId>
<artifactId>kettle-combined</artifactId>
<version>6.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>pentaho</groupId>
<artifactId>pentaho-camel-core</artifactId>
<version>6.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>pentaho</groupId>
<artifactId>pentaho-camel-pdi</artifactId>
<version>6.1-SNAPSHOT</version>
<exclusions>
<exclusion><groupId>org.eclipse.jetty</groupId><artifactId>*</artifactId></exclusion>
<exclusion>
<groupId>*</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-junit4</artifactId>
<version>${exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-link-mvn</artifactId>
<version>${exam.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-aether</artifactId>
<version>${url.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.url</groupId>
<artifactId>pax-url-wrap</artifactId>
<version>${url.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-cdi</artifactId>
<version>4.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.tinybundles</groupId>
<artifactId>tinybundles</artifactId>
<version>2.0.0</version>
<exclusions>
<exclusion>
<groupId>org.osgi</groupId>
<artifactId>org.osgi.core</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.framework</artifactId>
<version>4.4.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.ops4j.pax.exam</groupId>
<artifactId>pax-exam-container-karaf</artifactId>
<version>${exam.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.3</version>
<extensions>true</extensions>
<configuration>
<startLevel>80</startLevel>
<aggregateFeatures>true</aggregateFeatures>
</configuration>
<dependencies>
<dependency>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bndlib</artifactId>
<version>2.4.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment