Giter Site home page Giter Site logo

karaf-maven-plugin's Introduction

karaf-maven-plugin

Usage

karaf:client

Full name:

org.jboss.qa:karaf-maven-plugin:1.1.0-SNAPSHOT:client

Description:

This maven plugin can execute OSGi commands via ssh client.

Attributes:

Name Type Description
host String Server host.
Default: localhost
port int Server port.
Default: 8101
user String Username.
Default: karaf
password String Password.
Default: karaf
attempts int Retry connection establishment (up to attempts times).
Default: 0
delay int Intra-retry delay.
Default: 2
commands List<String> OSGi commands. *
scripts List<File> Scripts with OSGi commands. *
keyFile File KeyFile location when using key login. **
skip boolean Skip execution.
Default: false
  • * Both parameters commands and scripts can be mixed.
  • ** Need have BouncyCastle registered as security provider using this flag.

Example:

<plugin>
    <groupId>org.jboss.qa</groupId>
	<artifactId>karaf-maven-plugin</artifactId>
	<version>1.0.0-SNAPSHOT</version>
	<configuration>
		<user>admin</user>
		<password>admin</password>
		<commands>
			<command>features:install -v switchyard-bean</command>
			<command>features:install -v switchyard-camel</command>
			<command>features:list -i | grep switchyard</command>
		</commands>
	</configuration>
	<executions>
		<execution>
			<id>setup-karaf</id>
			<phase>pre-integration-test</phase>
			<goals>
				<goal>execute</goal>
			</goals>
		</execution>
	</executions>
</plugin>

OSGi commands - Quickstarts

jaas:manage  --realm karaf --module org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
jaas:useradd jdoe secret
jaas:roleadd jdoe admin
jaas:update
config:edit org.ops4j.pax.url.mvn
config:propset org.ops4j.pax.url.mvn.settings <path>
config:update

karaf-maven-plugin's People

Contributors

basovnik avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.