You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/07/19 09:47:32 UTC

[incubator-streampipes-examples] branch dev updated: Add main class to Spring boot config

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-examples.git


The following commit(s) were added to refs/heads/dev by this push:
     new 43af2ad  Add main class to Spring boot config
43af2ad is described below

commit 43af2ad5c3d8306cfb1a5a84d8197fecb6533253
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Mon Jul 19 11:47:21 2021 +0200

    Add main class to Spring boot config
---
 streampipes-pipeline-elements-examples-processors-jvm/pom.xml        | 5 ++++-
 .../apache/streampipes/client/example/StreamPipesClientExample.java  | 5 +++--
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/streampipes-pipeline-elements-examples-processors-jvm/pom.xml b/streampipes-pipeline-elements-examples-processors-jvm/pom.xml
index ca7c5ff..0137305 100644
--- a/streampipes-pipeline-elements-examples-processors-jvm/pom.xml
+++ b/streampipes-pipeline-elements-examples-processors-jvm/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <artifactId>streampipes-pipeline-elements-examples</artifactId>
         <groupId>org.apache.streampipes</groupId>
-        <version>0.68.0-SNAPSHOT</version>
+        <version>0.69.0-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
@@ -76,6 +76,9 @@
                         </goals>
                     </execution>
                 </executions>
+                <configuration>
+                    <mainClass>org.apache.streampipes.pe.examples.jvm.ExamplesInit</mainClass>
+                </configuration>
             </plugin>
         </plugins>
         <finalName>streampipes-processors-examples-jvm</finalName>
diff --git a/streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/client/example/StreamPipesClientExample.java b/streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/client/example/StreamPipesClientExample.java
index 6d1e15d..2e4d9a1 100644
--- a/streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/client/example/StreamPipesClientExample.java
+++ b/streampipes-pipeline-elements-examples-processors-jvm/src/main/java/org/apache/streampipes/client/example/StreamPipesClientExample.java
@@ -29,7 +29,8 @@ import org.apache.streampipes.model.template.PipelineElementTemplate;
 
 import java.util.List;
 
-public class StreamPipesClientExample {
+public class
+StreamPipesClientExample {
 
   public static void main(String[] args) {
 
@@ -43,7 +44,7 @@ public class StreamPipesClientExample {
     StreamPipesClient client = StreamPipesClient
             .create("localhost", 80, credentials, true);
 
-    // Get all pipeliens
+    // Get all pipelines
     List<Pipeline> pipelines = client.pipelines().all();
 
     // Start a pipeline