Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <sample>
- <!-- ============== FEATURE FILE ================ -->
- <features name="xxx-features">
- <!--xmlns="http://karaf.apache.org/xmlns/features/v1.0.0"-->
- <!--<repository>mvn:com.apogado.xxx/xxx-feature/1.0-SNAPSHOT/xml/features</repository>-->
- <feature name="xxx-feature" version="1.0-SNAPSHOT">
- <!-- generic feature dependencies -->
- <feature>war</feature>
- <feature>cxf</feature>
- <feature>config</feature>
- <feature>wss4j</feature>
- <feature>camel-core</feature>
- <feature>camel-blueprint</feature>
- <feature>camel-spring</feature>
- <feature>camel-cxf</feature>
- <feature>spring-dm</feature>
- <feature>webconsole</feature>
- <feature>camel-jaxb</feature>
- <!-- support bundles -->
- <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle>
- <bundle>mvn:commons-pool/commons-pool/1.5.4</bundle>
- <bundle>mvn:commons-dbcp/commons-dbcp/1.4</bundle>
- <bundle>mvn:commons-lang/commons-lang/2.5</bundle>
- <bundle>mvn:commons-codec/commons-codec/1.6</bundle>
- <bundle>wrap:mvn:postgresql/postgresql/9.1-901-1.jdbc4</bundle>
- <!-- common classes -->
- <bundle>mvn:com.apogado.xxx/commons/1.0-SNAPSHOT</bundle>
- <config name="com.apogado.xxx.utils.xxx">
- param1=value1
- param2=value2
- param3=value3
- </config>
- </feature>
- </features>
- <!-- ========= POM KAR generation ============= -->
- <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/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <!-- deleted -->
- <packaging>pom</packaging>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <extensions>true</extensions>
- <version>${maven-bundle-plugin.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>${maven-resource-plugin.version}</version>
- <executions>
- <execution>
- <id>copy-features</id>
- <phase>generate-resources</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>target/features</outputDirectory>
- <resources>
- <resource>
- <directory>src/main/features</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.7</version>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <artifact>
- <file>target/features/features.xml</file>
- <type>xml</type>
- <classifier>features</classifier>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>features-maven-plugin</artifactId>
- <version>2.3.2</version>
- <executions>
- <execution>
- <id>create-kar</id>
- <goals>
- <goal>create-kar</goal>
- </goals>
- <configuration>
- <featuresFile>${project.basedir}/src/main/features/features.xml</featuresFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
- </sample>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement