phantomjinx / hawtio-camel-catalog-schema-generator-plugin

Schema generator converting the Camel-Catalog to a javascript schema model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hawtio Camel Catalog Schema Generator

This package contains the maven generator mojo used to convert the Camel Catalog into a JSON object that can be consumed by javascript clients.

The mojo should be called from a client project's pom.xml as such:

  <build>
    <plugins>
      <plugin>
        <groupId>io.hawt</groupId>
        <artifactId>hawtio-camel-catalog-generator-plugin</artifactId>
        <version>${version.io.hawt.plugin}</version>
        <executions>
          <execution>
            <id>generate-camel-model</id>
            <goals>
              <goal>generate-camel-model</goal>
            </goals>
            <configuration>
              <buildDir>.</buildDir>
              <schemaFile>camelModel.js</schemaFile>
            </configuration>
          </execution>
        </executions>
      </plugin>
    ...
    ...

The result will be a file named camelModel.js generated in the build directory. This can be then consumed as a javascript source file in the client application.

About

Schema generator converting the Camel-Catalog to a javascript schema model

License:Apache License 2.0


Languages

Language:Java 96.8%Language:Shell 3.2%