# generator-mediator-java

> OpenHIM Mediator generator for Java

Latest version **1.0.4** (published 2016-06-14) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install generator-mediator-java
pnpm add generator-mediator-java
yarn add generator-mediator-java
bun add generator-mediator-java
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-06-14 |
| First published | 2015-01-05 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 6 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jembi Health Systems |
| Maintainers | bmartinos, hannesv |
| Keywords | yeoman-generator, OpenHIM, OpenHIE, Interoperability |

## Links

- npm: https://www.npmjs.com/package/generator-mediator-java
- Repository: https://github.com/jembi/openhim-mediator-yeoman-generators
- Homepage: https://github.com/jembi/openhim-mediator-yeoman-generators#readme
- Issues: https://github.com/jembi/openhim-mediator-yeoman-generators/issues
- npm.io page: https://npm.io/package/generator-mediator-java

## Dependencies (6)

- [yo](https://npm.io/package/yo.md) >=1.0.0
- [chalk](https://npm.io/package/chalk.md) ^0.5.0
- [mocha](https://npm.io/package/mocha.md) *
- [yosay](https://npm.io/package/yosay.md) ^0.3.0
- [node-uuid](https://npm.io/package/node-uuid.md) ^1.4.2
- [yeoman-generator](https://npm.io/package/yeoman-generator.md) ^0.18.0

## Recent versions

- 1.0.4 (latest) — 2016-06-14
- 1.0.3 — 2015-06-23
- 1.0.1 — 2015-02-11
- 0.1.4 — 2015-01-20
- 0.1.3 — 2015-01-06
- 0.1.1 — 2015-01-05
- 0.1.0 — 2015-01-05

## README

[![OpenHIM Core](https://img.shields.io/badge/openhim--core-1.4%2B-brightgreen.svg)](http://openhim.readthedocs.org/en/latest/user-guide/versioning.html)

# generator-mediator-java

A [Yeoman](http://yeoman.io) generator for scaffolding a Java-based [OpenHIM](http://openhim.org/) mediator based on the [Java Engine](https://github.com/jembi/openhim-mediator-engine-java).


## Getting Started

It's quick to get up and running. First install yeoman and this generator, and then run the generator:
```bash
npm install -g yo
npm install -g generator-mediator-java
mkdir my-mediator
cd my-mediator
yo mediator-java
```

The generator will prompt you with several questions for your mediator and will then setup the scaffold. When done, simply run
```bash
mvn install
```
to build the mediator.

The mediator is packaged as a stand-alone jar and can be executed as follows:
```bash
java -jar mediator-x.y.x-jar-with-dependencies.jar --conf my-mediator.properties
```

The .jar can be found in `target/` and a default set of properties in `src/main/resources/mediator.properties`

## Certificate Issues

If you're using the OpenHIM with a self-signed certificate, [this tutorial](http://openhim.readthedocs.io/en/latest/tutorial/3-creating-a-passthrough-mediator.html#suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target) should help you setup your local JRE to accomodate the HIM's certificate.

## Compatibility

Out of the box the scaffolded mediator will be compatible with version 1.4+ of the OpenHIM Core. Note however that it will be fully compatible with 2.0+ as well. If for some reason you require the mediator to be 1.2+ compatible, you can easily allow this by disabling the heartbeats. To do so simply set `mediator.heartbeats` to `false` in `mediator.properties`.

---
_Source: https://npm.io/package/generator-mediator-java · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
