Created
February 26, 2015 14:57
-
-
Save rafaeltuelho/dcd85589a93c17d9f79f to your computer and use it in GitHub Desktop.
Maven POM sample to install a JAR artifact as a FAB deployment in JBoss Fuse 6.x
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<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> | |
<groupId>br.net.rafaeltuelho</groupId> | |
<artifactId>camel-blueprint-sample</artifactId> | |
<packaging>jar</packaging> | |
<version>0.0.1-SNAPSHOT</version> | |
<name>A Camel Blueprint Route</name> | |
<url>http://www.myorganization.org</url> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | |
</properties> | |
<repositories> | |
<repository> | |
<id>release.fusesource.org</id> | |
<name>FuseSource Release Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/repositories/releases</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</repository> | |
<repository> | |
<id>snapshot.fusesource.org</id> | |
<name>FuseSource Snapshot Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
</repository> | |
</repositories> | |
<pluginRepositories> | |
<pluginRepository> | |
<id>release.fusesource.org</id> | |
<name>FuseSource Release Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/repositories/releases</url> | |
<snapshots> | |
<enabled>false</enabled> | |
</snapshots> | |
<releases> | |
<enabled>true</enabled> | |
</releases> | |
</pluginRepository> | |
<pluginRepository> | |
<id>snapshot.fusesource.org</id> | |
<name>FuseSource Snapshot Repository</name> | |
<url>http://repo.fusesource.com/nexus/content/repositories/snapshots</url> | |
<snapshots> | |
<enabled>true</enabled> | |
</snapshots> | |
<releases> | |
<enabled>false</enabled> | |
</releases> | |
</pluginRepository> | |
</pluginRepositories> | |
<dependencies> | |
<dependency> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-core</artifactId> | |
<version>2.10.0.redhat-60024</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-blueprint</artifactId> | |
<version>2.10.0.redhat-60024</version> | |
<scope>provided</scope> | |
</dependency> | |
<!-- logging --> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-api</artifactId> | |
<version>1.6.6</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>slf4j-log4j12</artifactId> | |
<version>1.6.6</version> | |
</dependency> | |
<dependency> | |
<groupId>org.slf4j</groupId> | |
<artifactId>jcl-over-slf4j</artifactId> | |
<version>1.6.6</version> | |
</dependency> | |
<dependency> | |
<groupId>log4j</groupId> | |
<artifactId>log4j</artifactId> | |
<version>1.2.17</version> | |
</dependency> | |
<!-- testing --> | |
<dependency> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-test-blueprint</artifactId> | |
<version>2.10.0.redhat-60024</version> | |
<scope>test</scope> | |
</dependency> | |
</dependencies> | |
<build> | |
<defaultGoal>install</defaultGoal> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.5.1</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-resources-plugin</artifactId> | |
<version>2.4.3</version> | |
<configuration> | |
<encoding>UTF-8</encoding> | |
</configuration> | |
</plugin> | |
<!-- to generate the MANIFEST-FILE of the FAB Jar file with FAB-specific headers --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-jar-plugin</artifactId> | |
<configuration> | |
<archive> | |
<index>true</index> | |
<manifestEntries> | |
<FAB-Version-Range-Digits>0</FAB-Version-Range-Digits> | |
<FAB-Provided-Dependency> | |
org.apache.camel:* | |
org.apache.cxf:* | |
org.apache.activemq:* | |
</FAB-Provided-Dependency> | |
</manifestEntries> | |
</archive> | |
</configuration> | |
</plugin> | |
<!-- to run the example using mvn camel:run --> | |
<plugin> | |
<groupId>org.apache.camel</groupId> | |
<artifactId>camel-maven-plugin</artifactId> | |
<version>2.10.0.redhat-60024</version> | |
<configuration> | |
<useBlueprint>true</useBlueprint> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follows these steps to tryout a FAB deployment in JBoss FUSE 6.x:
Note the
fab:
prefix used to install the artifact as a FAB!Use some
fab:
Karaf commands to inspect the FAB metadata information.See some inspect commands