liberty

A library that allows managing artifacts in a Liberty server

License

License

GroupId

GroupId

io.github.asseco-pst
ArtifactId

ArtifactId

liberty
Last Version

Last Version

0.0.6
Release Date

Release Date

Type

Type

pom.sha512
Description

Description

liberty
A library that allows managing artifacts in a Liberty server
Project URL

Project URL

https://github.com/asseco-pst/liberty
Source Code Management

Source Code Management

https://github.com/asseco-pst/liberty

Download liberty

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Liberty

CircleCI CodeFactor

What is it?

Liberty is an open source tool to allow deploying artifacts into Open Liberty or IBM Websphere Liberty servers. It provides a deploy builder that will assist in the necessary configuration for the deployer service. Using the deployer service, the following actions are currently supported:

  • install artifact
  • uninstall artifact
  • start artifact
  • stop artifact
  • restart artifact
  • get a list of installed artifacts
  • get a list of installed artifacts for a given package
  • change the autostart configuration (only supported for the custom strategy)

An artifact is a java package (war, ear, etc) that is currently supported by Open Liberty or IBM Websphere Liberty.

Right now, Liberty is supplied only as an importable dependency, but a CLI version is set to be developed as part of the roadmap.

Getting Started

Import using Maven or Gradle:

<dependency>
    <groupId>io.github.asseco-pst</groupId>
    <artifactId>liberty</artifactId>
    <version>...</version>
</dependency>
compile group: 'io.github.asseco-pst', name: 'liberty', version: '...'

Build from source

  1. Clone the project
git clone git@github.com:asseco-pst/liberty.git
  1. Run the following command on the root of the project:
gradlew build

Usage

As a CLI

Running the executable

To be developed as part of the roadmap.

As a Groovy Lib

Install a new artifact in a Liberty Server

// Sets up the deployment service 
IDeployService deployService = deployBuilder
                    .setProfileDetails('<server_uri>>', '<server_port>', '<username>', '<password>')
                    .setDeployStrategy(Strategy.DROPINS)
                    .setArtifactPath("<path_to_artifact>")
                    .build()

// Installs and starts the artifact on the Liberty server
 deployService.connect().installArtifact().await(2000).startArtifact()
io.github.asseco-pst

Asseco PST

Versions

Version
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2