JBoss Fuse Maven Plugin

Maven plugin used to deploy and test Jboss Fuse applications

License

License

Categories

Categories

JBoss Container Application Servers Maven Build Tools
GroupId

GroupId

it.imolinfo.maven.plugins
ArtifactId

ArtifactId

jboss-fuse-maven-plugin
Last Version

Last Version

2.2.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

JBoss Fuse Maven Plugin
Maven plugin used to deploy and test Jboss Fuse applications
Project URL

Project URL

https://github.com/imolainformatica/fuse-maven-plugin
Project Organization

Project Organization

Imola Informatica S.P.A.
Source Code Management

Source Code Management

https://github.com/imolainformatica/fuse-maven-plugin

Download jboss-fuse-maven-plugin

How to add to project

<plugin>
    <groupId>it.imolinfo.maven.plugins</groupId>
    <artifactId>jboss-fuse-maven-plugin</artifactId>
    <version>2.2.0</version>
</plugin>

Dependencies

compile (14)

Group / Artifact Type Version
org.osgi : org.osgi.core jar 4.3.0
commons-io : commons-io jar 2.5
org.apache.commons : commons-lang3 jar 3.5
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-settings jar 3.3.9
org.apache.maven : maven-core jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
org.apache.maven : maven-project jar 2.2.1
org.slf4j : slf4j-api jar 1.7.21
org.slf4j : log4j-over-slf4j jar 1.7.21
org.slf4j : jcl-over-slf4j jar 1.7.21
ch.qos.logback : logback-classic jar 1.1.7
org.awaitility : awaitility jar 2.0.0
org.codehaus.plexus : plexus-archiver jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

JBoss Fuse Maven Plugin

The jboss-fuse-maven-plugin is used to deploy and test your JBoss Fuse application. There is also the ability to deploy application's dependencies and apply custom configuration.

Goals Overview

  • fuse:start downloads, applies custom configuration and starts JBoss Fuse.
  • fuse:shutdown stops JBoss Fuse.

fuse:start

mvn fuse:start

Description

Downloads, applies custom configuration, installs dependencies and starts JBoss Fuse. At the first run, downloads JBoss Fuse by https://repository.jboss.org/nexus/content/groups/ea/org/jboss/ and saves it in M2_HOME directory. JBoss Fuse zip file, is copied and unzipped in target directory.

fuse:shutdown

mvn fuse:shutdown

Description

Stops JBoss Fuse

Configuration

Parameter Type Required Description Default
etc String False The cfg files list to copy in the etc directory null
bundleStartLevel String False The start level for current artifact bundle 80
features String False The features list to install null
bundles String False The bundles list to install before the current artifact. If you want to define the start level, append the [X] notation. Example: mvn:org.apache.cxf/cxf-rt-features-loggingd/1.0-0[40] null
bundlesPostDeploy String false The bundles to install after current artifact. null
cfg List False The configuration list to apply to JBoss Fuse null
timeout Long False The timeout, in milliseconds, to wait for until JBoss Fuse is started 60000
cfg Parameter
Option Type Description
APPEND String Appends properties in the destination file
REPLACE String Replaces target string with replacement string in the destination file
COPY String Copies the source file in the destination directory
APPEND Option

Appends properties in the destination file

Parameter Type Required Description
destination String True The destination file path
properties List True List of properties to append to destination file
REPLACE Option

Replaces target string with replacement string in the destination file

Parameter Type Required Description
destination String True The destination file path
target String True The string to be replaced
replacement String True The replacement string
COPY Option

Copies the source file in the destination directory

Parameter Type Required Description
source String True The file to be copied in destination directory
destination String True The destination file path

Examples

<?xml version="1.0" encoding="UTF-8"?>
<plugin>
	<groupId>it.imolinfo.maven.plugins</groupId>
	<artifactId>jboss-fuse-maven-plugin</artifactId>
	<version>2.1.0</version>
	<configuration>
    	<etc>
        	cfg/it.imolinfo.maven.plugins.samples.cfg,<!-- Copy cfg file in the etc directory -->
        	cfg/user.properties <!-- Override user.properties file -->
    	</etc>
    	<features>
        	camel-http4,
        	camel-http,
        	camel-cmis
    	</features>
    	<bundles>
        	mvn:org.jgroups/jgroups/3.6.11.Final[40],
        	file://${basedir}target/bundle.jar
    	</bundles>
	</configuration>
	<executions>
    	<execution>
        	<id>Start Fuse</id>
        	<phase>pre-integration-test</phase>
        	<goals>
          		<goal>start</goal>
        	</goals>
    	</execution>
    	<execution>
        	<id>Shutdown Fuse</id>
        	<phase>post-integration-test</phase>
        	<goals>
            	<goal>shutdown</goal>
        	</goals>
    	</execution>
	</executions>
</plugin>
it.imolinfo.maven.plugins

Imola Informatica

Versions

Version
2.2.0
2.1.0
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.1.0
1.0.1
1.0.0