Javaflow Maven Plugin

Maven plugin for running JavaFlow

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.github.havardh
ArtifactId

ArtifactId

javaflow-maven-plugin
Last Version

Last Version

1.4.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Javaflow Maven Plugin
Maven plugin for running JavaFlow
Project URL

Project URL

https://github.com/havardh/javaflow-maven-plugin
Source Code Management

Source Code Management

http://github.com/havardh/javaflow-maven-plugin/tree/master

Download javaflow-maven-plugin

How to add to project

<plugin>
    <groupId>com.github.havardh</groupId>
    <artifactId>javaflow-maven-plugin</artifactId>
    <version>1.4.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.3
org.apache.commons : commons-io jar 1.3.2
com.github.havardh : javaflow jar 1.5.0

test (1)

Group / Artifact Type Version
junit : junit jar 3.8.1

Project Modules

There are no modules declared in this project.

Javaflow Maven Plugin

Maven plugin for running javaflow.

How to use

Add the following to the plugins section of your pom.xml file.

<plugin>
  <groupId>com.github.havardh</groupId>
  <artifactId>javaflow-maven-plugin</artifactId>
  <version>1.2.0</version>
  <configuration>

    <!-- Specify output target directory. Default: ${basedir}/src/main/java -->
    <!-- sourceDirectory>test</sourceDirectory -->

    <!-- Specify output target directory. Default: ${basedir}/target -->
    <!-- targetDirectory></targetDirectory -->
    <apis>
      <api>
        <packageName>com.github.havardh.example.api</packageName>
        <suffixes>
          <!-- here you can specify suffixes like Dto.java -->
          <suffix>.java</suffix>
        </suffixes>
        <output>flow.js</output>
        <types>
          <!-- example for overriding types -->
          <!-- tag name is canonical java type name -->
          <!-- value is a valid flow (https://flow.org/) type -->
          <java.math.BigDecimal>number</java.math.BigDecimal>
        </types>
        <verifications>
          <!-- optional flag specifying if the engine should use the `ClassGetterNamingVerifier` -->
          <!-- take a look at the javaflow docs for more info on what this verifier does -->
          <verifyGetters>true</verifyGetters>
        </verifications>
      </api>

      <!-- more api nodes if applicable -->
    </apis>
  </configuration>
</plugin>

Run mvn javaflow:build to generate the flow types.

Documentation

Refer to the readme of the javaflow repository for additional documentation.

Versions

Version
1.4.0
1.3.1
1.3.0
1.2.0
1.1.0