spring-cloud-stream-app-maven-plugin Maven Plugin

spring cloud stream and task app generator plugin

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.springframework.cloud.stream.app.plugin
ArtifactId

ArtifactId

spring-cloud-stream-app-maven-plugin
Last Version

Last Version

1.2.14.RELEASE
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

spring-cloud-stream-app-maven-plugin Maven Plugin
spring cloud stream and task app generator plugin
Project URL

Project URL

http://spring.io
Project Organization

Project Organization

Pivotal Software, Inc.
Source Code Management

Source Code Management

https://github.com/spring-cloud/spring-cloud-stream-app-maven-plugin

Download spring-cloud-stream-app-maven-plugin

How to add to project

<plugin>
    <groupId>org.springframework.cloud.stream.app.plugin</groupId>
    <artifactId>spring-cloud-stream-app-maven-plugin</artifactId>
    <version>1.2.14.RELEASE</version>
</plugin>

Dependencies

compile (7)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.19
org.apache.maven : maven-model jar 2.2.1
commons-io : commons-io jar 2.4
io.spring.initializr : initializr-generator jar 0.1.0.RELEASE
org.apache.maven : maven-plugin-api jar 2.0
org.codehaus.plexus : plexus-utils jar 3.0.8
org.apache.maven : maven-project jar 2.0.6

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.2

Project Modules

There are no modules declared in this project.

Annoucement

This repo has been decommissioned. Please switch over to spring-cloud/spring-cloud-app-starters-maven-plugins instead.

spring-cloud-stream-app-maven-plugin

Maven plugin for generating spring cloud stream applications from the spring-cloud-stream-app-starters repository

Build

mvn clean package [Requires JDK 8]

Sample Configuration for generating spring cloud stream apps

and for Spring Cloud Task Apps it is at:

    <plugin>
        <groupId>org.springframework.cloud.stream.app.plugin</groupId>
        <artifactId>spring-cloud-stream-app-maven-plugin</artifactId>
        <version>1.0.0.BUILD-SNAPSHOT</version>
            <configuration>
                <generatedProjectHome>/tmp</generatedProjectHome>
                <generatedProjectVersion>${project.version}</generatedProjectVersion>
                <applicationType>stream</applicationType>
                <bom>
                    <name>scs-bom</name>
                    <groupId>org.springframework.cloud.stream.app</groupId>
                    <artifactId>spring-cloud-stream-app-dependencies</artifactId>
                    <version>${project.version}</version>
                </bom>

                <binders>
                    <kafka />
                    <rabbit />
                </binders>
                <generatedApps>
                <time-source />
                    <transform-processor />
                    <trigger-source />
                    <file-sink />
                </generatedApps>
            </configuration>
    </plugin>

Binders are only applicable for spring cloud stream apps. They are not required for spring cloud task apps.

Application type must be stream and task for stream and task apps respectively.

The bom for stream apps is specified in spring-cloud-stream-app-dependencies (group id: org.springframework.cloud.stream.app)

and for tasks it is spring-cloud-task-app-dependencies (group id: org.springframework.cloud.task.app).

Extra dependency management can be added as additional boms to the plugin using the property -DbomsWithHigherPrecedence and value based on the pattern groupId:artfiactId:version. This can be a comma separated collection of boms. Any bom added like this will get priority in the order they are specified over any default values used in the plugin configuration.

Spring Boot version used in the generated app can be overridden using the plugin property
-DbootVersion=<spring boot version>.
org.springframework.cloud.stream.app.plugin

Spring Cloud

Tools for building common patterns in distributed systems with Spring

Versions

Version
1.2.14.RELEASE
1.2.13.RELEASE
1.2.12.RELEASE
1.2.11.RELEASE
1.2.10.RELEASE
1.2.9.RELEASE
1.2.8.RELEASE
1.2.7.RELEASE
1.2.6.RELEASE
1.2.5.RELEASE
1.2.4.RELEASE
1.2.3.RELEASE
1.2.2.RELEASE
1.2.1.RELEASE
1.2.0.RELEASE
1.1.0.RELEASE
1.0.2.RELEASE
1.0.1.RELEASE
1.0.0.RELEASE