Maven Central: io.mateu.workflow:workflow-maven-plugin:1.0-beta.010

workflow-maven-plugin

Overview

Description

Maven plugin that validates EventConductor workflow, form and rule definitions (JSON/YAML) against their published specifications at build time.

Snippets

<dependency>
    <groupId>io.mateu.workflow</groupId>
    <artifactId>workflow-maven-plugin</artifactId>
    <version>1.0-beta.010</version>
</dependency>

Maven POM File

<?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>io.mateu.workflow</groupId>
        <artifactId>eventconductor</artifactId>
        <version>1.0-beta.010</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

<artifactId>workflow-maven-plugin</artifactId>
    <packaging>maven-plugin</packaging>
    <name>workflow-maven-plugin</name>
    <description>Maven plugin that validates EventConductor workflow, form and rule
        definitions (JSON/YAML) against their published specifications at build time.</description>

<properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.api.version>3.9.16</maven.api.version>
        <eventconductor.validate.skip>true</eventconductor.validate.skip>
    </properties>

<dependencies>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <version>${maven.api.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-core</artifactId>
            <version>${maven.api.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.plugin-tools</groupId>
            <artifactId>maven-plugin-annotations</artifactId>
            <version>3.15.2</version>
            <scope>provided</scope>
        </dependency>

<dependency>
            <groupId>com.networknt</groupId>
            <artifactId>json-schema-validator</artifactId>
            <version>3.0.6</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-yaml</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-jexl3</artifactId>
            <version>3.7.0</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
        </dependency>

<dependency>
            <groupId>org.junit.jupiter</groupId>
            <artifactId>junit-jupiter</artifactId>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.assertj</groupId>
            <artifactId>assertj-core</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

<build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <executions>
                    <execution>
                        <id>copy-canonical-schemas</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.outputDirectory}/schemas</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${project.basedir}/../workflow-engine/src/main/resources</directory>
                                    <includes>
                                        <include>workflow-definition-schema.json</include>
                                    </includes>
                                </resource>
                                <resource>
                                    <directory>${project.basedir}/../forms-engine/src/main/resources</directory>
                                    <includes>
                                        <include>form-schema.json</include>
                                    </includes>
                                </resource>
                                <resource>
                                    <directory>${project.basedir}/../rule-engine/src/main/resources</directory>
                                    <includes>
                                        <include>rule-schema.json</include>
                                    </includes>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-plugin-plugin</artifactId>
                <version>3.13.1</version>
                <configuration>
                    <goalPrefix>eventconductor</goalPrefix>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Metadata

Organization

External Resources

Known Contributors