Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Merge a6a8abb into b394f69
Browse files Browse the repository at this point in the history
  • Loading branch information
allanmckenzie committed Jul 12, 2019
2 parents b394f69 + a6a8abb commit 16e1b7e
Show file tree
Hide file tree
Showing 47 changed files with 1,706 additions and 676 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to
[Semantic Versioning](http://semver.org/).

## [Unreleased]
### Added
- New command '--list' which lists the commands available on your Wildfly instance.
- Authentication to a remote Wildfly instance with commands '--username' and '--password'
### Changed
- Application now run in a Weld container to allow for dependency injection

## [1.0.0] - 2019-06-19

### Added
- Initial release of the catchup-shuttering-manager CLI tool, supporting invocation of the event sourcing frameworks SHUTTER, UNSHUTTER, CATCHUP, REBUILD operations.

21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@
## Usage

catchup-shuttering-manager
-c,--command <arg> Framework command to execute, for example
CATCHUP,SHUTTER, UNSHUTTER & REBUILD.
-h,--help show help.
-ho,--host <arg> Host Remote or Localhost
-p,--port <arg> Wildfly management port
-c,--command <arg> Framework command to execute.
-h,--help Show help.
-ho,--host <arg> Hostname or IP address of the Wildfly server. Defaults to localhost
-p,--port <arg> Wildfly management port. Defaults to 9990 (the default for Wildfly)
-u, --username Optional username for Wildfly management security
-pw, --password Optional password for Wildfly management security
-l, --list List of all framework commands

java -jar catchup-shuttering-manager.jar -c "SHUTTER" -ho "localhost" -p "9999"

java -jar catchup-shuttering-manager.jar -c "PING"

Note: If you are running wildfly on your local machine and running as the same user as the one you are
logged in as, then username/password are not required. (However, if running wildfly in a virtual machine
like vagrant, username and password will be required)

The default username/password for Wildfly is admin/admin
312 changes: 165 additions & 147 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,153 +1,171 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>uk.gov.justice</groupId>
<artifactId>maven-parent-pom</artifactId>
<version>1.7.1</version>
</parent>

<artifactId>catchup-shuttering-manager</artifactId>
<version>1.0.0-SNAPSHOT</version>

<properties>
<cpp.repo.name>catchup-shuttering-manager</cpp.repo.name>

<framework.version>6.0.0-M30</framework.version>
<event-store.version>2.0.0-M35</event-store.version>
<framework-generators.version>2.0.0-M15</framework-generators.version>
<framework-api.version>4.0.0-M24</framework-api.version>
<commons.cli.version>1.2</commons.cli.version>
</properties>

<scm>
<connection>${cpp.scm.connection}</connection>
<developerConnection>${cpp.scm.developerConnection}</developerConnection>
<url>${cpp.scm.url}</url>
</scm>

<dependencyManagement>
<dependencies>
<dependency>
<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>

<parent>
<groupId>uk.gov.justice</groupId>
<artifactId>maven-common-bom</artifactId>
<version>1.28.0</version>
<scope>import</scope>
<type>pom</type>
</dependency>
<artifactId>maven-parent-pom</artifactId>
<version>1.7.1</version>
</parent>

<artifactId>catchup-shuttering-manager</artifactId>
<version>1.0.0-SNAPSHOT</version>

<properties>
<cpp.repo.name>catchup-shuttering-manager</cpp.repo.name>

<framework-api.version>4.0.1</framework-api.version>
<framework.version>6.0.0-RC4</framework.version>
<event-store.version>2.0.0-RC5</event-store.version>
<framework-generators.version>2.0.0-RC4</framework-generators.version>
<maven-common-bom.version>2.4.0</maven-common-bom.version>

<commons.cli.version>1.2</commons.cli.version>
<wildfly.version>10.0.0.Final</wildfly.version>
</properties>

<scm>
<connection>${cpp.scm.connection}</connection>
<developerConnection>${cpp.scm.developerConnection}</developerConnection>
<url>${cpp.scm.url}</url>
</scm>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>uk.gov.justice</groupId>
<artifactId>maven-common-bom</artifactId>
<version>${maven-common-bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

<dependencies>

<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>jmx-command-client</artifactId>
<version>${framework.version}</version>
</dependency>
<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>framework-management</artifactId>
<version>${framework.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>log4j-over-slf4j</artifactId>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
<dependency>
<groupId>uk.gov.justice.event-store</groupId>
<artifactId>event-store-management</artifactId>
<version>${event-store.version}</version>
</dependency>
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.weld.se</groupId>
<artifactId>weld-se</artifactId>
</dependency>
<dependency>
<groupId>uk.gov.justice.event-store</groupId>
<artifactId>event-buffer-core</artifactId>
<version>${event-store.version}</version>
</dependency>
<dependency>
<groupId>org.wildfly</groupId>
<artifactId>wildfly-client-all</artifactId>
</dependency>


<!-- Test Dependencies -->
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<scope>test</scope>
</dependency>


</dependencies>
</dependencyManagement>

<dependencies>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>jmx-command-client</artifactId>
<version>${framework.version}</version>
</dependency>

<dependency>
<groupId>uk.gov.justice.services</groupId>
<artifactId>framework-management</artifactId>
<version>${framework.version}</version>
</dependency>

<dependency>
<groupId>uk.gov.justice.event-store</groupId>
<artifactId>event-store-management</artifactId>
<version>${event-store.version}</version>
</dependency>

<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>${commons.cli.version}</version>
</dependency>

<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${argLine} -Xmx64m</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>

<!-- Maven Assembly Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!-- get all project dependencies -->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.name}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<!-- MainClass in mainfest make a executable jar -->
<archive>
<manifest>
<mainClass>uk.gov.justice.CatchUpAndShutteringManager</mainClass>
</manifest>
</archive>

</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>

</plugins>
</build>

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>${argLine} -Xmx64m</argLine>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins>

<!-- Maven Assembly Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<!-- get all project dependencies -->
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.name}</finalName>
<appendAssemblyId>false</appendAssemblyId>
<!-- MainClass in mainfest make a executable jar -->
<archive>
<manifest>
<mainClass>
uk.gov.justice.framework.command.client.startup.CatchUpAndShutteringManager
</mainClass>
</manifest>
</archive>

</configuration>
<executions>
<execution>
<id>make-assembly</id>
<!-- bind to the packaging phase -->
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>

</plugins>
</build>

</project>
39 changes: 0 additions & 39 deletions src/main/java/uk/gov/justice/CatchUpAndShutteringManager.java

This file was deleted.

Loading

0 comments on commit 16e1b7e

Please sign in to comment.