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/11/18 16:05:04 UTC

[incubator-streampipes] branch STREAMPIPES-463 updated: [STREAMPIPES-474] Update JVM archetype for processors, rename archetype to archetype-extensions-jvm

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

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


The following commit(s) were added to refs/heads/STREAMPIPES-463 by this push:
     new 8e211e8  [STREAMPIPES-474] Update JVM archetype for processors, rename archetype to archetype-extensions-jvm
     new b0ff4d0  Merge branch 'STREAMPIPES-463' of github.com:apache/incubator-streampipes into STREAMPIPES-463
8e211e8 is described below

commit 8e211e81d01fb7a3670bf410aca161fa73d818d6
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Thu Nov 18 17:04:36 2021 +0100

    [STREAMPIPES-474] Update JVM archetype for processors, rename archetype to archetype-extensions-jvm
---
 .../README.md                                      |   6 +-
 .../pom.xml                                        |   4 +-
 .../META-INF/maven/archetype-metadata.xml          |   0
 .../main/resources/archetype-resources/Dockerfile  |   4 +-
 .../resources/archetype-resources/development/env  |   0
 .../src/main/resources/archetype-resources/pom.xml |  54 ++------------
 .../archetype-resources/src/main/java/Init.java    |  46 +++++++-----
 .../pe/__packageName__/ExampleDataProcessor.java   |  81 +++++++++++++++++++++
 .../java/pe/__packageName__/ExampleDataSink.java   |  77 ++++++++++++++++++++
 .../documentation.md                               |   0
 .../__package__.pe.__packageName__}/icon.png       | Bin
 .../__package__.pe.__packageName__/strings.en      |   5 ++
 .../src/main/java/config/Config.java               |  62 ----------------
 .../src/main/java/config/ConfigKeys.java           |  28 -------
 .../__packageName__/__classNamePrefix__.java       |  49 -------------
 .../__classNamePrefix__Controller.java             |  71 ------------------
 .../__classNamePrefix__Parameters.java             |  39 ----------
 .../strings.en                                     |   5 --
 pom.xml                                            |   2 +-
 streampipes-sdk-bundle/pom.xml                     |   2 +-
 20 files changed, 205 insertions(+), 330 deletions(-)

diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/README.md b/archetypes/streampipes-archetype-extensions-jvm/README.md
similarity index 84%
rename from archetypes/streampipes-archetype-pe-processors-jvm/README.md
rename to archetypes/streampipes-archetype-extensions-jvm/README.md
index e5cd9d8..2c51316 100644
--- a/archetypes/streampipes-archetype-pe-processors-jvm/README.md
+++ b/archetypes/streampipes-archetype-extensions-jvm/README.md
@@ -16,14 +16,14 @@
   ~
   -->
 
-## StreamPipes Maven Archetype for Standalone Processors
+## StreamPipes Maven Archetype for Standalone Extensions
 
 ### Usage
 
 ```bash
 mvn archetype:generate \
  -DarchetypeGroupId=org.apache.streampipes \
- -DarchetypeArtifactId=streampipes-archetype-pe-processors-jvm \
+ -DarchetypeArtifactId=streampipes-archetype-extensions-jvm \
  -DarchetypeVersion=<VERSION> \
  -DgroupId=org.myorga \
  -DclassNamePrefix=MyProcessor \
@@ -33,6 +33,6 @@ mvn archetype:generate \
 			
 ### Variables
 
-* classNamePrefix: Will be used as a prefix to name your controller & parameter classes
+* classNamePrefix: Will be used as a prefix to prefix the examples processor and sink
 * packageName: Will be used as the package name
 
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/pom.xml b/archetypes/streampipes-archetype-extensions-jvm/pom.xml
similarity index 93%
rename from archetypes/streampipes-archetype-pe-processors-jvm/pom.xml
rename to archetypes/streampipes-archetype-extensions-jvm/pom.xml
index 5e2d9b5..a1fded4 100644
--- a/archetypes/streampipes-archetype-pe-processors-jvm/pom.xml
+++ b/archetypes/streampipes-archetype-extensions-jvm/pom.xml
@@ -25,10 +25,10 @@
         <version>0.69.0-SNAPSHOT</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
-    <artifactId>streampipes-archetype-pe-processors-jvm</artifactId>
+    <artifactId>streampipes-archetype-extensions-jvm</artifactId>
     <packaging>maven-archetype</packaging>
 
-    <name>streampipes-archetype-pe-processors-jvm</name>
+    <name>streampipes-archetype-extensions-jvm</name>
 
     <build>
         <extensions>
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/META-INF/maven/archetype-metadata.xml
similarity index 100%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/META-INF/maven/archetype-metadata.xml
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/META-INF/maven/archetype-metadata.xml
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/Dockerfile b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/Dockerfile
similarity index 84%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/Dockerfile
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/Dockerfile
index e4d5893..4c93ac7 100644
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/Dockerfile
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/Dockerfile
@@ -18,6 +18,6 @@ FROM adoptopenjdk/openjdk8-openj9:alpine
 EXPOSE 8090
 ENV CONSUL_LOCATION consul
 
-COPY ./target/${artifactId}.jar  /streampipes-processing-element-container.jar
+COPY ./target/${artifactId}.jar  /streampipes-extensions-service.jar
 
-ENTRYPOINT ["java", "-jar", "/streampipes-processing-element-container.jar"]
+ENTRYPOINT ["java", "-jar", "/streampipes-extensions-service.jar"]
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/development/env b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/development/env
similarity index 100%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/development/env
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/development/env
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/pom.xml b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/pom.xml
similarity index 60%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/pom.xml
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/pom.xml
index f419eb2..d40d5c5 100644
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/pom.xml
@@ -31,7 +31,7 @@
     <dependencies>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-commons</artifactId>
+            <artifactId>streampipes-sdk-bundle</artifactId>
             <version>${sp.version}</version>
         </dependency>
         <dependency>
@@ -41,52 +41,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-sdk</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-container-standalone</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-config</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-dataformat-json</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-dataformat-cbor</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-dataformat-smile</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-dataformat-fst</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-messaging-jms</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-messaging-kafka</artifactId>
-            <version>${sp.version}</version>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-messaging-mqtt</artifactId>
+            <artifactId>streampipes-sources</artifactId>
             <version>${sp.version}</version>
         </dependency>
     </dependencies>
@@ -94,6 +49,11 @@
     <build>
         <plugins>
             <plugin>
+                <groupId>org.apache.streampipes</groupId>
+                <artifactId>streampipes-maven-plugin</artifactId>
+                <version>${sp.version}</version>
+            </plugin>
+            <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>
                 <version>2.4.1</version>
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/Init.java b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/Init.java
similarity index 52%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/Init.java
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/Init.java
index b7b5848..febb243 100644
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/Init.java
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/Init.java
@@ -21,8 +21,9 @@
 #set( $symbol_escape = '\' )
 package ${package};
 
-import org.apache.streampipes.container.init.DeclarersSingleton;
-import org.apache.streampipes.container.standalone.init.StandaloneModelSubmitter;
+import org.apache.streampipes.container.extensions.ExtensionsModelSubmitter;
+import org.apache.streampipes.container.model.SpServiceDefinition;
+import org.apache.streampipes.container.model.SpServiceDefinitionBuilder;
 import org.apache.streampipes.dataformat.cbor.CborDataFormatFactory;
 import org.apache.streampipes.dataformat.fst.FstDataFormatFactory;
 import org.apache.streampipes.dataformat.json.JsonDataFormatFactory;
@@ -31,26 +32,31 @@ import org.apache.streampipes.messaging.jms.SpJmsProtocolFactory;
 import org.apache.streampipes.messaging.kafka.SpKafkaProtocolFactory;
 import org.apache.streampipes.messaging.mqtt.SpMqttProtocolFactory;
 
-import ${package}.config.Config;
-import ${package}.pe.processor.${packageName}.${classNamePrefix}Controller;
+import ${package}.pe.${packageName}.ExampleDataProcessor;
+import ${package}.pe.${packageName}.ExampleDataSink;
 
-public class Init extends StandaloneModelSubmitter {
+public class Init extends ExtensionsModelSubmitter {
 
-  public static void main(String[] args) {
-    DeclarersSingleton.getInstance()
-            .add(new ${classNamePrefix}Controller());
-
-    DeclarersSingleton.getInstance().registerDataFormats(
-            new JsonDataFormatFactory(),
-            new CborDataFormatFactory(),
-            new SmileDataFormatFactory(),
-            new FstDataFormatFactory());
-
-    DeclarersSingleton.getInstance().registerProtocols(
-            new SpKafkaProtocolFactory(),
-            new SpMqttProtocolFactory(),
-            new SpJmsProtocolFactory());
+  public static void main (String[] args) {
+    new Init().init();
+  }
 
-    new Init().init(Config.INSTANCE);
+  @Override
+  public SpServiceDefinition provideServiceDefinition() {
+    return SpServiceDefinitionBuilder.create("${package}",
+                    "human-readable service name",
+                    "human-readable service description", 8090)
+            .registerPipelineElement(new ExampleDataProcessor())
+            .registerPipelineElement(new ExampleDataSink())
+            .registerMessagingFormats(
+                    new JsonDataFormatFactory(),
+                    new CborDataFormatFactory(),
+                    new SmileDataFormatFactory(),
+                    new FstDataFormatFactory())
+            .registerMessagingProtocols(
+                    new SpKafkaProtocolFactory(),
+                    new SpJmsProtocolFactory(),
+                    new SpMqttProtocolFactory())
+            .build();
   }
 }
diff --git a/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataProcessor.java b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataProcessor.java
new file mode 100644
index 0000000..03544f2
--- /dev/null
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataProcessor.java
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+
+package ${package}.pe.${packageName};
+
+import org.apache.streampipes.commons.exceptions.SpRuntimeException;
+import org.apache.streampipes.model.DataProcessorType;
+import org.apache.streampipes.model.graph.DataProcessorDescription;
+import org.apache.streampipes.model.runtime.Event;
+import org.apache.streampipes.sdk.builder.PrimitivePropertyBuilder;
+import org.apache.streampipes.sdk.builder.ProcessingElementBuilder;
+import org.apache.streampipes.sdk.builder.StreamRequirementsBuilder;
+import org.apache.streampipes.sdk.helpers.EpRequirements;
+import org.apache.streampipes.sdk.helpers.Labels;
+import org.apache.streampipes.sdk.helpers.Locales;
+import org.apache.streampipes.sdk.helpers.OutputStrategies;
+import org.apache.streampipes.sdk.utils.Assets;
+import org.apache.streampipes.sdk.utils.Datatypes;
+import org.apache.streampipes.wrapper.context.EventProcessorRuntimeContext;
+import org.apache.streampipes.wrapper.routing.SpOutputCollector;
+import org.apache.streampipes.wrapper.standalone.ProcessorParams;
+import org.apache.streampipes.wrapper.standalone.StreamPipesDataProcessor;
+
+
+public class ${classNamePrefix}DataProcessor extends StreamPipesDataProcessor {
+
+  private String exampleText;
+
+  private static final String EXAMPLE_KEY = "example-key";
+
+  @Override
+  public DataProcessorDescription declareModel() {
+    return ProcessingElementBuilder.create("${package}.pe.${packageName}.processor")
+            .withAssets(Assets.DOCUMENTATION, Assets.ICON)
+            .withLocales(Locales.EN)
+            .category(DataProcessorType.AGGREGATE)
+            .requiredStream(StreamRequirementsBuilder
+              .create()
+              .requiredProperty(EpRequirements.anyProperty())
+              .build())
+            .requiredTextParameter(Labels.withId(EXAMPLE_KEY))
+            .outputStrategy(OutputStrategies.append(PrimitivePropertyBuilder.create(Datatypes.String, "appendedText").build()))
+            .build();
+  }
+
+  @Override
+  public void onInvocation(ProcessorParams processorParams,
+                            SpOutputCollector out,
+                            EventProcessorRuntimeContext ctx) throws SpRuntimeException  {
+    this.exampleText = processorParams.extractor().singleValueParameter(EXAMPLE_KEY,String.class);
+  }
+
+  @Override
+  public void onEvent(Event event,SpOutputCollector out){
+      event.addField("appendedText", exampleText);
+      out.collect(event);
+  }
+
+  @Override
+  public void onDetach(){
+  }
+
+}
diff --git a/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataSink.java b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataSink.java
new file mode 100644
index 0000000..0386df3
--- /dev/null
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/java/pe/__packageName__/ExampleDataSink.java
@@ -0,0 +1,77 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+
+package ${package}.pe.${packageName};
+
+import org.apache.streampipes.commons.exceptions.SpRuntimeException;
+import org.apache.streampipes.model.DataSinkType;
+import org.apache.streampipes.model.graph.DataSinkDescription;
+import org.apache.streampipes.model.runtime.Event;
+import org.apache.streampipes.sdk.builder.DataSinkBuilder;
+import org.apache.streampipes.sdk.builder.StreamRequirementsBuilder;
+import org.apache.streampipes.sdk.helpers.EpRequirements;
+import org.apache.streampipes.sdk.helpers.Labels;
+import org.apache.streampipes.sdk.helpers.Locales;
+import org.apache.streampipes.sdk.utils.Assets;
+import org.apache.streampipes.sdk.utils.Datatypes;
+import org.apache.streampipes.wrapper.context.EventSinkRuntimeContext;
+import org.apache.streampipes.wrapper.standalone.SinkParams;
+import org.apache.streampipes.wrapper.standalone.StreamPipesDataSink;
+
+
+public class ${classNamePrefix}DataSink extends StreamPipesDataSink {
+
+private String exampleText;
+
+private static final String EXAMPLE_KEY = "example-key";
+
+  @Override
+  public DataSinkDescription declareModel(){
+          return DataSinkBuilder.create("${package}.pe.${packageName}.sink")
+          .withAssets(Assets.DOCUMENTATION,Assets.ICON)
+          .withLocales(Locales.EN)
+          .category(DataSinkType.UNCATEGORIZED)
+          .requiredStream(StreamRequirementsBuilder
+          .create()
+          .requiredProperty(EpRequirements.anyProperty())
+          .build())
+          .requiredTextParameter(Labels.withId(EXAMPLE_KEY))
+          .build();
+  }
+
+  @Override
+  public void onInvocation(SinkParams sinkParams,
+                           EventSinkRuntimeContext ctx) throws SpRuntimeException{
+
+    this.exampleText = sinkParams.extractor().singleValueParameter(EXAMPLE_KEY,String.class);
+  }
+
+  @Override
+  public void onEvent(Event event) {
+    // do something with the event
+  }
+
+  @Override
+  public void onDetach(){
+
+  }
+
+}
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/documentation.md b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/documentation.md
similarity index 100%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/documentation.md
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/documentation.md
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/icon.png b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/icon.png
similarity index 100%
rename from archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/icon.png
rename to archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/icon.png
diff --git a/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/strings.en b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/strings.en
new file mode 100644
index 0000000..e3ee3ce
--- /dev/null
+++ b/archetypes/streampipes-archetype-extensions-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.__packageName__/strings.en
@@ -0,0 +1,5 @@
+${package}.pe.${packageName}.title=${classNamePrefix}
+${package}.pe.${packageName}.description=Description of data processor
+
+example-key.title=Example Text Parameter
+example-key.description=Example Text Parameter Description
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/Config.java b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/Config.java
deleted file mode 100644
index c5f3fcd..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/Config.java
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-#set( $svc_name = $package.getClass().forName("org.apache.velocity.util.StringUtils").sub("$artifactId", "-", " ") )
-package ${package}.config;
-
-import org.apache.streampipes.config.SpConfig;
-import org.apache.streampipes.container.model.PeConfig;
-
-import static ${package}.config.ConfigKeys.*;
-
-public enum Config implements PeConfig {
-  INSTANCE;
-
-  private SpConfig config;
-  private final static String SERVICE_ID= "pe/${package}.processor.jvm";
-
-  Config() {
-    config = SpConfig.getSpConfig(SERVICE_ID);
-    config.register(HOST, "${artifactId}", "Data processor host");
-    config.register(PORT, 8090, "Data processor port");
-    config.register(SERVICE_NAME, "${svc_name}", "Data processor service name");
-  }
-
-  @Override
-  public String getHost() {
-    return config.getString(HOST);
-  }
-
-  @Override
-  public int getPort() {
-    return config.getInteger(PORT);
-  }
-
-  @Override
-  public String getId() {
-    return SERVICE_ID;
-  }
-
-  @Override
-  public String getName() {
-    return config.getString(SERVICE_NAME);
-  }
-}
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/ConfigKeys.java b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/ConfigKeys.java
deleted file mode 100644
index dc36c28..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/config/ConfigKeys.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-
-package ${package}.config;
-
-public class ConfigKeys {
-  final static String HOST = "SP_HOST";
-  final static String PORT = "SP_PORT";
-  final static String SERVICE_NAME = "SP_SERVICE_NAME";
-}
\ No newline at end of file
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__.java b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__.java
deleted file mode 100644
index a48248e..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__.java
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-
-package ${package}.pe.processor.${packageName};
-
-import org.apache.streampipes.model.runtime.Event;
-import org.apache.streampipes.wrapper.context.EventProcessorRuntimeContext;
-import org.apache.streampipes.wrapper.routing.SpOutputCollector;
-import org.apache.streampipes.wrapper.runtime.EventProcessor;
-
-public class ${classNamePrefix} implements EventProcessor<${classNamePrefix}Parameters> {
-
-  private String exampleText;
-
-  @Override
-  public void onInvocation(${classNamePrefix}Parameters parameters,
-        SpOutputCollector out, EventProcessorRuntimeContext ctx) {
-    this.exampleText = parameters.getExampleText();
-  }
-
-  @Override
-  public void onEvent(Event event, SpOutputCollector out) {
-    event.addField("appendedText", exampleText);
-    out.collect(event);
-  }
-
-  @Override
-  public void onDetach() {
-
-  }
-}
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Controller.java b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Controller.java
deleted file mode 100644
index 927d23c..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Controller.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-package ${package}.pe.processor.${packageName};
-
-import org.apache.streampipes.model.DataProcessorType;
-import org.apache.streampipes.model.graph.DataProcessorDescription;
-import org.apache.streampipes.model.graph.DataProcessorInvocation;
-import org.apache.streampipes.sdk.builder.PrimitivePropertyBuilder;
-import org.apache.streampipes.sdk.builder.ProcessingElementBuilder;
-import org.apache.streampipes.sdk.builder.StreamRequirementsBuilder;
-import org.apache.streampipes.sdk.extractor.ProcessingElementParameterExtractor;
-import org.apache.streampipes.sdk.helpers.EpRequirements;
-import org.apache.streampipes.sdk.helpers.Labels;
-import org.apache.streampipes.sdk.helpers.OutputStrategies;
-import org.apache.streampipes.sdk.helpers.*;
-import org.apache.streampipes.sdk.utils.Assets;
-import org.apache.streampipes.sdk.utils.Datatypes;
-import org.apache.streampipes.wrapper.standalone.ConfiguredEventProcessor;
-import org.apache.streampipes.wrapper.standalone.declarer.StandaloneEventProcessingDeclarer;
-
-public class ${classNamePrefix}Controller extends StandaloneEventProcessingDeclarer<${classNamePrefix}Parameters> {
-
-	private static final String EXAMPLE_KEY = "example-key";
-
-	@Override
-	public DataProcessorDescription declareModel() {
-		return ProcessingElementBuilder.create("${package}.pe.processor.${packageName}")
-						.withAssets(Assets.DOCUMENTATION, Assets.ICON)
-						.withLocales(Locales.EN)
-						.category(DataProcessorType.AGGREGATE)
-						.requiredStream(StreamRequirementsBuilder
-							.create()
-							.requiredProperty(EpRequirements.anyProperty())
-							.build())
-						.requiredTextParameter(Labels.withId(EXAMPLE_KEY))
-						.outputStrategy(OutputStrategies.append(
-								PrimitivePropertyBuilder.create(
-										Datatypes.String, "appendedText")
-								.build()))
-						.build();
-	}
-
-	@Override
-	public ConfiguredEventProcessor<${classNamePrefix}Parameters> onInvocation
-				(DataProcessorInvocation graph, ProcessingElementParameterExtractor extractor) {
-
-		String exampleText = extractor.singleValueParameter(EXAMPLE_KEY, String.class);
-		${classNamePrefix}Parameters params = new ${classNamePrefix}Parameters(graph, exampleText);
-
-		return new ConfiguredEventProcessor<>(params, ${classNamePrefix}::new);
-	}
-}
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Parameters.java b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Parameters.java
deleted file mode 100644
index 8943e29..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/java/pe/processor/__packageName__/__classNamePrefix__Parameters.java
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-#set( $symbol_pound = '#' )
-#set( $symbol_dollar = '$' )
-#set( $symbol_escape = '\' )
-
-package ${package}.pe.processor.${packageName};
-
-import org.apache.streampipes.model.graph.DataProcessorInvocation;
-import org.apache.streampipes.wrapper.params.binding.EventProcessorBindingParams;
-
-public class ${classNamePrefix}Parameters extends EventProcessorBindingParams {
-
-  private String exampleText;
-
-  public ${classNamePrefix}Parameters(DataProcessorInvocation graph, String exampleText) {
-    super(graph);
-    this.exampleText = exampleText;
-  }
-
-  public String getExampleText() {
-    return exampleText;
-  }
-}
diff --git a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/strings.en b/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/strings.en
deleted file mode 100644
index d23ce26..0000000
--- a/archetypes/streampipes-archetype-pe-processors-jvm/src/main/resources/archetype-resources/src/main/resources/__package__.pe.processor.__packageName__/strings.en
+++ /dev/null
@@ -1,5 +0,0 @@
-${package}.pe.processor.${packageName}.title=${classNamePrefix}
-${package}.pe.processor.${packageName}.description=Description of data processor
-
-example-key.title=Example Text Parameter
-example-key.description=Example Text Parameter Description
diff --git a/pom.xml b/pom.xml
index 1cb8737..ad0f2c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -846,7 +846,7 @@
     <modules>
         <module>archetypes/streampipes-archetype-pe-sources</module>
         <module>archetypes/streampipes-archetype-pe-sinks-jvm</module>
-        <module>archetypes/streampipes-archetype-pe-processors-jvm</module>
+        <module>archetypes/streampipes-archetype-extensions-jvm</module>
         <module>archetypes/streampipes-archetype-pe-sinks-flink</module>
         <module>archetypes/streampipes-archetype-pe-processors-flink</module>
         <module>streampipes-backend</module>
diff --git a/streampipes-sdk-bundle/pom.xml b/streampipes-sdk-bundle/pom.xml
index a9fc4bb..e430481 100644
--- a/streampipes-sdk-bundle/pom.xml
+++ b/streampipes-sdk-bundle/pom.xml
@@ -36,7 +36,7 @@
         </dependency>
         <dependency>
             <groupId>org.apache.streampipes</groupId>
-            <artifactId>streampipes-container-standalone</artifactId>
+            <artifactId>streampipes-container-extensions</artifactId>
             <version>0.69.0-SNAPSHOT</version>
         </dependency>
         <dependency>