Obsidian Generator: Backend

Parent POM for JBoss projects. Provides default project build configuration.

License

License

Categories

Categories

Ant Build Tools
GroupId

GroupId

org.obsidiantoaster
ArtifactId

ArtifactId

generator-backend
Last Version

Last Version

1.0.0.Alpha2
Release Date

Release Date

Type

Type

war
Description

Description

Obsidian Generator: Backend
Parent POM for JBoss projects. Provides default project build configuration.
Project Organization

Project Organization

JBoss by Red Hat
Source Code Management

Source Code Management

http://github.com/obsidian-toaster/generator-backend

Download generator-backend

How to add to project

<!-- https://jarcasting.com/artifacts/org.obsidiantoaster/generator-backend/ -->
<dependency>
    <groupId>org.obsidiantoaster</groupId>
    <artifactId>generator-backend</artifactId>
    <version>1.0.0.Alpha2</version>
    <type>war</type>
</dependency>
// https://jarcasting.com/artifacts/org.obsidiantoaster/generator-backend/
implementation 'org.obsidiantoaster:generator-backend:1.0.0.Alpha2'
// https://jarcasting.com/artifacts/org.obsidiantoaster/generator-backend/
implementation ("org.obsidiantoaster:generator-backend:1.0.0.Alpha2")
'org.obsidiantoaster:generator-backend:war:1.0.0.Alpha2'
<dependency org="org.obsidiantoaster" name="generator-backend" rev="1.0.0.Alpha2">
  <artifact name="generator-backend" type="war" />
</dependency>
@Grapes(
@Grab(group='org.obsidiantoaster', module='generator-backend', version='1.0.0.Alpha2')
)
libraryDependencies += "org.obsidiantoaster" % "generator-backend" % "1.0.0.Alpha2"
[org.obsidiantoaster/generator-backend "1.0.0.Alpha2"]

Dependencies

compile (6)

Group / Artifact Type Version
org.wildfly.swarm : cdi jar
org.wildfly.swarm : jaxrs-cdi jar
org.wildfly.swarm : jaxrs-jsonp jar
org.wildfly.swarm : management jar
org.jboss.forge : forge-service-core jar 1.0.0.Beta3
org.jboss.arquillian.extension : arquillian-rest-client-impl-jersey jar 1.0.0.Alpha3

provided (1)

Group / Artifact Type Version
javax : javaee-api jar

test (2)

Group / Artifact Type Version
org.wildfly.swarm : arquillian jar
org.jboss.arquillian.junit : arquillian-junit-container jar

Project Modules

There are no modules declared in this project.

Launchpad Backend

This repository is no longer maintained!

Moved to https://github.com/fabric8-launch/launcher-backend/

Build Status

This code generator project which is a Java backend system exposes several JBoss Forge commands using a REST endpoint. The backend runs within a WildFly Swarm container and is called from an Angular Front application responsible to collect from an end user the information needed to generate a Zip file containing a Maven project populated for an Eclipse Vert.x, Spring Boot, WildFly Swarm or Node.js container.

  • Build this project:
$ mvn clean package -s configuration/settings.xml

Remark : This project requires that you compile this github project.

  • Set the following environment variables:

      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_HOST=localhost
      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_PORT=8080
    
  • Execute the uber-jar in the target folder with:

$ java -Dswarm.port.offset=100 -jar target/launchpad-backend-swarm.jar

Then follow the front-end README to run the front-end.

Build and Run the Unit Tests

  • Execute:

      $ mvn clean install
    

Run the Integration Tests, Optionally Building

  • You need to set the following environment variables before running the integration tests:

      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_HOST=localhost
      $ export LAUNCHPAD_MISSIONCONTROL_SERVICE_PORT=8080
    
  • To build the project and run the integration tests, allowing Maven to start the WildFly Swarm server:

      $ mvn clean install -Pit
    
  • To skip building and just run the integration tests, allowing Maven to start the WildFly Swarm server:

      $ mvn integration-test -Pit
    

Reindex the booster catalog

Run the following command, replace TOKEN with the value defined in the environment variable LAUNCHPAD_BACKEND_CATALOG_REINDEX_TOKEN. Doesn't need to be specified if the environment variable doesn't exist in the running environment:

    $ curl -v -H "Content-Type: application/json" -d '{}' -X POST  https://localhost:8180/launchpad/catalog/reindex\?token\=TOKEN
org.obsidiantoaster

Obsidian Toaster

Tools, Quickstarts, Generators of Cloud Native Applications running top of OpenShift

Versions

Version
1.0.0.Alpha2
1.0.0.Alpha1