You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2019/03/14 09:56:15 UTC

[openwebbeans-meecrowave-examples] branch master updated (deba8fc -> d68706b)

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

struberg pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git.


    from deba8fc  Merge pull request #4 from elexx/155-kotlin-sample
     new 722d7a4  Merge pull request #1 from apache/master
     new b0e9a17  version updates and prepare for docker examples
     new f9a92cc  version updates
     new f72669d  version updates
     new 442e934  version updates
     new ceff95a  version updates
     new e5c8422  version updates
     new 0bd68b2  version updates
     new d68706b  Merge pull request #5 from Fork-World/master

The 28 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 docker/pom.xml                                     |   2 +-
 mw_bundle_config/pom.xml                           |   2 +-
 pom.xml                                            |  26 ++-
 rest-trivial-kotlin/pom.xml                        |   5 +-
 rest-trivial/pom.xml                               |   2 +-
 rest/pom.xml                                       |   2 +-
 servlet-trivial/pom.xml                            |   2 +-
 servlet-vaadin-v08/pom.xml                         |  12 +-
 servlet-vaadin-v10/pom.xml                         | 216 ++++++++++-----------
 servlet-vaadin-vxx/pom.xml                         |  91 +++++++++
 .../servlet/vaadin/HelloVaadinVLatest.java         |   4 +-
 11 files changed, 231 insertions(+), 133 deletions(-)
 create mode 100644 servlet-vaadin-vxx/pom.xml
 copy servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java => servlet-vaadin-vxx/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinVLatest.java (93%)


[openwebbeans-meecrowave-examples] 07/28: update to latest released Meecrowave-1.2.2

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit c7e879d2dd815bdf4df04789b32282ff835d27b3
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 21:19:51 2018 +0200

    update to latest released Meecrowave-1.2.2
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index a75f354..8249108 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,7 +44,7 @@
     </modules>
 
     <properties>
-        <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
+        <meecrowave.version>1.2.2</meecrowave.version>
 
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.compiler.source>1.8</maven.compiler.source>


[openwebbeans-meecrowave-examples] 22/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit f9a92cc5a28c950ce340508f4dbb1c7d977d3564
Merge: b0e9a17 deba8fc
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Wed Jan 16 15:50:55 2019 +0100

    version updates

 .gitignore                                         |   2 +
 README.adoc                                        |   2 +-
 docker/pom.xml                                     |   2 +-
 mw_bundle_config/pom.xml                           |   2 +-
 pom.xml                                            |  20 ++-
 rest-trivial-kotlin/README.adoc                    |  11 ++
 rest-trivial-kotlin/pom.xml                        | 155 +++++++++++++++++++++
 .../com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt  |  18 +++
 .../superbiz/jaxrs/HelloFromKotlinEndpointTest.kt  |  30 ++++
 rest-trivial/README.adoc                           |   4 +-
 rest-trivial/pom.xml                               |   2 +-
 rest/pom.xml                                       |   2 +-
 servlet-trivial/pom.xml                            |   2 +-
 servlet-vaadin-v08/pom.xml                         |   4 +-
 servlet-vaadin-v10/pom.xml                         |   2 +-
 15 files changed, 243 insertions(+), 15 deletions(-)

diff --cc pom.xml
index d553529,e727200..dcda711
--- a/pom.xml
+++ b/pom.xml
@@@ -46,7 -47,7 +47,7 @@@
      </modules>
  
      <properties>
-         <meecrowave.version>1.2.3</meecrowave.version>
 -        <meecrowave.version>1.2.4</meecrowave.version>
++        <meecrowave.version>1.2.5</meecrowave.version>
  
          <maven.compiler.target>1.8</maven.compiler.target>
          <maven.compiler.source>1.8</maven.compiler.source>
@@@ -66,8 -67,8 +67,6 @@@
  
      </properties>
  
--
--
      <!-- Just to disable any accidential deployment to maven.central -->
      <distributionManagement>
          <repository>
@@@ -79,4 -80,4 +78,17 @@@
              <url>file://${basedir}/target/snapshot-repo/</url>
          </snapshotRepository>
      </distributionManagement>
++
++
++    <build>
++        <plugins>
++            <plugin>
++                <groupId>org.codehaus.mojo</groupId>
++                <artifactId>versions-maven-plugin</artifactId>
++                <version>2.7</version>
++            </plugin>
++        </plugins>
++    </build>
++
++
  </project>
diff --cc rest-trivial-kotlin/pom.xml
index 0000000,f32ab1f..5fbca25
mode 000000,100644..100644
--- a/rest-trivial-kotlin/pom.xml
+++ b/rest-trivial-kotlin/pom.xml
@@@ -1,0 -1,154 +1,155 @@@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xmlns="http://maven.apache.org/POM/4.0.0"
+          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>org.apache.meecrowave</groupId>
+         <artifactId>meecrowave-examples</artifactId>
+         <version>1.2.5-SNAPSHOT</version>
+     </parent>
+ 
+ 
+     <artifactId>samples-rest-trivial-kotlin</artifactId>
+     <name>REST (trivial) - Kotlin</name>
+ 
+     <properties>
 -        <kotlin.version>1.2.71</kotlin.version>
++        <!--<kotlin.version>1.2.71</kotlin.version>-->
++        <kotlin.version>1.3.11</kotlin.version>
+     </properties>
+ 
+     <dependencies>
+         <dependency>
+             <groupId>org.jetbrains.kotlin</groupId>
+             <artifactId>kotlin-stdlib-jdk8</artifactId>
+             <version>${kotlin.version}</version>
+         </dependency>
+ 
+         <dependency>
+             <groupId>org.jetbrains.kotlin</groupId>
+             <artifactId>kotlin-test-junit</artifactId>
+             <version>${kotlin.version}</version>
+             <scope>test</scope>
+         </dependency>
+ 
+ 
+         <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+         <dependency>
+             <groupId>org.apache.meecrowave</groupId>
+             <artifactId>meecrowave-specs-api</artifactId>
+             <version>${meecrowave.version}</version>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.meecrowave</groupId>
+             <artifactId>meecrowave-core</artifactId>
+             <version>${meecrowave.version}</version>
+         </dependency>
+ 
+         <!-- our test dependencies -->
+         <dependency>
+             <groupId>junit</groupId>
+             <artifactId>junit</artifactId>
+             <version>${junit4.version}</version>
+             <scope>test</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.meecrowave</groupId>
+             <artifactId>meecrowave-junit</artifactId>
+             <version>${meecrowave.version}</version>
+             <scope>test</scope>
+         </dependency>
+     </dependencies>
+ 
+     <build>
+         <plugins>
+             <plugin>
+                 <!--
+                     For starting meecrowave via Maven. Just run
+                     $> mvn clean install meecrowave:run
+                 -->
+                 <groupId>org.apache.meecrowave</groupId>
+                 <artifactId>meecrowave-maven-plugin</artifactId>
+                 <version>${meecrowave.version}</version>
+             </plugin>
+ 
+             <plugin>
+                 <artifactId>kotlin-maven-plugin</artifactId>
+                 <groupId>org.jetbrains.kotlin</groupId>
+                 <version>${kotlin.version}</version>
+                 <configuration>
+                     <compilerPlugins>
+                         <plugin>all-open</plugin>
+                     </compilerPlugins>
+                     <pluginOptions>
+                         <option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option>
+                     </pluginOptions>
+                 </configuration>
+                 <executions>
+                     <execution>
+                         <id>compile</id>
+                         <goals>
+                             <goal>compile</goal>
+                         </goals>
+                         <configuration>
+                             <sourceDirs>
+                                 <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
+                                 <sourceDir>${project.basedir}/src/main/java</sourceDir>
+                             </sourceDirs>
+                         </configuration>
+                     </execution>
+                     <execution>
+                         <id>test-compile</id>
+                         <goals>
+                             <goal>test-compile</goal>
+                         </goals>
+                         <configuration>
+                             <sourceDirs>
+                                 <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
+                                 <sourceDir>${project.basedir}/src/test/java</sourceDir>
+                             </sourceDirs>
+                         </configuration>
+                     </execution>
+                 </executions>
+                 <dependencies>
+                     <dependency>
+                         <groupId>org.jetbrains.kotlin</groupId>
+                         <artifactId>kotlin-maven-allopen</artifactId>
+                         <version>${kotlin.version}</version>
+                     </dependency>
+                 </dependencies>
+             </plugin>
+             <plugin>
+                 <groupId>org.apache.maven.plugins</groupId>
+                 <artifactId>maven-compiler-plugin</artifactId>
+                 <executions>
+                     <!-- Replacing default-compile as it is treated specially by maven -->
+                     <execution>
+                         <id>default-compile</id>
+                         <phase>none</phase>
+                     </execution>
+                     <!-- Replacing default-testCompile as it is treated specially by maven -->
+                     <execution>
+                         <id>default-testCompile</id>
+                         <phase>none</phase>
+                     </execution>
+                     <execution>
+                         <id>java-compile</id>
+                         <phase>compile</phase>
+                         <goals>
+                             <goal>compile</goal>
+                         </goals>
+                     </execution>
+                     <execution>
+                         <id>java-test-compile</id>
+                         <phase>test-compile</phase>
+                         <goals>
+                             <goal>testCompile</goal>
+                         </goals>
+                     </execution>
+                 </executions>
+             </plugin>
+         </plugins>
+     </build>
+ 
+ </project>
diff --cc servlet-vaadin-v08/pom.xml
index a87cff9,564ccf1..ff22d19
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@@ -31,7 -31,7 +31,7 @@@
      <name>Servlet (Vaadin - V08)</name>
  
    <properties>
--    <vaadin.version>8.4.5</vaadin.version>
++    <vaadin.version>8.6.3</vaadin.version>
    </properties>
  
    <packaging>jar</packaging>


[openwebbeans-meecrowave-examples] 01/28: move Meecrowave examples to separate repo

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit c9ab9f326cdd16c2afa3bd949471dda2769acec4
Author: Mark Struberg <st...@apache.org>
AuthorDate: Fri Jun 29 09:13:00 2018 +0200

    move Meecrowave examples to separate repo
---
 .gitignore                                         |  9 +++
 README.adoc                                        | 12 +++
 pom.xml                                            | 86 ++++++++++++++++++++++
 rest-trivial/pom.xml                               | 15 ++++
 .../java/com/superbiz/jaxrs/HelloEndpoint.java     | 36 +++++++++
 .../com/superbiz/jaxrs/HelloEndpointTest.java      | 51 +++++++++++++
 rest/pom.xml                                       | 15 ++++
 .../java/com/superbiz/configuration/Defaults.java  | 31 ++++++++
 .../superbiz/configuration/DefaultsProducer.java   | 38 ++++++++++
 .../java/com/superbiz/jaxrs/HelloApplication.java  | 28 +++++++
 .../java/com/superbiz/jaxrs/HelloEndpoint.java     | 65 ++++++++++++++++
 .../java/com/superbiz/jaxrs/HelloEndpointTest.java | 52 +++++++++++++
 12 files changed, 438 insertions(+)

diff --git a/.gitignore b/.gitignore
new file mode 100755
index 0000000..b59638f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,9 @@
+target
+.classpath
+.project
+.settings
+.idea
+*.ipr
+*.iml
+*.log
+*~
diff --git a/README.adoc b/README.adoc
new file mode 100644
index 0000000..597fb3d
--- /dev/null
+++ b/README.adoc
@@ -0,0 +1,12 @@
+= Meecrowave Sample
+
+This project shows how to use meecrowave for simple applications.
+
+Here what it provides:
+
+0. A pom.xml with the dependencies for this sample and meecrowave-maven-plugin setup so you can launch `mvn package meecrowave-run`.
+1. A sample JAX-RS application: in src/main/java/com/superbiz/sample/jaxrs
+2. A test using JAX-RS client API and the meecrowave mono rule (useful when you run multiple tests) in src/test/java/com/superbiz/sample/jaxrs
+3. in src/main/java/com/superbiz/configuration/Defaults some enrichment of the meecrowave Cli options for the application.
+
+To use it launch meecrowave main (org.apache.meecrowave.runner.Cli) with option `--app-default-name foo`.
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..152d160
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
+         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>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>18</version>
+    </parent>
+
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Meecrowave Examples</name>
+    <description>A project showing some of the Apache Meecrowave features.</description>
+
+    <modules>
+        <module>rest-trivial</module>
+        <module>rest</module>
+    </modules>
+
+    <properties>
+        <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.12</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <distributionManagement>
+        <repository>
+            <id>localhost</id>
+            <url>file://${basedir}/target/repo/</url>
+        </repository>
+        <snapshotRepository>
+            <id>localhost</id>
+            <url>file://${basedir}/target/snapshot-repo/</url>
+        </snapshotRepository>
+    </distributionManagement>
+</project>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
new file mode 100644
index 0000000..addad78
--- /dev/null
+++ b/rest-trivial/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>samples</artifactId>
+        <groupId>org.apache.meecrowave</groupId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>samples-rest-trivial</artifactId>
+    <name>Meecrowave Samples - REST (trivial)</name>
+
+</project>
\ No newline at end of file
diff --git a/rest-trivial/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java b/rest-trivial/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java
new file mode 100644
index 0000000..09fbcdd
--- /dev/null
+++ b/rest-trivial/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java
@@ -0,0 +1,36 @@
+/*
+ * 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.
+ */
+package com.superbiz.jaxrs;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.core.MediaType;
+
+@Path("hello")
+@ApplicationScoped
+public class HelloEndpoint {
+
+    @GET
+    @Produces(MediaType.APPLICATION_JSON)
+    public String sayHi() {
+        return "Hello World";
+    }
+}
diff --git a/rest-trivial/src/test/java/junit/com/superbiz/jaxrs/HelloEndpointTest.java b/rest-trivial/src/test/java/junit/com/superbiz/jaxrs/HelloEndpointTest.java
new file mode 100644
index 0000000..0b3f2e1
--- /dev/null
+++ b/rest-trivial/src/test/java/junit/com/superbiz/jaxrs/HelloEndpointTest.java
@@ -0,0 +1,51 @@
+/*
+ * 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.
+ */
+package junit.com.superbiz.jaxrs;
+
+import org.apache.meecrowave.Meecrowave;
+import org.apache.meecrowave.junit.MonoMeecrowave;
+import org.apache.meecrowave.testing.ConfigurationInject;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+
+import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;
+import static org.junit.Assert.assertEquals;
+
+@RunWith(MonoMeecrowave.Runner.class)
+public class HelloEndpointTest {
+
+    @ConfigurationInject
+    private Meecrowave.Builder configuration;
+
+    @Test
+    public void hello() {
+        final Client client = ClientBuilder.newClient();
+        try {
+            assertEquals("Hello World", client.target("http://localhost:" + configuration.getHttpPort())
+                    .path("/hello")
+                    .request(APPLICATION_JSON_TYPE)
+                    .get(String.class));
+        } finally {
+            client.close();
+        }
+    }
+}
diff --git a/rest/pom.xml b/rest/pom.xml
new file mode 100644
index 0000000..0d27b79
--- /dev/null
+++ b/rest/pom.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>samples</artifactId>
+        <groupId>org.apache.meecrowave</groupId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>samples-rest</artifactId>
+    <name>Meecrowave Samples - REST</name>
+
+</project>
\ No newline at end of file
diff --git a/rest/src/main/java/com/superbiz/configuration/Defaults.java b/rest/src/main/java/com/superbiz/configuration/Defaults.java
new file mode 100644
index 0000000..2053c19
--- /dev/null
+++ b/rest/src/main/java/com/superbiz/configuration/Defaults.java
@@ -0,0 +1,31 @@
+/*
+ * 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.
+ */
+package com.superbiz.configuration;
+
+import org.apache.meecrowave.runner.Cli;
+import org.apache.meecrowave.runner.cli.CliOption;
+
+public class Defaults implements Cli.Options {
+    @CliOption(name = "app-default-name", description = "The name used to say hello if not set")
+    private String name = "default value";
+
+    public String getName() {
+        return name;
+    }
+}
diff --git a/rest/src/main/java/com/superbiz/configuration/DefaultsProducer.java b/rest/src/main/java/com/superbiz/configuration/DefaultsProducer.java
new file mode 100644
index 0000000..6e40cf0
--- /dev/null
+++ b/rest/src/main/java/com/superbiz/configuration/DefaultsProducer.java
@@ -0,0 +1,38 @@
+/*
+ * 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.
+ */
+package com.superbiz.configuration;
+
+import org.apache.meecrowave.Meecrowave;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.context.Dependent;
+import javax.enterprise.inject.Produces;
+import javax.inject.Inject;
+
+@Dependent
+public class DefaultsProducer {
+    @Inject
+    private Meecrowave.Builder builder;
+
+    @Produces
+    @ApplicationScoped
+    public Defaults defaults() {
+        return builder.getExtension(Defaults.class);
+    }
+}
diff --git a/rest/src/main/java/com/superbiz/jaxrs/HelloApplication.java b/rest/src/main/java/com/superbiz/jaxrs/HelloApplication.java
new file mode 100644
index 0000000..813b6b9
--- /dev/null
+++ b/rest/src/main/java/com/superbiz/jaxrs/HelloApplication.java
@@ -0,0 +1,28 @@
+/*
+ * 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.
+ */
+package com.superbiz.jaxrs;
+
+import javax.enterprise.context.Dependent;
+import javax.ws.rs.ApplicationPath;
+import javax.ws.rs.core.Application;
+
+@Dependent
+@ApplicationPath("api")
+public class HelloApplication extends Application {
+}
diff --git a/rest/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java b/rest/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java
new file mode 100644
index 0000000..3c3fe57
--- /dev/null
+++ b/rest/src/main/java/com/superbiz/jaxrs/HelloEndpoint.java
@@ -0,0 +1,65 @@
+/*
+ * 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.
+ */
+package com.superbiz.jaxrs;
+
+import com.superbiz.configuration.Defaults;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.inject.Inject;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+import static java.util.Optional.ofNullable;
+
+@Path("hello")
+@ApplicationScoped
+public class HelloEndpoint {
+    @Inject
+    private Defaults defaults;
+
+    @GET
+    @Produces(MediaType.APPLICATION_JSON)
+    public Hello sayHi(@QueryParam("name") final String name) {
+        return new Hello(ofNullable(name)
+                .orElse(defaults.getName()));
+    }
+
+    public static class Hello {
+        private String name;
+
+        public Hello() {
+            // no-op
+        }
+
+        private Hello(final String name) {
+            this.name = name;
+        }
+
+        public String getName() {
+            return name;
+        }
+
+        public void setName(final String name) {
+            this.name = name;
+        }
+    }
+}
diff --git a/rest/src/test/java/com/superbiz/jaxrs/HelloEndpointTest.java b/rest/src/test/java/com/superbiz/jaxrs/HelloEndpointTest.java
new file mode 100644
index 0000000..b8c24ab
--- /dev/null
+++ b/rest/src/test/java/com/superbiz/jaxrs/HelloEndpointTest.java
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+package com.superbiz.jaxrs;
+
+import org.apache.meecrowave.Meecrowave;
+import org.apache.meecrowave.junit.MonoMeecrowave;
+import org.apache.meecrowave.testing.ConfigurationInject;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+
+import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;
+import static org.junit.Assert.assertEquals;
+
+@RunWith(MonoMeecrowave.Runner.class)
+public class HelloEndpointTest {
+    @ConfigurationInject
+    private Meecrowave.Builder configuration;
+
+    @Test
+    public void hello() {
+        final Client client = ClientBuilder.newClient();
+        try {
+            assertEquals("me", client.target("http://localhost:" + configuration.getHttpPort())
+                    .path("api/hello")
+                    .queryParam("name", "me")
+                    .request(APPLICATION_JSON_TYPE)
+                    .get(HelloEndpoint.Hello.class)
+                    .getName());
+        } finally {
+            client.close();
+        }
+    }
+}


[openwebbeans-meecrowave-examples] 20/28: add Kotlin based REST sample

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit a50525ced10617a7c2a377adfb1898c3c6a384c9
Author: Alexander Falb <el...@apache.org>
AuthorDate: Fri Oct 12 07:41:54 2018 +0200

    add Kotlin based REST sample
---
 pom.xml                                            |   1 +
 rest-trivial-kotlin/README.adoc                    |  11 ++
 rest-trivial-kotlin/pom.xml                        | 154 +++++++++++++++++++++
 .../com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt  |  18 +++
 .../superbiz/jaxrs/HelloFromKotlinEndpointTest.kt  |  30 ++++
 5 files changed, 214 insertions(+)

diff --git a/pom.xml b/pom.xml
index b4ad96b..e727200 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,6 +37,7 @@
 
     <modules>
         <module>rest-trivial</module>
+        <module>rest-trivial-kotlin</module>
         <module>rest</module>
         <module>servlet-trivial</module>
         <module>mw_bundle_config</module>
diff --git a/rest-trivial-kotlin/README.adoc b/rest-trivial-kotlin/README.adoc
new file mode 100644
index 0000000..7cd08ea
--- /dev/null
+++ b/rest-trivial-kotlin/README.adoc
@@ -0,0 +1,11 @@
+= Apache Meecrowave
+
+== Trivial REST Example (rewritten in Kotlin)
+
+This example shows probably the smallest JavaEE REST Service.
+It is the REST version of the famous 'Hello World' program.
+It contains just a link:src/main/kotlin/com/superbiz/jaxrs/HelloEndpoint.kt[Hello Resource].
+The important part of this class are the `@Path("helloKotlin")` and the `@GET' annotated method.
+
+Note that the Resource is a CDI bean annotated with `@ApplicationScoped`.
+Thus only one instance exists.
diff --git a/rest-trivial-kotlin/pom.xml b/rest-trivial-kotlin/pom.xml
new file mode 100644
index 0000000..f32ab1f
--- /dev/null
+++ b/rest-trivial-kotlin/pom.xml
@@ -0,0 +1,154 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         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>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
+        <version>1.2.5-SNAPSHOT</version>
+    </parent>
+
+
+    <artifactId>samples-rest-trivial-kotlin</artifactId>
+    <name>REST (trivial) - Kotlin</name>
+
+    <properties>
+        <kotlin.version>1.2.71</kotlin.version>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.jetbrains.kotlin</groupId>
+            <artifactId>kotlin-stdlib-jdk8</artifactId>
+            <version>${kotlin.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jetbrains.kotlin</groupId>
+            <artifactId>kotlin-test-junit</artifactId>
+            <version>${kotlin.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+            <plugin>
+                <artifactId>kotlin-maven-plugin</artifactId>
+                <groupId>org.jetbrains.kotlin</groupId>
+                <version>${kotlin.version}</version>
+                <configuration>
+                    <compilerPlugins>
+                        <plugin>all-open</plugin>
+                    </compilerPlugins>
+                    <pluginOptions>
+                        <option>all-open:annotation=javax.enterprise.context.ApplicationScoped</option>
+                    </pluginOptions>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>compile</id>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                        <configuration>
+                            <sourceDirs>
+                                <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
+                                <sourceDir>${project.basedir}/src/main/java</sourceDir>
+                            </sourceDirs>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>test-compile</id>
+                        <goals>
+                            <goal>test-compile</goal>
+                        </goals>
+                        <configuration>
+                            <sourceDirs>
+                                <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
+                                <sourceDir>${project.basedir}/src/test/java</sourceDir>
+                            </sourceDirs>
+                        </configuration>
+                    </execution>
+                </executions>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.jetbrains.kotlin</groupId>
+                        <artifactId>kotlin-maven-allopen</artifactId>
+                        <version>${kotlin.version}</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <!-- Replacing default-compile as it is treated specially by maven -->
+                    <execution>
+                        <id>default-compile</id>
+                        <phase>none</phase>
+                    </execution>
+                    <!-- Replacing default-testCompile as it is treated specially by maven -->
+                    <execution>
+                        <id>default-testCompile</id>
+                        <phase>none</phase>
+                    </execution>
+                    <execution>
+                        <id>java-compile</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>compile</goal>
+                        </goals>
+                    </execution>
+                    <execution>
+                        <id>java-test-compile</id>
+                        <phase>test-compile</phase>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/rest-trivial-kotlin/src/main/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt b/rest-trivial-kotlin/src/main/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt
new file mode 100644
index 0000000..06dd85d
--- /dev/null
+++ b/rest-trivial-kotlin/src/main/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt
@@ -0,0 +1,18 @@
+package com.superbiz.jaxrs
+
+import javax.enterprise.context.ApplicationScoped
+import javax.ws.rs.GET
+import javax.ws.rs.Path
+import javax.ws.rs.Produces
+import javax.ws.rs.core.MediaType
+
+@Path("helloKotlin")
+@ApplicationScoped
+class HelloFromKotlinEndpoint {
+
+    @GET
+    @Produces(MediaType.APPLICATION_JSON)
+    fun sayHi(): String {
+        return "Hello World from Kotlin"
+    }
+}
diff --git a/rest-trivial-kotlin/src/test/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpointTest.kt b/rest-trivial-kotlin/src/test/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpointTest.kt
new file mode 100644
index 0000000..43eb970
--- /dev/null
+++ b/rest-trivial-kotlin/src/test/kotlin/com/superbiz/jaxrs/HelloFromKotlinEndpointTest.kt
@@ -0,0 +1,30 @@
+package com.superbiz.jaxrs
+
+import org.apache.meecrowave.Meecrowave
+import org.apache.meecrowave.junit.MonoMeecrowave
+import org.apache.meecrowave.testing.ConfigurationInject
+import org.junit.runner.RunWith
+import javax.ws.rs.client.ClientBuilder
+import javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE
+import kotlin.test.Test
+import kotlin.test.assertEquals
+
+@RunWith(MonoMeecrowave.Runner::class)
+class HelloFromKotlinEndpointTest {
+
+    @ConfigurationInject
+    private lateinit var configuration: Meecrowave.Builder
+
+    @Test
+    fun `client answeres on path "hello"`() {
+        val client = ClientBuilder.newClient()
+        try {
+            assertEquals("Hello World from Kotlin", client.target("http://localhost:" + configuration.httpPort)
+                    .path("/helloKotlin")
+                    .request(APPLICATION_JSON_TYPE)
+                    .get(String::class.java))
+        } finally {
+            client.close()
+        }
+    }
+}


[openwebbeans-meecrowave-examples] 18/28: update version and use latest Meecrowave release

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 6fc9f3d79f1fd6a935cc7659f29dc653ce5bf8ff
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Sep 25 08:26:59 2018 +0200

    update version and use latest Meecrowave release
---
 docker/pom.xml             | 2 +-
 mw_bundle_config/pom.xml   | 2 +-
 pom.xml                    | 4 ++--
 rest-trivial/pom.xml       | 2 +-
 rest/pom.xml               | 2 +-
 servlet-trivial/pom.xml    | 2 +-
 servlet-vaadin-v08/pom.xml | 2 +-
 servlet-vaadin-v10/pom.xml | 2 +-
 8 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/docker/pom.xml b/docker/pom.xml
index bfe20c8..5fe54e6 100644
--- a/docker/pom.xml
+++ b/docker/pom.xml
@@ -5,7 +5,7 @@
   <parent>
     <artifactId>meecrowave-examples</artifactId>
     <groupId>org.apache.meecrowave</groupId>
-    <version>1.2.3-SNAPSHOT</version>
+    <version>1.2.5-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/mw_bundle_config/pom.xml b/mw_bundle_config/pom.xml
index 4c0d06d..2ece0c1 100644
--- a/mw_bundle_config/pom.xml
+++ b/mw_bundle_config/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
 
     <artifactId>samples-bundle-config</artifactId>
diff --git a/pom.xml b/pom.xml
index d553529..b4ad96b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 
     <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.3-SNAPSHOT</version>
+    <version>1.2.5-SNAPSHOT</version>
 
     <packaging>pom</packaging>
     <name>Apache Meecrowave Examples</name>
@@ -46,7 +46,7 @@
     </modules>
 
     <properties>
-        <meecrowave.version>1.2.3</meecrowave.version>
+        <meecrowave.version>1.2.4</meecrowave.version>
 
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.compiler.source>1.8</maven.compiler.source>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index df9eccc..e3b15c1 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
 
 
diff --git a/rest/pom.xml b/rest/pom.xml
index 4ef7333..b4e454c 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index d4dc32b..2807a9f 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index a87cff9..564ccf1 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index ce43eae..f899b14 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.3-SNAPSHOT</version>
+        <version>1.2.5-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 


[openwebbeans-meecrowave-examples] 10/28: Better documentation for our examples

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 3d20788433ab17503cb28f48dc9b0509c57a5102
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 21:38:32 2018 +0200

    Better documentation for our examples
    
    Just playing around how this renders on github ;)
---
 rest-trivial/rest-trivial.adoc | 11 +++++++++++
 rest/pom.xml                   |  1 +
 2 files changed, 12 insertions(+)

diff --git a/rest-trivial/rest-trivial.adoc b/rest-trivial/rest-trivial.adoc
new file mode 100644
index 0000000..b895781
--- /dev/null
+++ b/rest-trivial/rest-trivial.adoc
@@ -0,0 +1,11 @@
+= Apache Meecrowave
+
+== Trivial REST Example
+
+This example shows probably the smallest JavaEE REST Service.
+It is the REST version of the famous 'Hello World' program.
+It contains just a <<src/main/java/com/superbiz/jaxrs/HelloEndpoint.java,Hello Resource>>.
+The important parst of this class are the @Path(`"hello")` and the `@GET' annotated method.
+
+Note that the Resource is a CDI bean annotated with `@ApplicationScoped`.
+Thus only one instance exists.
\ No newline at end of file
diff --git a/rest/pom.xml b/rest/pom.xml
index 6bf61b2..b729df3 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -12,4 +12,5 @@
     <artifactId>samples-rest</artifactId>
     <name>REST</name>
 
+
 </project>
\ No newline at end of file


[openwebbeans-meecrowave-examples] 08/28: add information about debugging Meecrowave

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 5155ffb621a41d8d8584e32ae4ec64d3cb350402
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 21:20:16 2018 +0200

    add information about debugging Meecrowave
    
    plus the maven plugin
---
 README.adoc | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/README.adoc b/README.adoc
index c791571..8895239 100644
--- a/README.adoc
+++ b/README.adoc
@@ -7,10 +7,10 @@ This project shows how to use https://openwebbeans.apache.org/meecrowave/[Apache
 Apache Meecrowave is a 9 MByte small embeddable Java Application Server based on the following Apache JavaEE 8 projects:
 
 * Apache Tomcat-9.x
-* Apache log4j2
 * Apache OpenWebBeans-2.x
 * Apache Johnzon-1.1.x
-* Apache CXF-3.x
+* Apache CXF-3.2.x
+* Apache log4j2 (optional, JUL supported as well)
 
 
 == About our Examples
@@ -24,6 +24,17 @@ Here's what it provides:
 
 To use it launch meecrowave main (org.apache.meecrowave.runner.Cli) with option `--app-default-name foo`.
 
+You can also use the `meecrowave-maven-plugin`and type
+
+----
+$> mvn clean install meecrowave:run
+----
+
+For debugging your application attach with your IDE to port 8000 and start Meecrowave in debug mode with
+----
+$> mvnDebug clean install meecrowave:run
+----
+
 == Further Resources
 
 === Bug Reporting


[openwebbeans-meecrowave-examples] 05/28: Merge pull request #1 from Fork-World/master

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 1e66a741833eb00055737ac796bd5d4fc47a41c7
Merge: c9ab9f3 d8b8f30
Author: Mark Struberg <st...@yahoo.de>
AuthorDate: Fri Jun 29 13:09:16 2018 +0200

    Merge pull request #1 from Fork-World/master
    
    added servlet and vaadin examples, extended pom.xml files..
    
    thanks to Sven Ruppert for the contribution!

 pom.xml                                            |  80 +++++++++++++-
 rest-trivial/pom.xml                               |   4 +-
 rest/pom.xml                                       |   4 +-
 servlet-trivial/pom.xml                            |  34 ++++++
 .../com/superbiz/servlet/HelloWorldServlet.java    |  49 +++++++++
 .../com/superbiz/servlet/UpperCaseService.java     |  29 +++++
 .../src/main/resources/WEB-INF/beans.xml           |  27 +++++
 .../superbiz/servlet/HelloWorldServletTest.java    |  53 ++++++++++
 .../com/superbiz/servlet/UpperCaseServiceTest.java |  32 ++++++
 servlet-vaadin-v08/pom.xml                         |  64 +++++++++++
 .../com/superbiz/servlet/vaadin/HelloVaadin.java   |  61 +++++++++++
 .../src/main/resources/WEB-INF/beans.xml           |  27 +++++
 servlet-vaadin-v10/pom.xml                         | 117 +++++++++++++++++++++
 .../superbiz/servlet/vaadin/HelloVaadinV10.java    |  41 ++++++++
 14 files changed, 615 insertions(+), 7 deletions(-)


[openwebbeans-meecrowave-examples] 03/28: reformated with 4 spaces

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 9f824c170f90f84aade0f6caf4ce5670f4fa9015
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Fri Jun 29 12:51:16 2018 +0200

    reformated with 4 spaces
---
 servlet-trivial/pom.xml                            |  4 +-
 .../com/superbiz/servlet/HelloWorldServlet.java    | 19 ++++---
 .../com/superbiz/servlet/UpperCaseService.java     |  8 +--
 .../src/main/resources/WEB-INF/beans.xml           |  2 +-
 .../superbiz/servlet/HelloWorldServletTest.java    | 32 ++++++------
 .../com/superbiz/servlet/UpperCaseServiceTest.java |  8 +--
 servlet-vaadin-v08/pom.xml                         |  4 +-
 .../com/superbiz/servlet/vaadin/HelloVaadin.java   | 58 +++++++++++-----------
 .../src/main/resources/WEB-INF/beans.xml           |  2 +-
 servlet-vaadin-v10/pom.xml                         |  5 +-
 .../superbiz/servlet/vaadin/HelloVaadinV10.java    | 18 +++----
 11 files changed, 79 insertions(+), 81 deletions(-)

diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index d66302a..c1cce44 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -17,8 +17,8 @@
     specific language governing permissions and limitations
     under the License.
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <parent>
     <groupId>org.apache.meecrowave</groupId>
diff --git a/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java b/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java
index aeb902b..4598bca 100644
--- a/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java
+++ b/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java
@@ -28,23 +28,22 @@ import java.io.IOException;
 
 /**
  * request with curl would look like
- *
+ * <p>
  * http://localhost:8080/?value=HalloNase
- *
  */
 @WebServlet("/*")
 public class HelloWorldServlet extends HttpServlet {
 
 
-  @Inject private UpperCaseService service;
+    @Inject private UpperCaseService service;
 
-  public void doGet(HttpServletRequest request,
-                    HttpServletResponse response)
-      throws IOException {
-    response.setContentType("text/plain; charset=utf-8");
+    public void doGet(HttpServletRequest request,
+                      HttpServletResponse response)
+        throws IOException {
+        response.setContentType("text/plain; charset=utf-8");
 
-    String value = request.getParameter("value");
+        String value = request.getParameter("value");
 
-    response.getWriter().println(service.upperCase(value));
-  }
+        response.getWriter().println(service.upperCase(value));
+    }
 }
diff --git a/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java b/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java
index dae7e20..e4e00e5 100644
--- a/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java
+++ b/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java
@@ -21,9 +21,9 @@ package com.superbiz.servlet;
 import javax.enterprise.context.Dependent;
 
 @Dependent
-public class UpperCaseService{
+public class UpperCaseService {
 
-  public String upperCase(String txt) {
-    return txt.toUpperCase();
-  }
+    public String upperCase(String txt) {
+        return txt.toUpperCase();
+    }
 }
diff --git a/servlet-trivial/src/main/resources/WEB-INF/beans.xml b/servlet-trivial/src/main/resources/WEB-INF/beans.xml
index 42a24b5..bc3bf81 100644
--- a/servlet-trivial/src/main/resources/WEB-INF/beans.xml
+++ b/servlet-trivial/src/main/resources/WEB-INF/beans.xml
@@ -18,8 +18,8 @@
     under the License.
 -->
 <beans
-    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                       http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
     bean-discovery-mode="all">
diff --git a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java
index 2bfce55..b5e61e5 100644
--- a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java
+++ b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java
@@ -32,22 +32,22 @@ import static org.junit.Assert.assertEquals;
 
 public class HelloWorldServletTest {
 
-  @Rule // started once for the class, @Rule would be per method
-  public final MeecrowaveRule rule = new MeecrowaveRule();
+    @Rule // started once for the class, @Rule would be per method
+    public final MeecrowaveRule rule = new MeecrowaveRule();
 
-  @Test
-  public void test001() {
-    final Client client = ClientBuilder.newClient();
-    try {
-      assertEquals("HALLONASE", client.target("http://127.0.0.1:" + rule.getConfiguration().getHttpPort())
-                                      .queryParam("value", "HalloNase")
-                                      .request(APPLICATION_JSON_TYPE)
-                                      .get(String.class)
-                                      .trim());
-    } catch (Exception e) {
-      Assert.fail(e.getMessage());
-    } finally {
-      client.close();
+    @Test
+    public void test001() {
+        final Client client = ClientBuilder.newClient();
+        try {
+            assertEquals("HALLONASE", client.target("http://127.0.0.1:" + rule.getConfiguration().getHttpPort())
+                                            .queryParam("value", "HalloNase")
+                                            .request(APPLICATION_JSON_TYPE)
+                                            .get(String.class)
+                                            .trim());
+        } catch (Exception e) {
+            Assert.fail(e.getMessage());
+        } finally {
+            client.close();
+        }
     }
-  }
 }
diff --git a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java
index aa56d7c..1dd1677 100644
--- a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java
+++ b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java
@@ -25,8 +25,8 @@ import org.junit.Test;
 
 public class UpperCaseServiceTest {
 
-  @Test
-  public void test001() {
-    Assert.assertEquals("HALLO", new UpperCaseService().upperCase("hallo"));
-  }
+    @Test
+    public void test001() {
+        Assert.assertEquals("HALLO", new UpperCaseService().upperCase("hallo"));
+    }
 }
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 1aefb84..49636ac 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -17,8 +17,8 @@
     specific language governing permissions and limitations
     under the License.
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <parent>
     <groupId>org.apache.meecrowave</groupId>
diff --git a/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java b/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java
index d8f88f0..e364576 100644
--- a/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java
+++ b/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java
@@ -28,34 +28,34 @@ import javax.servlet.annotation.WebServlet;
 
 public class HelloVaadin {
 
-  public static class MyUI extends UI {
-
-    /**
-     * Start editing here to create your
-     * POC based on a Vaadin App.
-     * To start the app, -> start the main Method.
-     * <p>
-     * You will see in the log´s the randomly used port.
-     *
-     * @param request that is created by the first request to init the app
-     */
-    @Override
-    protected void init(VaadinRequest request) {
-
-      //create the components you want to use
-      // and set the main component with setContent(..)
-      final Layout layout = new VerticalLayout();
-      layout
-          .addComponent(new Button("click me",
-                                   event -> layout.addComponents(new Label("clicked again"))
-          ));
-
-      //set the main Component
-      setContent(layout);
+    public static class MyUI extends UI {
+
+        /**
+         * Start editing here to create your
+         * POC based on a Vaadin App.
+         * To start the app, -> start the main Method.
+         * <p>
+         * You will see in the log´s the randomly used port.
+         *
+         * @param request that is created by the first request to init the app
+         */
+        @Override
+        protected void init(VaadinRequest request) {
+
+            //create the components you want to use
+            // and set the main component with setContent(..)
+            final Layout layout = new VerticalLayout();
+            layout
+                .addComponent(new Button("click me",
+                                         event -> layout.addComponents(new Label("clicked again"))
+                ));
+
+            //set the main Component
+            setContent(layout);
+        }
+
+        @WebServlet("/*")
+        @VaadinServletConfiguration(productionMode = false, ui = MyUI.class)
+        public static class MyProjectServlet extends VaadinServlet { }
     }
-
-    @WebServlet("/*")
-    @VaadinServletConfiguration(productionMode = false, ui = MyUI.class)
-    public static class MyProjectServlet extends VaadinServlet { }
-  }
 }
diff --git a/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml b/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml
index 42a24b5..bc3bf81 100644
--- a/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml
+++ b/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml
@@ -18,8 +18,8 @@
     under the License.
 -->
 <beans
-    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
     xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
                       http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
     bean-discovery-mode="all">
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 8fec11b..84d69a3 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -17,8 +17,8 @@
     specific language governing permissions and limitations
     under the License.
 -->
-<project xmlns="http://maven.apache.org/POM/4.0.0"
-         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <parent>
     <groupId>org.apache.meecrowave</groupId>
@@ -80,7 +80,6 @@
   </dependencies>
 
 
-
   <build>
     <plugins>
       <plugin>
diff --git a/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java b/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java
index 31ea511..1c38be8 100644
--- a/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java
+++ b/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java
@@ -28,14 +28,14 @@ import com.vaadin.flow.router.Route;
 @Route("")
 public class HelloVaadinV10 extends Composite<Div> {
 
-  public HelloVaadinV10() {
-    final VerticalLayout layout = new VerticalLayout();
-    layout
-        .add(new Button("click me",
-                        event -> layout.add(new Label("clicked again"))
-        ));
-    //set the main Component
-    getContent().add(layout);
+    public HelloVaadinV10() {
+        final VerticalLayout layout = new VerticalLayout();
+        layout
+            .add(new Button("click me",
+                            event -> layout.add(new Label("clicked again"))
+            ));
+        //set the main Component
+        getContent().add(layout);
 
-  }
+    }
 }


[openwebbeans-meecrowave-examples] 12/28: clean up poms and move definitions to the respective projects

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 37d370ba5c4906e8dd0f713e82799c993fb3dc7c
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 22:30:58 2018 +0200

    clean up poms and move definitions to the respective projects
    
    This has the benefit that a user immediately sees what is needed
    for a certain type of project.
---
 pom.xml                    | 83 +---------------------------------------------
 rest-trivial/pom.xml       | 46 ++++++++++++++++++++++++-
 rest/pom.xml               | 43 ++++++++++++++++++++++++
 servlet-trivial/pom.xml    | 44 ++++++++++++++++++++++++
 servlet-vaadin-v08/pom.xml | 40 ++++++++++++++++++++++
 servlet-vaadin-v10/pom.xml | 17 ++++++++++
 6 files changed, 190 insertions(+), 83 deletions(-)

diff --git a/pom.xml b/pom.xml
index 36019b7..1d45f39 100644
--- a/pom.xml
+++ b/pom.xml
@@ -58,94 +58,13 @@
         <pitest.version>1.4.0</pitest.version>
         <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
 
-        <junit.version>4.12</junit.version>
+        <junit4.version>4.12</junit4.version>
         <junit.jupiter.version>5.1.1</junit.jupiter.version>
         <junit.platform.version>1.1.1</junit.platform.version>
 
     </properties>
 
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.meecrowave</groupId>
-            <artifactId>meecrowave-core</artifactId>
-            <version>${meecrowave.version}</version>
-        </dependency>
 
-        <!--jUnit5-->
-
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-api</artifactId>
-            <version>${junit.jupiter.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-params</artifactId>
-            <version>${junit.jupiter.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <dependency>
-            <groupId>org.junit.platform</groupId>
-            <artifactId>junit-platform-launcher</artifactId>
-            <version>${junit.platform.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <!-- Only required to run tests in an IDE that bundles an older version -->
-        <dependency>
-            <groupId>org.junit.jupiter</groupId>
-            <artifactId>junit-jupiter-engine</artifactId>
-            <version>${junit.jupiter.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <!-- Only required to run tests in an IDE that bundles an older version -->
-        <dependency>
-            <groupId>org.junit.vintage</groupId>
-            <artifactId>junit-vintage-engine</artifactId>
-            <version>${junit.jupiter.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <!--Meecrowave-->
-        <dependency>
-            <groupId>org.apache.meecrowave</groupId>
-            <artifactId>meecrowave-junit</artifactId>
-            <version>${meecrowave.version}</version>
-            <scope>test</scope>
-        </dependency>
-
-        <!--Logger-->
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-api</artifactId>
-            <version>1.7.25</version>
-            <!--<scope>test</scope>-->
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>slf4j-simple</artifactId>
-            <version>1.7.25</version>
-            <!--<scope>test</scope>-->
-        </dependency>
-
-        <dependency>
-            <groupId>org.apache.logging.log4j</groupId>
-            <artifactId>log4j-web</artifactId>
-            <version>2.11.0</version>
-        </dependency>
-
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.meecrowave</groupId>
-                <artifactId>meecrowave-maven-plugin</artifactId>
-                <version>${meecrowave.version}</version>
-            </plugin>
-        </plugins>
-    </build>
 
     <!-- Just to disable any accidential deployment to maven.central -->
     <distributionManagement>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index 296d21f..5a1b18a 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -2,14 +2,58 @@
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/POM/4.0.0"
          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>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
         <version>1.2.2-SNAPSHOT</version>
     </parent>
-    <modelVersion>4.0.0</modelVersion>
+
 
     <artifactId>samples-rest-trivial</artifactId>
     <name>REST (trivial)</name>
 
+    <dependencies>
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+        </plugins>
+    </build>
+
 </project>
\ No newline at end of file
diff --git a/rest/pom.xml b/rest/pom.xml
index b729df3..8503ee2 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -12,5 +12,48 @@
     <artifactId>samples-rest</artifactId>
     <name>REST</name>
 
+    <dependencies>
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+        </plugins>
+    </build>
+
 
 </project>
\ No newline at end of file
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index faec477..fdc91b8 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -31,4 +31,48 @@
     <name>Servlet (trivial)</name>
 
 
+    <dependencies>
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+        </plugins>
+    </build>
+
+
 </project>
\ No newline at end of file
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index cec6067..12d3364 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -59,6 +59,46 @@
             <artifactId>vaadin-client-compiled</artifactId>
         </dependency>
 
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
     </dependencies>
 
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+        </plugins>
+    </build>
+
 </project>
\ No newline at end of file
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 552b02a..5cf644b 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -72,6 +72,13 @@
     </dependencyManagement>
 
     <dependencies>
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
         <!--Vaadin -->
         <dependency>
             <groupId>com.vaadin</groupId>
@@ -83,6 +90,16 @@
     <build>
         <plugins>
             <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+            <plugin>
                 <groupId>com.vaadin</groupId>
                 <artifactId>vaadin-maven-plugin</artifactId>
                 <version>${vaadin.version}</version>


[openwebbeans-meecrowave-examples] 19/28: fix documentation typos

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 412f9dfbcec3a211b209ed75f100e7a447937e56
Author: Alexander Falb <el...@apache.org>
AuthorDate: Thu Oct 11 13:32:12 2018 +0200

    fix documentation typos
---
 README.adoc              | 2 +-
 rest-trivial/README.adoc | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.adoc b/README.adoc
index 8895239..ada3e57 100644
--- a/README.adoc
+++ b/README.adoc
@@ -17,7 +17,7 @@ Apache Meecrowave is a 9 MByte small embeddable Java Application Server based on
 
 Here's what it provides:
 
-0. A pom.xml with the dependencies for this sample and meecrowave-maven-plugin setup so you can launch `mvn package meecrowave-run`.
+0. A pom.xml with the dependencies for this sample and meecrowave-maven-plugin setup so you can launch `mvn package meecrowave:run`.
 1. A sample JAX-RS application: in src/main/java/com/superbiz/sample/jaxrs
 2. A test using JAX-RS client API and the meecrowave mono rule (useful when you run multiple tests) in src/test/java/com/superbiz/sample/jaxrs
 3. in src/main/java/com/superbiz/configuration/Defaults some enrichment of the meecrowave Cli options for the application.
diff --git a/rest-trivial/README.adoc b/rest-trivial/README.adoc
index 7f9b567..1200dc3 100644
--- a/rest-trivial/README.adoc
+++ b/rest-trivial/README.adoc
@@ -5,7 +5,7 @@
 This example shows probably the smallest JavaEE REST Service.
 It is the REST version of the famous 'Hello World' program.
 It contains just a link:src/main/java/com/superbiz/jaxrs/HelloEndpoint.java[Hello Resource].
-The important parst of this class are the @Path(`"hello")` and the `@GET' annotated method.
+The important parts of this class are the `@Path("hello")` and the `@GET` annotated method.
 
 Note that the Resource is a CDI bean annotated with `@ApplicationScoped`.
-Thus only one instance exists.
\ No newline at end of file
+Thus only one instance exists.


[openwebbeans-meecrowave-examples] 27/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 0bd68b239a79237c51c48890a1439d7889fc457f
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Thu Mar 14 10:45:28 2019 +0100

    version updates
---
 pom.xml                                            |  1 +
 servlet-vaadin-v08/pom.xml                         |  2 +-
 servlet-vaadin-v10/pom.xml                         |  5 +-
 {servlet-vaadin-v10 => servlet-vaadin-vxx}/pom.xml | 58 +++-------------------
 .../servlet/vaadin/HelloVaadinVLatest.java         | 41 +++++++++++++++
 5 files changed, 52 insertions(+), 55 deletions(-)

diff --git a/pom.xml b/pom.xml
index ca5d461..725e2f2 100644
--- a/pom.xml
+++ b/pom.xml
@@ -43,6 +43,7 @@
         <module>mw_bundle_config</module>
         <module>servlet-vaadin-v08</module>
         <module>servlet-vaadin-v10</module>
+        <module>servlet-vaadin-vxx</module>
         <module>docker</module>
     </modules>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 8f56b32..d490ab6 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -28,7 +28,7 @@
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-servlet-vaadin-v08</artifactId>
-    <name>Servlet (Vaadin - V08)</name>
+    <name>Servlet (Vaadin - V08 (LTS))</name>
 
   <properties>
     <vaadin.version>8.7.0</vaadin.version>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index cc75938..6363723 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -28,13 +28,12 @@
   <modelVersion>4.0.0</modelVersion>
 
   <artifactId>samples-servlet-vaadin-v10</artifactId>
-  <name>Servlet (Vaadin - V10 / VXX)</name>
+  <name>Servlet (Vaadin - V10 (LTS))</name>
   <packaging>jar</packaging>
 
   <properties>
     <transpilation.output>${project.build.directory}/build</transpilation.output>
-    <!--<vaadin.version>10.0.1</vaadin.version>-->
-    <vaadin.version>12.0.5</vaadin.version>
+    <vaadin.version>10.0.11</vaadin.version>
   </properties>
 
   <pluginRepositories>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-vxx/pom.xml
similarity index 53%
copy from servlet-vaadin-v10/pom.xml
copy to servlet-vaadin-vxx/pom.xml
index cc75938..71d491b 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-vxx/pom.xml
@@ -1,40 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!--
-    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.
--->
-<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-         xmlns="http://maven.apache.org/POM/4.0.0"
+<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">
   <parent>
-    <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
+    <groupId>org.apache.meecrowave</groupId>
     <version>1.2.7-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
-  <artifactId>samples-servlet-vaadin-v10</artifactId>
-  <name>Servlet (Vaadin - V10 / VXX)</name>
+  <artifactId>samples-servlet-vaadin-vxx</artifactId>
+  <name>Servlet (Vaadin - Latest)</name>
   <packaging>jar</packaging>
 
   <properties>
-    <transpilation.output>${project.build.directory}/build</transpilation.output>
-    <!--<vaadin.version>10.0.1</vaadin.version>-->
-    <vaadin.version>12.0.5</vaadin.version>
+    <vaadin.version>13.0.1</vaadin.version>
   </properties>
 
   <pluginRepositories>
@@ -85,6 +65,7 @@
       <groupId>com.vaadin</groupId>
       <artifactId>vaadin-core</artifactId>
     </dependency>
+
   </dependencies>
 
 
@@ -99,35 +80,10 @@
         <artifactId>meecrowave-maven-plugin</artifactId>
         <version>${meecrowave.version}</version>
       </plugin>
-
-      <plugin>
-        <groupId>com.vaadin</groupId>
-        <artifactId>vaadin-maven-plugin</artifactId>
-        <version>${vaadin.version}</version>
-        <executions>
-          <execution>
-            <goals>
-              <goal>copy-production-files</goal>
-              <goal>package-for-production</goal>
-            </goals>
-            <configuration>
-              <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-war-plugin</artifactId>
         <version>3.2.2</version>
-        <configuration>
-          <webResources>
-            <resource>
-              <directory>${transpilation.output}</directory>
-            </resource>
-          </webResources>
-        </configuration>
       </plugin>
     </plugins>
   </build>
diff --git a/servlet-vaadin-vxx/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinVLatest.java b/servlet-vaadin-vxx/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinVLatest.java
new file mode 100644
index 0000000..99261c1
--- /dev/null
+++ b/servlet-vaadin-vxx/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinVLatest.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+package com.superbiz.servlet.vaadin;
+
+import com.vaadin.flow.component.Composite;
+import com.vaadin.flow.component.button.Button;
+import com.vaadin.flow.component.html.Div;
+import com.vaadin.flow.component.html.Label;
+import com.vaadin.flow.component.orderedlayout.VerticalLayout;
+import com.vaadin.flow.router.Route;
+
+@Route("")
+public class HelloVaadinVLatest extends Composite<Div> {
+
+    public HelloVaadinVLatest() {
+        final VerticalLayout layout = new VerticalLayout();
+        layout
+            .add(new Button("click me",
+                            event -> layout.add(new Label("clicked again"))
+            ));
+        //set the main Component
+        getContent().add(layout);
+
+    }
+}


[openwebbeans-meecrowave-examples] 23/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit f72669d66c2bffd8ff9d683feed3c5d0ee8e2a38
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Wed Jan 16 17:37:23 2019 +0100

    version updates
---
 servlet-vaadin-v08/pom.xml |   6 --
 servlet-vaadin-v10/pom.xml | 217 +++++++++++++++++++++++----------------------
 2 files changed, 109 insertions(+), 114 deletions(-)

diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index ff22d19..6e02140 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -79,12 +79,6 @@
 
         <!-- our test dependencies -->
         <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>${junit4.version}</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.meecrowave</groupId>
             <artifactId>meecrowave-junit</artifactId>
             <version>${meecrowave.version}</version>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index f899b14..63854ed 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -20,115 +20,116 @@
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-    <parent>
-        <groupId>org.apache.meecrowave</groupId>
-        <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
-    </parent>
-    <modelVersion>4.0.0</modelVersion>
-
-    <artifactId>samples-servlet-vaadin-v10</artifactId>
-    <name>Servlet (Vaadin - V10)</name>
-    <packaging>jar</packaging>
-
-    <properties>
-        <transpilation.output>${project.build.directory}/build</transpilation.output>
-        <vaadin.version>10.0.1</vaadin.version>
-    </properties>
-
-    <pluginRepositories>
-        <pluginRepository>
-            <id>vaadin-prereleases</id>
-            <url>https://maven.vaadin.com/vaadin-prereleases</url>
-        </pluginRepository>
-    </pluginRepositories>
-
-    <repositories>
-        <!--Releases-->
-        <repository>
-            <id>vaadin-addons</id>
-            <url>http://maven.vaadin.com/vaadin-addons</url>
-        </repository>
-
-        <!--Pre-Releases-->
-        <repository>
-            <id>vaadin-prereleases</id>
-            <url>http://maven.vaadin.com/vaadin-prereleases</url>
-        </repository>
-    </repositories>
-
-
-    <dependencyManagement>
-        <dependencies>
-            <!--Vaadin -->
-            <dependency>
-                <groupId>com.vaadin</groupId>
-                <artifactId>vaadin-bom</artifactId>
-                <version>${vaadin.version}</version>
-                <type>pom</type>
-                <scope>import</scope>
-            </dependency>
-        </dependencies>
-    </dependencyManagement>
-
+  <parent>
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <version>1.2.5-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-servlet-vaadin-v10</artifactId>
+  <name>Servlet (Vaadin - V10 / VXX)</name>
+  <packaging>jar</packaging>
+
+  <properties>
+    <transpilation.output>${project.build.directory}/build</transpilation.output>
+    <!--<vaadin.version>10.0.1</vaadin.version>-->
+    <vaadin.version>12.0.3</vaadin.version>
+  </properties>
+
+  <pluginRepositories>
+    <pluginRepository>
+      <id>vaadin-prereleases</id>
+      <url>https://maven.vaadin.com/vaadin-prereleases</url>
+    </pluginRepository>
+  </pluginRepositories>
+
+  <repositories>
+    <!--Releases-->
+    <repository>
+      <id>vaadin-addons</id>
+      <url>http://maven.vaadin.com/vaadin-addons</url>
+    </repository>
+
+    <!--Pre-Releases-->
+    <repository>
+      <id>vaadin-prereleases</id>
+      <url>http://maven.vaadin.com/vaadin-prereleases</url>
+    </repository>
+  </repositories>
+
+
+  <dependencyManagement>
     <dependencies>
-        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
-        <dependency>
-            <groupId>org.apache.meecrowave</groupId>
-            <artifactId>meecrowave-specs-api</artifactId>
-            <version>${meecrowave.version}</version>
-        </dependency>
-
-        <!--Vaadin -->
-        <dependency>
-            <groupId>com.vaadin</groupId>
-            <artifactId>vaadin-core</artifactId>
-        </dependency>
+      <!--Vaadin -->
+      <dependency>
+        <groupId>com.vaadin</groupId>
+        <artifactId>vaadin-bom</artifactId>
+        <version>${vaadin.version}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
     </dependencies>
-
-
-    <build>
-        <plugins>
-            <plugin>
-                <!--
-                    For starting meecrowave via Maven. Just run
-                    $> mvn clean install meecrowave:run
-                -->
-                <groupId>org.apache.meecrowave</groupId>
-                <artifactId>meecrowave-maven-plugin</artifactId>
-                <version>${meecrowave.version}</version>
-            </plugin>
-
-            <plugin>
-                <groupId>com.vaadin</groupId>
-                <artifactId>vaadin-maven-plugin</artifactId>
-                <version>${vaadin.version}</version>
-                <executions>
-                    <execution>
-                        <goals>
-                            <goal>copy-production-files</goal>
-                            <goal>package-for-production</goal>
-                        </goals>
-                        <configuration>
-                            <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-war-plugin</artifactId>
-                <version>3.1.0</version>
-                <configuration>
-                    <webResources>
-                        <resource>
-                            <directory>${transpilation.output}</directory>
-                        </resource>
-                    </webResources>
-                </configuration>
-            </plugin>
-        </plugins>
-    </build>
+  </dependencyManagement>
+
+  <dependencies>
+    <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+    <dependency>
+      <groupId>org.apache.meecrowave</groupId>
+      <artifactId>meecrowave-specs-api</artifactId>
+      <version>${meecrowave.version}</version>
+    </dependency>
+
+    <!--Vaadin -->
+    <dependency>
+      <groupId>com.vaadin</groupId>
+      <artifactId>vaadin-core</artifactId>
+    </dependency>
+  </dependencies>
+
+
+  <build>
+    <plugins>
+      <plugin>
+        <!--
+            For starting meecrowave via Maven. Just run
+            $> mvn clean install meecrowave:run
+        -->
+        <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-maven-plugin</artifactId>
+        <version>${meecrowave.version}</version>
+      </plugin>
+
+      <plugin>
+        <groupId>com.vaadin</groupId>
+        <artifactId>vaadin-maven-plugin</artifactId>
+        <version>${vaadin.version}</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>copy-production-files</goal>
+              <goal>package-for-production</goal>
+            </goals>
+            <configuration>
+              <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>3.2.2</version>
+        <configuration>
+          <webResources>
+            <resource>
+              <directory>${transpilation.output}</directory>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
 
 </project>
\ No newline at end of file


[openwebbeans-meecrowave-examples] 02/28: added vaadin examples, extended pom.xml files..

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 207eaa3daf78af7ea4d7651ab88ce9424ba74cb6
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Fri Jun 29 12:38:30 2018 +0200

    added vaadin examples, extended pom.xml files..
---
 pom.xml                                            | 202 ++++++++++++++-------
 rest-trivial/pom.xml                               |   4 +-
 rest/pom.xml                                       |   4 +-
 servlet-trivial/pom.xml                            |  34 ++++
 .../com/superbiz/servlet/HelloWorldServlet.java    |  50 +++++
 .../com/superbiz/servlet/UpperCaseService.java     |  29 +++
 .../src/main/resources/WEB-INF/beans.xml           |  27 +++
 .../superbiz/servlet/HelloWorldServletTest.java    |  53 ++++++
 .../com/superbiz/servlet/UpperCaseServiceTest.java |  32 ++++
 servlet-vaadin-v08/pom.xml                         |  64 +++++++
 .../com/superbiz/servlet/vaadin/HelloVaadin.java   |  61 +++++++
 .../src/main/resources/WEB-INF/beans.xml           |  27 +++
 servlet-vaadin-v10/pom.xml                         | 118 ++++++++++++
 .../superbiz/servlet/vaadin/HelloVaadinV10.java    |  41 +++++
 14 files changed, 678 insertions(+), 68 deletions(-)

diff --git a/pom.xml b/pom.xml
index 152d160..abe342c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,68 +19,142 @@
 -->
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
          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>org.apache</groupId>
-        <artifactId>apache</artifactId>
-        <version>18</version>
-    </parent>
-
-    <groupId>org.apache.meecrowave</groupId>
-    <artifactId>meecrowave-examples</artifactId>
-    <packaging>pom</packaging>
-    <name>Apache Meecrowave Examples</name>
-    <description>A project showing some of the Apache Meecrowave features.</description>
-
-    <modules>
-        <module>rest-trivial</module>
-        <module>rest</module>
-    </modules>
-
-    <properties>
-        <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
-    </properties>
-
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.meecrowave</groupId>
-            <artifactId>meecrowave-core</artifactId>
-            <version>${meecrowave.version}</version>
-        </dependency>
-
-        <dependency>
-            <groupId>junit</groupId>
-            <artifactId>junit</artifactId>
-            <version>4.12</version>
-            <scope>test</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.meecrowave</groupId>
-            <artifactId>meecrowave-junit</artifactId>
-            <version>${meecrowave.version}</version>
-            <scope>test</scope>
-        </dependency>
-    </dependencies>
-
-    <build>
-        <plugins>
-            <plugin>
-                <groupId>org.apache.meecrowave</groupId>
-                <artifactId>meecrowave-maven-plugin</artifactId>
-                <version>${meecrowave.version}</version>
-            </plugin>
-        </plugins>
-    </build>
-
-    <distributionManagement>
-        <repository>
-            <id>localhost</id>
-            <url>file://${basedir}/target/repo/</url>
-        </repository>
-        <snapshotRepository>
-            <id>localhost</id>
-            <url>file://${basedir}/target/snapshot-repo/</url>
-        </snapshotRepository>
-    </distributionManagement>
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache</groupId>
+    <artifactId>apache</artifactId>
+    <version>18</version>
+  </parent>
+
+  <groupId>org.apache.meecrowave</groupId>
+  <artifactId>meecrowave-examples</artifactId>
+  <version>1.2.2-SNAPSHOT</version>
+
+  <packaging>pom</packaging>
+  <name>Apache Meecrowave Examples</name>
+  <description>A project showing some of the Apache Meecrowave features.</description>
+
+  <modules>
+    <module>rest-trivial</module>
+    <module>rest</module>
+    <module>servlet-trivial</module>
+    <module>servlet-vaadin-v08</module>
+    <module>servlet-vaadin-v10</module>
+  </modules>
+
+  <properties>
+    <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
+
+    <maven.compiler.target>1.8</maven.compiler.target>
+    <maven.compiler.source>1.8</maven.compiler.source>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+    <slf4j.version>1.7.25</slf4j.version>
+    <log4j-api.version>2.11.0</log4j-api.version>
+
+    <jacoco.version>0.8.1</jacoco.version>
+    <pitest.version>1.4.0</pitest.version>
+    <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
+
+    <junit.version>4.12</junit.version>
+    <junit.jupiter.version>5.1.1</junit.jupiter.version>
+    <junit.platform.version>1.1.1</junit.platform.version>
+
+  </properties>
+
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.meecrowave</groupId>
+      <artifactId>meecrowave-core</artifactId>
+      <version>${meecrowave.version}</version>
+    </dependency>
+
+    <!--jUnit5-->
+
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-api</artifactId>
+      <version>${junit.jupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-params</artifactId>
+      <version>${junit.jupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.junit.platform</groupId>
+      <artifactId>junit-platform-launcher</artifactId>
+      <version>${junit.platform.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <!-- Only required to run tests in an IDE that bundles an older version -->
+    <dependency>
+      <groupId>org.junit.jupiter</groupId>
+      <artifactId>junit-jupiter-engine</artifactId>
+      <version>${junit.jupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+    <!-- Only required to run tests in an IDE that bundles an older version -->
+    <dependency>
+      <groupId>org.junit.vintage</groupId>
+      <artifactId>junit-vintage-engine</artifactId>
+      <version>${junit.jupiter.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <!--Meecrowave-->
+    <dependency>
+      <groupId>org.apache.meecrowave</groupId>
+      <artifactId>meecrowave-junit</artifactId>
+      <version>${meecrowave.version}</version>
+      <scope>test</scope>
+    </dependency>
+
+    <!--Logger-->
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-api</artifactId>
+      <version>1.7.25</version>
+      <!--<scope>test</scope>-->
+    </dependency>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-simple</artifactId>
+      <version>1.7.25</version>
+      <!--<scope>test</scope>-->
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.logging.log4j</groupId>
+      <artifactId>log4j-web</artifactId>
+      <version>2.11.0</version>
+    </dependency>
+
+  </dependencies>
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-maven-plugin</artifactId>
+        <version>${meecrowave.version}</version>
+      </plugin>
+    </plugins>
+  </build>
+
+  <distributionManagement>
+    <repository>
+      <id>localhost</id>
+      <url>file://${basedir}/target/repo/</url>
+    </repository>
+    <snapshotRepository>
+      <id>localhost</id>
+      <url>file://${basedir}/target/snapshot-repo/</url>
+    </snapshotRepository>
+  </distributionManagement>
 </project>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index addad78..296d21f 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -3,13 +3,13 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <artifactId>samples</artifactId>
         <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
         <version>1.2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-rest-trivial</artifactId>
-    <name>Meecrowave Samples - REST (trivial)</name>
+    <name>REST (trivial)</name>
 
 </project>
\ No newline at end of file
diff --git a/rest/pom.xml b/rest/pom.xml
index 0d27b79..6bf61b2 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -3,13 +3,13 @@
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     <parent>
-        <artifactId>samples</artifactId>
         <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
         <version>1.2.2-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-rest</artifactId>
-    <name>Meecrowave Samples - REST</name>
+    <name>REST</name>
 
 </project>
\ No newline at end of file
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
new file mode 100644
index 0000000..d66302a
--- /dev/null
+++ b/servlet-trivial/pom.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<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">
+  <parent>
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <version>1.2.2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-servlet-trivial</artifactId>
+  <name>Servlet (trivial)</name>
+
+
+</project>
\ No newline at end of file
diff --git a/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java b/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java
new file mode 100644
index 0000000..aeb902b
--- /dev/null
+++ b/servlet-trivial/src/main/java/com/superbiz/servlet/HelloWorldServlet.java
@@ -0,0 +1,50 @@
+/*
+ * 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.
+ */
+package com.superbiz.servlet;
+
+import javax.inject.Inject;
+import javax.servlet.annotation.WebServlet;
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.io.IOException;
+
+
+/**
+ * request with curl would look like
+ *
+ * http://localhost:8080/?value=HalloNase
+ *
+ */
+@WebServlet("/*")
+public class HelloWorldServlet extends HttpServlet {
+
+
+  @Inject private UpperCaseService service;
+
+  public void doGet(HttpServletRequest request,
+                    HttpServletResponse response)
+      throws IOException {
+    response.setContentType("text/plain; charset=utf-8");
+
+    String value = request.getParameter("value");
+
+    response.getWriter().println(service.upperCase(value));
+  }
+}
diff --git a/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java b/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java
new file mode 100644
index 0000000..dae7e20
--- /dev/null
+++ b/servlet-trivial/src/main/java/com/superbiz/servlet/UpperCaseService.java
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ */
+package com.superbiz.servlet;
+
+import javax.enterprise.context.Dependent;
+
+@Dependent
+public class UpperCaseService{
+
+  public String upperCase(String txt) {
+    return txt.toUpperCase();
+  }
+}
diff --git a/servlet-trivial/src/main/resources/WEB-INF/beans.xml b/servlet-trivial/src/main/resources/WEB-INF/beans.xml
new file mode 100644
index 0000000..42a24b5
--- /dev/null
+++ b/servlet-trivial/src/main/resources/WEB-INF/beans.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<beans
+    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
+                      http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
+    bean-discovery-mode="all">
+
+</beans>
\ No newline at end of file
diff --git a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java
new file mode 100644
index 0000000..2bfce55
--- /dev/null
+++ b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/HelloWorldServletTest.java
@@ -0,0 +1,53 @@
+/*
+ * 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.
+ */
+package junit.com.superbiz.servlet;
+
+import org.apache.meecrowave.junit.MeecrowaveRule;
+import org.junit.Assert;
+import org.junit.Rule;
+import org.junit.Test;
+
+import javax.ws.rs.client.Client;
+import javax.ws.rs.client.ClientBuilder;
+
+import static javax.ws.rs.core.MediaType.APPLICATION_JSON_TYPE;
+import static org.junit.Assert.assertEquals;
+
+
+public class HelloWorldServletTest {
+
+  @Rule // started once for the class, @Rule would be per method
+  public final MeecrowaveRule rule = new MeecrowaveRule();
+
+  @Test
+  public void test001() {
+    final Client client = ClientBuilder.newClient();
+    try {
+      assertEquals("HALLONASE", client.target("http://127.0.0.1:" + rule.getConfiguration().getHttpPort())
+                                      .queryParam("value", "HalloNase")
+                                      .request(APPLICATION_JSON_TYPE)
+                                      .get(String.class)
+                                      .trim());
+    } catch (Exception e) {
+      Assert.fail(e.getMessage());
+    } finally {
+      client.close();
+    }
+  }
+}
diff --git a/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java
new file mode 100644
index 0000000..aa56d7c
--- /dev/null
+++ b/servlet-trivial/src/test/java/junit/com/superbiz/servlet/UpperCaseServiceTest.java
@@ -0,0 +1,32 @@
+/*
+ * 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.
+ */
+package junit.com.superbiz.servlet;
+
+
+import com.superbiz.servlet.UpperCaseService;
+import org.junit.Assert;
+import org.junit.Test;
+
+public class UpperCaseServiceTest {
+
+  @Test
+  public void test001() {
+    Assert.assertEquals("HALLO", new UpperCaseService().upperCase("hallo"));
+  }
+}
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
new file mode 100644
index 0000000..1aefb84
--- /dev/null
+++ b/servlet-vaadin-v08/pom.xml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<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">
+  <parent>
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <version>1.2.2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-servlet-vaadin-v08</artifactId>
+  <name>Servlet (Vaadin - V08)</name>
+
+  <dependencyManagement>
+    <dependencies>
+      <!--Vaadin -->
+      <dependency>
+        <groupId>com.vaadin</groupId>
+        <artifactId>vaadin-bom</artifactId>
+        <version>8.4.2</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+
+    <!--Vaadin -->
+    <dependency>
+      <groupId>com.vaadin</groupId>
+      <artifactId>vaadin-server</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>com.vaadin</groupId>
+      <artifactId>vaadin-themes</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>com.vaadin</groupId>
+      <artifactId>vaadin-client-compiled</artifactId>
+    </dependency>
+
+  </dependencies>
+
+</project>
\ No newline at end of file
diff --git a/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java b/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java
new file mode 100644
index 0000000..d8f88f0
--- /dev/null
+++ b/servlet-vaadin-v08/src/main/java/com/superbiz/servlet/vaadin/HelloVaadin.java
@@ -0,0 +1,61 @@
+/*
+ * 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.
+ */
+package com.superbiz.servlet.vaadin;
+
+import com.vaadin.annotations.VaadinServletConfiguration;
+import com.vaadin.server.VaadinRequest;
+import com.vaadin.server.VaadinServlet;
+import com.vaadin.ui.*;
+
+import javax.servlet.annotation.WebServlet;
+
+
+public class HelloVaadin {
+
+  public static class MyUI extends UI {
+
+    /**
+     * Start editing here to create your
+     * POC based on a Vaadin App.
+     * To start the app, -> start the main Method.
+     * <p>
+     * You will see in the log´s the randomly used port.
+     *
+     * @param request that is created by the first request to init the app
+     */
+    @Override
+    protected void init(VaadinRequest request) {
+
+      //create the components you want to use
+      // and set the main component with setContent(..)
+      final Layout layout = new VerticalLayout();
+      layout
+          .addComponent(new Button("click me",
+                                   event -> layout.addComponents(new Label("clicked again"))
+          ));
+
+      //set the main Component
+      setContent(layout);
+    }
+
+    @WebServlet("/*")
+    @VaadinServletConfiguration(productionMode = false, ui = MyUI.class)
+    public static class MyProjectServlet extends VaadinServlet { }
+  }
+}
diff --git a/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml b/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml
new file mode 100644
index 0000000..42a24b5
--- /dev/null
+++ b/servlet-vaadin-v08/src/main/resources/WEB-INF/beans.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<beans
+    xmlns="http://xmlns.jcp.org/xml/ns/javaee"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
+                      http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd"
+    bean-discovery-mode="all">
+
+</beans>
\ No newline at end of file
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
new file mode 100644
index 0000000..8fec11b
--- /dev/null
+++ b/servlet-vaadin-v10/pom.xml
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<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">
+  <parent>
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <version>1.2.2-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-servlet-vaadin-v10</artifactId>
+  <name>Servlet (Vaadin - V10)</name>
+
+
+  <properties>
+    <transpilation.output>${project.build.directory}/build</transpilation.output>
+    <vaadin.version>10.0.1</vaadin.version>
+  </properties>
+
+  <pluginRepositories>
+    <pluginRepository>
+      <id>vaadin-prereleases</id>
+      <url>https://maven.vaadin.com/vaadin-prereleases</url>
+    </pluginRepository>
+  </pluginRepositories>
+
+  <repositories>
+    <!--Releases-->
+    <repository>
+      <id>vaadin-addons</id>
+      <url>http://maven.vaadin.com/vaadin-addons</url>
+    </repository>
+
+    <!--Pre-Releases-->
+    <repository>
+      <id>vaadin-prereleases</id>
+      <url>http://maven.vaadin.com/vaadin-prereleases</url>
+    </repository>
+  </repositories>
+
+
+  <dependencyManagement>
+    <dependencies>
+      <!--Vaadin -->
+      <dependency>
+        <groupId>com.vaadin</groupId>
+        <artifactId>vaadin-bom</artifactId>
+        <version>${vaadin.version}</version>
+        <type>pom</type>
+        <scope>import</scope>
+      </dependency>
+    </dependencies>
+  </dependencyManagement>
+
+  <dependencies>
+    <!--Vaadin -->
+    <dependency>
+      <groupId>com.vaadin</groupId>
+      <artifactId>vaadin-core</artifactId>
+    </dependency>
+  </dependencies>
+
+
+
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>com.vaadin</groupId>
+        <artifactId>vaadin-maven-plugin</artifactId>
+        <version>${vaadin.version}</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>copy-production-files</goal>
+              <goal>package-for-production</goal>
+            </goals>
+            <configuration>
+              <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-war-plugin</artifactId>
+        <version>3.1.0</version>
+        <configuration>
+          <webResources>
+            <resource>
+              <directory>${transpilation.output}</directory>
+            </resource>
+          </webResources>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+</project>
\ No newline at end of file
diff --git a/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java b/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java
new file mode 100644
index 0000000..31ea511
--- /dev/null
+++ b/servlet-vaadin-v10/src/main/java/com/superbiz/servlet/vaadin/HelloVaadinV10.java
@@ -0,0 +1,41 @@
+/*
+ * 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.
+ */
+package com.superbiz.servlet.vaadin;
+
+import com.vaadin.flow.component.Composite;
+import com.vaadin.flow.component.button.Button;
+import com.vaadin.flow.component.html.Div;
+import com.vaadin.flow.component.html.Label;
+import com.vaadin.flow.component.orderedlayout.VerticalLayout;
+import com.vaadin.flow.router.Route;
+
+@Route("")
+public class HelloVaadinV10 extends Composite<Div> {
+
+  public HelloVaadinV10() {
+    final VerticalLayout layout = new VerticalLayout();
+    layout
+        .add(new Button("click me",
+                        event -> layout.add(new Label("clicked again"))
+        ));
+    //set the main Component
+    getContent().add(layout);
+
+  }
+}


[openwebbeans-meecrowave-examples] 17/28: version updates and prepare for docker examples

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 36a3ec7d92919ff69f867655345bc01d6a3a8cd4
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Mon Jul 23 16:35:21 2018 +0200

    version updates and prepare for docker examples
---
 docker/pom.xml             | 15 +++++++++++++++
 mw_bundle_config/pom.xml   |  2 +-
 pom.xml                    |  5 +++--
 rest-trivial/pom.xml       |  2 +-
 rest/pom.xml               |  2 +-
 servlet-trivial/pom.xml    |  2 +-
 servlet-vaadin-v08/pom.xml | 10 ++++++++--
 servlet-vaadin-v10/pom.xml |  4 ++--
 8 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/docker/pom.xml b/docker/pom.xml
new file mode 100644
index 0000000..bfe20c8
--- /dev/null
+++ b/docker/pom.xml
@@ -0,0 +1,15 @@
+<?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">
+  <parent>
+    <artifactId>meecrowave-examples</artifactId>
+    <groupId>org.apache.meecrowave</groupId>
+    <version>1.2.3-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-docker</artifactId>
+
+
+</project>
\ No newline at end of file
diff --git a/mw_bundle_config/pom.xml b/mw_bundle_config/pom.xml
index 8b36824..4c0d06d 100644
--- a/mw_bundle_config/pom.xml
+++ b/mw_bundle_config/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
 
     <artifactId>samples-bundle-config</artifactId>
diff --git a/pom.xml b/pom.xml
index bd2b650..d553529 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 
     <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.2-SNAPSHOT</version>
+    <version>1.2.3-SNAPSHOT</version>
 
     <packaging>pom</packaging>
     <name>Apache Meecrowave Examples</name>
@@ -42,10 +42,11 @@
         <module>mw_bundle_config</module>
         <module>servlet-vaadin-v08</module>
         <module>servlet-vaadin-v10</module>
+        <module>docker</module>
     </modules>
 
     <properties>
-        <meecrowave.version>1.2.2</meecrowave.version>
+        <meecrowave.version>1.2.3</meecrowave.version>
 
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.compiler.source>1.8</maven.compiler.source>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index 5a1b18a..df9eccc 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
 
 
diff --git a/rest/pom.xml b/rest/pom.xml
index 8503ee2..4ef7333 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index fdc91b8..d4dc32b 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 12d3364..a87cff9 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -23,20 +23,26 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-servlet-vaadin-v08</artifactId>
     <name>Servlet (Vaadin - V08)</name>
 
+  <properties>
+    <vaadin.version>8.4.5</vaadin.version>
+  </properties>
+
+  <packaging>jar</packaging>
+
     <dependencyManagement>
         <dependencies>
             <!--Vaadin -->
             <dependency>
                 <groupId>com.vaadin</groupId>
                 <artifactId>vaadin-bom</artifactId>
-                <version>8.4.2</version>
+                <version>${vaadin.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 5cf644b..ce43eae 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -23,13 +23,13 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-servlet-vaadin-v10</artifactId>
     <name>Servlet (Vaadin - V10)</name>
-
+    <packaging>jar</packaging>
 
     <properties>
         <transpilation.output>${project.build.directory}/build</transpilation.output>


[openwebbeans-meecrowave-examples] 25/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit ceff95a9361bdc5ae50c63587d47b818371dc0d6
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Sun Feb 3 12:06:46 2019 +0100

    version updates
---
 docker/pom.xml              | 2 +-
 mw_bundle_config/pom.xml    | 2 +-
 rest-trivial-kotlin/pom.xml | 2 +-
 rest-trivial/pom.xml        | 2 +-
 rest/pom.xml                | 2 +-
 servlet-trivial/pom.xml     | 2 +-
 servlet-vaadin-v08/pom.xml  | 2 +-
 servlet-vaadin-v10/pom.xml  | 2 +-
 8 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/docker/pom.xml b/docker/pom.xml
index 5fe54e6..587e1ae 100644
--- a/docker/pom.xml
+++ b/docker/pom.xml
@@ -5,7 +5,7 @@
   <parent>
     <artifactId>meecrowave-examples</artifactId>
     <groupId>org.apache.meecrowave</groupId>
-    <version>1.2.5-SNAPSHOT</version>
+    <version>1.2.7-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 
diff --git a/mw_bundle_config/pom.xml b/mw_bundle_config/pom.xml
index 2ece0c1..1b16587 100644
--- a/mw_bundle_config/pom.xml
+++ b/mw_bundle_config/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
 
     <artifactId>samples-bundle-config</artifactId>
diff --git a/rest-trivial-kotlin/pom.xml b/rest-trivial-kotlin/pom.xml
index 5fbca25..d224a20 100644
--- a/rest-trivial-kotlin/pom.xml
+++ b/rest-trivial-kotlin/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
 
 
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index e3b15c1..a57ac88 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
 
 
diff --git a/rest/pom.xml b/rest/pom.xml
index b4e454c..d6978bd 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index 2807a9f..2a00867 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index a6c2df0..21ca47e 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.5-SNAPSHOT</version>
+        <version>1.2.7-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 1563fb8..2ffd048 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -23,7 +23,7 @@
   <parent>
     <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.5-SNAPSHOT</version>
+    <version>1.2.7-SNAPSHOT</version>
   </parent>
   <modelVersion>4.0.0</modelVersion>
 


[openwebbeans-meecrowave-examples] 04/28: reformated with 4 spaces - pom.xml

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit d8b8f303a5cba0dbde2fa05dbfe1debac9d6f907
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Fri Jun 29 12:55:17 2018 +0200

    reformated with 4 spaces - pom.xml
---
 pom.xml                    | 276 ++++++++++++++++++++++-----------------------
 servlet-trivial/pom.xml    |  16 +--
 servlet-vaadin-v08/pom.xml |  70 ++++++------
 servlet-vaadin-v10/pom.xml | 160 +++++++++++++-------------
 4 files changed, 261 insertions(+), 261 deletions(-)

diff --git a/pom.xml b/pom.xml
index abe342c..a75f354 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,142 +19,142 @@
 -->
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
          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>org.apache</groupId>
-    <artifactId>apache</artifactId>
-    <version>18</version>
-  </parent>
-
-  <groupId>org.apache.meecrowave</groupId>
-  <artifactId>meecrowave-examples</artifactId>
-  <version>1.2.2-SNAPSHOT</version>
-
-  <packaging>pom</packaging>
-  <name>Apache Meecrowave Examples</name>
-  <description>A project showing some of the Apache Meecrowave features.</description>
-
-  <modules>
-    <module>rest-trivial</module>
-    <module>rest</module>
-    <module>servlet-trivial</module>
-    <module>servlet-vaadin-v08</module>
-    <module>servlet-vaadin-v10</module>
-  </modules>
-
-  <properties>
-    <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
-
-    <maven.compiler.target>1.8</maven.compiler.target>
-    <maven.compiler.source>1.8</maven.compiler.source>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
-
-    <slf4j.version>1.7.25</slf4j.version>
-    <log4j-api.version>2.11.0</log4j-api.version>
-
-    <jacoco.version>0.8.1</jacoco.version>
-    <pitest.version>1.4.0</pitest.version>
-    <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
-
-    <junit.version>4.12</junit.version>
-    <junit.jupiter.version>5.1.1</junit.jupiter.version>
-    <junit.platform.version>1.1.1</junit.platform.version>
-
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.meecrowave</groupId>
-      <artifactId>meecrowave-core</artifactId>
-      <version>${meecrowave.version}</version>
-    </dependency>
-
-    <!--jUnit5-->
-
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-api</artifactId>
-      <version>${junit.jupiter.version}</version>
-      <scope>test</scope>
-    </dependency>
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-params</artifactId>
-      <version>${junit.jupiter.version}</version>
-      <scope>test</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>org.junit.platform</groupId>
-      <artifactId>junit-platform-launcher</artifactId>
-      <version>${junit.platform.version}</version>
-      <scope>test</scope>
-    </dependency>
-    <!-- Only required to run tests in an IDE that bundles an older version -->
-    <dependency>
-      <groupId>org.junit.jupiter</groupId>
-      <artifactId>junit-jupiter-engine</artifactId>
-      <version>${junit.jupiter.version}</version>
-      <scope>test</scope>
-    </dependency>
-    <!-- Only required to run tests in an IDE that bundles an older version -->
-    <dependency>
-      <groupId>org.junit.vintage</groupId>
-      <artifactId>junit-vintage-engine</artifactId>
-      <version>${junit.jupiter.version}</version>
-      <scope>test</scope>
-    </dependency>
-
-    <!--Meecrowave-->
-    <dependency>
-      <groupId>org.apache.meecrowave</groupId>
-      <artifactId>meecrowave-junit</artifactId>
-      <version>${meecrowave.version}</version>
-      <scope>test</scope>
-    </dependency>
-
-    <!--Logger-->
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-api</artifactId>
-      <version>1.7.25</version>
-      <!--<scope>test</scope>-->
-    </dependency>
-    <dependency>
-      <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-simple</artifactId>
-      <version>1.7.25</version>
-      <!--<scope>test</scope>-->
-    </dependency>
-
-    <dependency>
-      <groupId>org.apache.logging.log4j</groupId>
-      <artifactId>log4j-web</artifactId>
-      <version>2.11.0</version>
-    </dependency>
-
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.meecrowave</groupId>
-        <artifactId>meecrowave-maven-plugin</artifactId>
-        <version>${meecrowave.version}</version>
-      </plugin>
-    </plugins>
-  </build>
-
-  <distributionManagement>
-    <repository>
-      <id>localhost</id>
-      <url>file://${basedir}/target/repo/</url>
-    </repository>
-    <snapshotRepository>
-      <id>localhost</id>
-      <url>file://${basedir}/target/snapshot-repo/</url>
-    </snapshotRepository>
-  </distributionManagement>
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache</groupId>
+        <artifactId>apache</artifactId>
+        <version>18</version>
+    </parent>
+
+    <groupId>org.apache.meecrowave</groupId>
+    <artifactId>meecrowave-examples</artifactId>
+    <version>1.2.2-SNAPSHOT</version>
+
+    <packaging>pom</packaging>
+    <name>Apache Meecrowave Examples</name>
+    <description>A project showing some of the Apache Meecrowave features.</description>
+
+    <modules>
+        <module>rest-trivial</module>
+        <module>rest</module>
+        <module>servlet-trivial</module>
+        <module>servlet-vaadin-v08</module>
+        <module>servlet-vaadin-v10</module>
+    </modules>
+
+    <properties>
+        <meecrowave.version>1.2.2-SNAPSHOT</meecrowave.version>
+
+        <maven.compiler.target>1.8</maven.compiler.target>
+        <maven.compiler.source>1.8</maven.compiler.source>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
+
+        <slf4j.version>1.7.25</slf4j.version>
+        <log4j-api.version>2.11.0</log4j-api.version>
+
+        <jacoco.version>0.8.1</jacoco.version>
+        <pitest.version>1.4.0</pitest.version>
+        <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
+
+        <junit.version>4.12</junit.version>
+        <junit.jupiter.version>5.1.1</junit.jupiter.version>
+        <junit.platform.version>1.1.1</junit.platform.version>
+
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!--jUnit5-->
+
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-api</artifactId>
+            <version>${junit.jupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-params</artifactId>
+            <version>${junit.jupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.junit.platform</groupId>
+            <artifactId>junit-platform-launcher</artifactId>
+            <version>${junit.platform.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <!-- Only required to run tests in an IDE that bundles an older version -->
+        <dependency>
+            <groupId>org.junit.jupiter</groupId>
+            <artifactId>junit-jupiter-engine</artifactId>
+            <version>${junit.jupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <!-- Only required to run tests in an IDE that bundles an older version -->
+        <dependency>
+            <groupId>org.junit.vintage</groupId>
+            <artifactId>junit-vintage-engine</artifactId>
+            <version>${junit.jupiter.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <!--Meecrowave-->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <!--Logger-->
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.7.25</version>
+            <!--<scope>test</scope>-->
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <version>1.7.25</version>
+            <!--<scope>test</scope>-->
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.logging.log4j</groupId>
+            <artifactId>log4j-web</artifactId>
+            <version>2.11.0</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+        </plugins>
+    </build>
+
+    <distributionManagement>
+        <repository>
+            <id>localhost</id>
+            <url>file://${basedir}/target/repo/</url>
+        </repository>
+        <snapshotRepository>
+            <id>localhost</id>
+            <url>file://${basedir}/target/snapshot-repo/</url>
+        </snapshotRepository>
+    </distributionManagement>
 </project>
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index c1cce44..faec477 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -20,15 +20,15 @@
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <parent>
-    <groupId>org.apache.meecrowave</groupId>
-    <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.2-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
 
-  <artifactId>samples-servlet-trivial</artifactId>
-  <name>Servlet (trivial)</name>
+    <artifactId>samples-servlet-trivial</artifactId>
+    <name>Servlet (trivial)</name>
 
 
 </project>
\ No newline at end of file
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 49636ac..cec6067 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -20,45 +20,45 @@
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <parent>
-    <groupId>org.apache.meecrowave</groupId>
-    <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.2-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
 
-  <artifactId>samples-servlet-vaadin-v08</artifactId>
-  <name>Servlet (Vaadin - V08)</name>
+    <artifactId>samples-servlet-vaadin-v08</artifactId>
+    <name>Servlet (Vaadin - V08)</name>
 
-  <dependencyManagement>
-    <dependencies>
-      <!--Vaadin -->
-      <dependency>
-        <groupId>com.vaadin</groupId>
-        <artifactId>vaadin-bom</artifactId>
-        <version>8.4.2</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
-    </dependencies>
-  </dependencyManagement>
+    <dependencyManagement>
+        <dependencies>
+            <!--Vaadin -->
+            <dependency>
+                <groupId>com.vaadin</groupId>
+                <artifactId>vaadin-bom</artifactId>
+                <version>8.4.2</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
 
-  <dependencies>
+    <dependencies>
 
-    <!--Vaadin -->
-    <dependency>
-      <groupId>com.vaadin</groupId>
-      <artifactId>vaadin-server</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.vaadin</groupId>
-      <artifactId>vaadin-themes</artifactId>
-    </dependency>
-    <dependency>
-      <groupId>com.vaadin</groupId>
-      <artifactId>vaadin-client-compiled</artifactId>
-    </dependency>
+        <!--Vaadin -->
+        <dependency>
+            <groupId>com.vaadin</groupId>
+            <artifactId>vaadin-server</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.vaadin</groupId>
+            <artifactId>vaadin-themes</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.vaadin</groupId>
+            <artifactId>vaadin-client-compiled</artifactId>
+        </dependency>
 
-  </dependencies>
+    </dependencies>
 
 </project>
\ No newline at end of file
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 84d69a3..552b02a 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -20,98 +20,98 @@
 <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://maven.apache.org/POM/4.0.0"
          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-  <parent>
-    <groupId>org.apache.meecrowave</groupId>
-    <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.2-SNAPSHOT</version>
-  </parent>
-  <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
 
-  <artifactId>samples-servlet-vaadin-v10</artifactId>
-  <name>Servlet (Vaadin - V10)</name>
+    <artifactId>samples-servlet-vaadin-v10</artifactId>
+    <name>Servlet (Vaadin - V10)</name>
 
 
-  <properties>
-    <transpilation.output>${project.build.directory}/build</transpilation.output>
-    <vaadin.version>10.0.1</vaadin.version>
-  </properties>
+    <properties>
+        <transpilation.output>${project.build.directory}/build</transpilation.output>
+        <vaadin.version>10.0.1</vaadin.version>
+    </properties>
 
-  <pluginRepositories>
-    <pluginRepository>
-      <id>vaadin-prereleases</id>
-      <url>https://maven.vaadin.com/vaadin-prereleases</url>
-    </pluginRepository>
-  </pluginRepositories>
+    <pluginRepositories>
+        <pluginRepository>
+            <id>vaadin-prereleases</id>
+            <url>https://maven.vaadin.com/vaadin-prereleases</url>
+        </pluginRepository>
+    </pluginRepositories>
 
-  <repositories>
-    <!--Releases-->
-    <repository>
-      <id>vaadin-addons</id>
-      <url>http://maven.vaadin.com/vaadin-addons</url>
-    </repository>
+    <repositories>
+        <!--Releases-->
+        <repository>
+            <id>vaadin-addons</id>
+            <url>http://maven.vaadin.com/vaadin-addons</url>
+        </repository>
 
-    <!--Pre-Releases-->
-    <repository>
-      <id>vaadin-prereleases</id>
-      <url>http://maven.vaadin.com/vaadin-prereleases</url>
-    </repository>
-  </repositories>
+        <!--Pre-Releases-->
+        <repository>
+            <id>vaadin-prereleases</id>
+            <url>http://maven.vaadin.com/vaadin-prereleases</url>
+        </repository>
+    </repositories>
 
 
-  <dependencyManagement>
+    <dependencyManagement>
+        <dependencies>
+            <!--Vaadin -->
+            <dependency>
+                <groupId>com.vaadin</groupId>
+                <artifactId>vaadin-bom</artifactId>
+                <version>${vaadin.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
     <dependencies>
-      <!--Vaadin -->
-      <dependency>
-        <groupId>com.vaadin</groupId>
-        <artifactId>vaadin-bom</artifactId>
-        <version>${vaadin.version}</version>
-        <type>pom</type>
-        <scope>import</scope>
-      </dependency>
+        <!--Vaadin -->
+        <dependency>
+            <groupId>com.vaadin</groupId>
+            <artifactId>vaadin-core</artifactId>
+        </dependency>
     </dependencies>
-  </dependencyManagement>
-
-  <dependencies>
-    <!--Vaadin -->
-    <dependency>
-      <groupId>com.vaadin</groupId>
-      <artifactId>vaadin-core</artifactId>
-    </dependency>
-  </dependencies>
 
 
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>com.vaadin</groupId>
-        <artifactId>vaadin-maven-plugin</artifactId>
-        <version>${vaadin.version}</version>
-        <executions>
-          <execution>
-            <goals>
-              <goal>copy-production-files</goal>
-              <goal>package-for-production</goal>
-            </goals>
-            <configuration>
-              <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>com.vaadin</groupId>
+                <artifactId>vaadin-maven-plugin</artifactId>
+                <version>${vaadin.version}</version>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>copy-production-files</goal>
+                            <goal>package-for-production</goal>
+                        </goals>
+                        <configuration>
+                            <transpileOutputDirectory>${transpilation.output}</transpileOutputDirectory>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
 
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-war-plugin</artifactId>
-        <version>3.1.0</version>
-        <configuration>
-          <webResources>
-            <resource>
-              <directory>${transpilation.output}</directory>
-            </resource>
-          </webResources>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-war-plugin</artifactId>
+                <version>3.1.0</version>
+                <configuration>
+                    <webResources>
+                        <resource>
+                            <directory>${transpilation.output}</directory>
+                        </resource>
+                    </webResources>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
 
 </project>
\ No newline at end of file


[openwebbeans-meecrowave-examples] 15/28: version updates and prepare for docker examples

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit b0e9a17de02b20c4a72bc62a2c56895b500121c9
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Mon Jul 23 16:35:21 2018 +0200

    version updates and prepare for docker examples
---
 docker/pom.xml             | 15 +++++++++++++++
 mw_bundle_config/pom.xml   |  2 +-
 pom.xml                    |  5 +++--
 rest-trivial/pom.xml       |  2 +-
 rest/pom.xml               |  2 +-
 servlet-trivial/pom.xml    |  2 +-
 servlet-vaadin-v08/pom.xml | 10 ++++++++--
 servlet-vaadin-v10/pom.xml |  4 ++--
 8 files changed, 32 insertions(+), 10 deletions(-)

diff --git a/docker/pom.xml b/docker/pom.xml
new file mode 100644
index 0000000..bfe20c8
--- /dev/null
+++ b/docker/pom.xml
@@ -0,0 +1,15 @@
+<?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">
+  <parent>
+    <artifactId>meecrowave-examples</artifactId>
+    <groupId>org.apache.meecrowave</groupId>
+    <version>1.2.3-SNAPSHOT</version>
+  </parent>
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>samples-docker</artifactId>
+
+
+</project>
\ No newline at end of file
diff --git a/mw_bundle_config/pom.xml b/mw_bundle_config/pom.xml
index 8b36824..4c0d06d 100644
--- a/mw_bundle_config/pom.xml
+++ b/mw_bundle_config/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
 
     <artifactId>samples-bundle-config</artifactId>
diff --git a/pom.xml b/pom.xml
index bd2b650..d553529 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 
     <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.2-SNAPSHOT</version>
+    <version>1.2.3-SNAPSHOT</version>
 
     <packaging>pom</packaging>
     <name>Apache Meecrowave Examples</name>
@@ -42,10 +42,11 @@
         <module>mw_bundle_config</module>
         <module>servlet-vaadin-v08</module>
         <module>servlet-vaadin-v10</module>
+        <module>docker</module>
     </modules>
 
     <properties>
-        <meecrowave.version>1.2.2</meecrowave.version>
+        <meecrowave.version>1.2.3</meecrowave.version>
 
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.compiler.source>1.8</maven.compiler.source>
diff --git a/rest-trivial/pom.xml b/rest-trivial/pom.xml
index 5a1b18a..df9eccc 100644
--- a/rest-trivial/pom.xml
+++ b/rest-trivial/pom.xml
@@ -7,7 +7,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
 
 
diff --git a/rest/pom.xml b/rest/pom.xml
index 8503ee2..4ef7333 100644
--- a/rest/pom.xml
+++ b/rest/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-trivial/pom.xml b/servlet-trivial/pom.xml
index fdc91b8..d4dc32b 100644
--- a/servlet-trivial/pom.xml
+++ b/servlet-trivial/pom.xml
@@ -23,7 +23,7 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 12d3364..a87cff9 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -23,20 +23,26 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-servlet-vaadin-v08</artifactId>
     <name>Servlet (Vaadin - V08)</name>
 
+  <properties>
+    <vaadin.version>8.4.5</vaadin.version>
+  </properties>
+
+  <packaging>jar</packaging>
+
     <dependencyManagement>
         <dependencies>
             <!--Vaadin -->
             <dependency>
                 <groupId>com.vaadin</groupId>
                 <artifactId>vaadin-bom</artifactId>
-                <version>8.4.2</version>
+                <version>${vaadin.version}</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 5cf644b..ce43eae 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -23,13 +23,13 @@
     <parent>
         <groupId>org.apache.meecrowave</groupId>
         <artifactId>meecrowave-examples</artifactId>
-        <version>1.2.2-SNAPSHOT</version>
+        <version>1.2.3-SNAPSHOT</version>
     </parent>
     <modelVersion>4.0.0</modelVersion>
 
     <artifactId>samples-servlet-vaadin-v10</artifactId>
     <name>Servlet (Vaadin - V10)</name>
-
+    <packaging>jar</packaging>
 
     <properties>
         <transpilation.output>${project.build.directory}/build</transpilation.output>


[openwebbeans-meecrowave-examples] 16/28: adding patch and diff to ignore files

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 3f682548f77e0d48ab3fcd8f2ad96a7054ef42bf
Author: Mark Struberg <st...@apache.org>
AuthorDate: Sat Jul 28 10:06:12 2018 +0200

    adding patch and diff to ignore files
---
 .gitignore | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.gitignore b/.gitignore
index b59638f..ed4d3bc 100755
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@ target
 *.iml
 *.log
 *~
+*.diff
+*.patch


[openwebbeans-meecrowave-examples] 06/28: improve our landing page

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 5c792bb6b8cab65fb02eb3adc3ddd57f039496e6
Author: Mark Struberg <st...@apache.org>
AuthorDate: Wed Jul 11 08:36:51 2018 +0200

    improve our landing page
---
 README.adoc | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)

diff --git a/README.adoc b/README.adoc
index 597fb3d..c791571 100644
--- a/README.adoc
+++ b/README.adoc
@@ -1,8 +1,21 @@
 = Meecrowave Sample
 
-This project shows how to use meecrowave for simple applications.
+This project shows how to use https://openwebbeans.apache.org/meecrowave/[Apache Meecrowave] for simple applications.
 
-Here what it provides:
+== About Apache Meecrowave
+
+Apache Meecrowave is a 9 MByte small embeddable Java Application Server based on the following Apache JavaEE 8 projects:
+
+* Apache Tomcat-9.x
+* Apache log4j2
+* Apache OpenWebBeans-2.x
+* Apache Johnzon-1.1.x
+* Apache CXF-3.x
+
+
+== About our Examples
+
+Here's what it provides:
 
 0. A pom.xml with the dependencies for this sample and meecrowave-maven-plugin setup so you can launch `mvn package meecrowave-run`.
 1. A sample JAX-RS application: in src/main/java/com/superbiz/sample/jaxrs
@@ -10,3 +23,12 @@ Here what it provides:
 3. in src/main/java/com/superbiz/configuration/Defaults some enrichment of the meecrowave Cli options for the application.
 
 To use it launch meecrowave main (org.apache.meecrowave.runner.Cli) with option `--app-default-name foo`.
+
+== Further Resources
+
+=== Bug Reporting
+Please use our official https://issues.apache.org/jira/projects/MEECROWAVE[Meecrowave Bug Tracker] for reporting bugs or enhancement requests.
+
+=== Apache Meecrowave resources
+
+Please find more information about Meecrowave on our https://openwebbeans.apache.org/meecrowave/[Apache Meecrowave Project Site]


[openwebbeans-meecrowave-examples] 13/28: add an example about how Meecrowave can get configured

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit bdf3ecf7d199c7d297a8b2d95a6ede499e82ebf6
Author: Mark Struberg <st...@apache.org>
AuthorDate: Wed Jul 18 00:29:47 2018 +0200

    add an example about how Meecrowave can get configured
---
 mw_bundle_config/README.adoc                       | 17 +++++
 mw_bundle_config/pom.xml                           | 77 ++++++++++++++++++++++
 .../main/resources/META-INF/resources/index.html   |  8 +++
 .../src/main/resources/meecrowave.properties       | 20 ++++++
 pom.xml                                            |  1 +
 5 files changed, 123 insertions(+)

diff --git a/mw_bundle_config/README.adoc b/mw_bundle_config/README.adoc
new file mode 100644
index 0000000..cae240c
--- /dev/null
+++ b/mw_bundle_config/README.adoc
@@ -0,0 +1,17 @@
+= Apache Meecrowave
+
+== Bundle Configuration
+
+This example shows how to configure Meecrowave via a property file in a distribution bundle
+
+=== Serving static resources
+The sample contains a link:src/main/resources/META-INF/resources/index.html[static index.html file].
+Since we do not package a WAR file but a simple jar we have to provide the file as a WebResource.
+Since JavaEE 6 (Servlets-3.0) every file under META-INF/resources/ is served as a WebResource.
+If you start up Meecrowave then you can browse this file under http://localhost:8090/index.html
+
+=== meecrowave.properties
+To configure Apache Meecrowave you can leverage the provided meecrowave.properties file support.
+This file can either reside in `src/main/meecrowave/conf` or in the ClassPath.
+Please see the documentation in the link:src/main/resources/meecrowave.properties[meecrowave.properties] file for more explanation about what can get configured.
+
diff --git a/mw_bundle_config/pom.xml b/mw_bundle_config/pom.xml
new file mode 100644
index 0000000..8b36824
--- /dev/null
+++ b/mw_bundle_config/pom.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xmlns="http://maven.apache.org/POM/4.0.0"
+         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>org.apache.meecrowave</groupId>
+        <artifactId>meecrowave-examples</artifactId>
+        <version>1.2.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>samples-bundle-config</artifactId>
+    <name>Bundle Config Example</name>
+
+    <dependencies>
+        <!-- this package contains the javax APIs for CDI, JAX-RS, JSONP, JSONB and Servlet4 -->
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-specs-api</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-core</artifactId>
+            <version>${meecrowave.version}</version>
+        </dependency>
+
+        <!-- our test dependencies -->
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>${junit4.version}</version>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.meecrowave</groupId>
+            <artifactId>meecrowave-junit</artifactId>
+            <version>${meecrowave.version}</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <!--
+                    For starting meecrowave via Maven. Just run
+                    $> mvn clean install meecrowave:run
+                -->
+                <groupId>org.apache.meecrowave</groupId>
+                <artifactId>meecrowave-maven-plugin</artifactId>
+                <version>${meecrowave.version}</version>
+            </plugin>
+
+        </plugins>
+    </build>
+
+
+</project>
\ No newline at end of file
diff --git a/mw_bundle_config/src/main/resources/META-INF/resources/index.html b/mw_bundle_config/src/main/resources/META-INF/resources/index.html
new file mode 100644
index 0000000..5805907
--- /dev/null
+++ b/mw_bundle_config/src/main/resources/META-INF/resources/index.html
@@ -0,0 +1,8 @@
+<html>
+<head>
+    <title>Apache Meecrowave bundleconfig example</title>
+</head>
+<body>
+Yikes this is a sample page.
+</body>
+</html>
\ No newline at end of file
diff --git a/mw_bundle_config/src/main/resources/meecrowave.properties b/mw_bundle_config/src/main/resources/meecrowave.properties
new file mode 100644
index 0000000..62a8c96
--- /dev/null
+++ b/mw_bundle_config/src/main/resources/meecrowave.properties
@@ -0,0 +1,20 @@
+# We serve on port 8090
+http=8090
+
+# And use a specific tempDir
+tempDir=target/mwtmp
+
+# Default but set again
+jsonbEncoding = UTF-8
+jsonb-binary-strategy=BASE_64
+
+# Set the session timeout to 20 minutes:
+web-session-timeout=20
+
+
+# And now also configure a Valve, e.g. the built-in ErrorHandlerValve
+# Disable showing the Tomcat version number:
+properties.valves.errorreport._className=org.apache.catalina.valves.ErrorReportValve
+properties.valves.errorreport._order=1
+properties.valves.errorreport.showReport=false
+properties.valves.errorreport.showServerInfo=false
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 1d45f39..bd2b650 100644
--- a/pom.xml
+++ b/pom.xml
@@ -39,6 +39,7 @@
         <module>rest-trivial</module>
         <module>rest</module>
         <module>servlet-trivial</module>
+        <module>mw_bundle_config</module>
         <module>servlet-vaadin-v08</module>
         <module>servlet-vaadin-v10</module>
     </modules>


[openwebbeans-meecrowave-examples] 28/28: Merge pull request #5 from Fork-World/master

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit d68706bf8d313e2180ab67f92d69655146d1f08e
Merge: deba8fc 0bd68b2
Author: Mark Struberg <st...@yahoo.de>
AuthorDate: Thu Mar 14 10:56:11 2019 +0100

    Merge pull request #5 from Fork-World/master
    
    Version updates for all modules

 docker/pom.xml                                     |   2 +-
 mw_bundle_config/pom.xml                           |   2 +-
 pom.xml                                            |  26 ++-
 rest-trivial-kotlin/pom.xml                        |   5 +-
 rest-trivial/pom.xml                               |   2 +-
 rest/pom.xml                                       |   2 +-
 servlet-trivial/pom.xml                            |   2 +-
 servlet-vaadin-v08/pom.xml                         |  12 +-
 servlet-vaadin-v10/pom.xml                         | 216 ++++++++++-----------
 servlet-vaadin-vxx/pom.xml                         |  91 +++++++++
 .../servlet/vaadin/HelloVaadinVLatest.java         |  41 ++++
 11 files changed, 270 insertions(+), 131 deletions(-)


[openwebbeans-meecrowave-examples] 11/28: more github render experiments

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 55c4f5c232f834702fc82b4249a69a9076f2aebd
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 21:47:21 2018 +0200

    more github render experiments
---
 rest-trivial/{rest-trivial.adoc => README.adoc} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rest-trivial/rest-trivial.adoc b/rest-trivial/README.adoc
similarity index 73%
rename from rest-trivial/rest-trivial.adoc
rename to rest-trivial/README.adoc
index b895781..7f9b567 100644
--- a/rest-trivial/rest-trivial.adoc
+++ b/rest-trivial/README.adoc
@@ -4,7 +4,7 @@
 
 This example shows probably the smallest JavaEE REST Service.
 It is the REST version of the famous 'Hello World' program.
-It contains just a <<src/main/java/com/superbiz/jaxrs/HelloEndpoint.java,Hello Resource>>.
+It contains just a link:src/main/java/com/superbiz/jaxrs/HelloEndpoint.java[Hello Resource].
 The important parst of this class are the @Path(`"hello")` and the `@GET' annotated method.
 
 Note that the Resource is a CDI bean annotated with `@ApplicationScoped`.


[openwebbeans-meecrowave-examples] 09/28: upgrade to apache-parent 20

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 56833d089123fd03f6e5eb27b0cbc6676a13c3a5
Author: Mark Struberg <st...@apache.org>
AuthorDate: Tue Jul 17 21:35:23 2018 +0200

    upgrade to apache-parent 20
---
 pom.xml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 8249108..36019b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
     <parent>
         <groupId>org.apache</groupId>
         <artifactId>apache</artifactId>
-        <version>18</version>
+        <version>20</version>
     </parent>
 
     <groupId>org.apache.meecrowave</groupId>
@@ -147,6 +147,7 @@
         </plugins>
     </build>
 
+    <!-- Just to disable any accidential deployment to maven.central -->
     <distributionManagement>
         <repository>
             <id>localhost</id>


[openwebbeans-meecrowave-examples] 24/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 442e9342ff39fabfd4f55160f7251f32f084c471
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Sun Feb 3 09:48:46 2019 +0100

    version updates
---
 pom.xml                    | 6 +++---
 servlet-vaadin-v08/pom.xml | 2 +-
 servlet-vaadin-v10/pom.xml | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index dcda711..2c6ddd1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -29,7 +29,7 @@
 
     <groupId>org.apache.meecrowave</groupId>
     <artifactId>meecrowave-examples</artifactId>
-    <version>1.2.5-SNAPSHOT</version>
+    <version>1.2.7-SNAPSHOT</version>
 
     <packaging>pom</packaging>
     <name>Apache Meecrowave Examples</name>
@@ -47,7 +47,7 @@
     </modules>
 
     <properties>
-        <meecrowave.version>1.2.5</meecrowave.version>
+        <meecrowave.version>1.2.6</meecrowave.version>
 
         <maven.compiler.target>1.8</maven.compiler.target>
         <maven.compiler.source>1.8</maven.compiler.source>
@@ -57,7 +57,7 @@
         <slf4j.version>1.7.25</slf4j.version>
         <log4j-api.version>2.11.0</log4j-api.version>
 
-        <jacoco.version>0.8.1</jacoco.version>
+        <jacoco.version>0.8.3</jacoco.version>
         <pitest.version>1.4.0</pitest.version>
         <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
 
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 6e02140..a6c2df0 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -31,7 +31,7 @@
     <name>Servlet (Vaadin - V08)</name>
 
   <properties>
-    <vaadin.version>8.6.3</vaadin.version>
+    <vaadin.version>8.6.4</vaadin.version>
   </properties>
 
   <packaging>jar</packaging>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 63854ed..1563fb8 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -34,7 +34,7 @@
   <properties>
     <transpilation.output>${project.build.directory}/build</transpilation.output>
     <!--<vaadin.version>10.0.1</vaadin.version>-->
-    <vaadin.version>12.0.3</vaadin.version>
+    <vaadin.version>12.0.4</vaadin.version>
   </properties>
 
   <pluginRepositories>


[openwebbeans-meecrowave-examples] 14/28: Merge pull request #1 from apache/master

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit 722d7a44649404dd8780c20061f8c9a9c978be2b
Merge: d8b8f30 bdf3ecf
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Mon Jul 23 16:19:12 2018 +0200

    Merge pull request #1 from apache/master
    
    update from origin

 README.adoc                                        | 37 ++++++++-
 mw_bundle_config/README.adoc                       | 17 +++++
 {servlet-vaadin-v08 => mw_bundle_config}/pom.xml   | 63 +++++++++------
 .../main/resources/META-INF/resources/index.html   |  8 ++
 .../src/main/resources/meecrowave.properties       | 20 +++++
 pom.xml                                            | 89 ++--------------------
 rest-trivial/README.adoc                           | 11 +++
 rest-trivial/pom.xml                               | 46 ++++++++++-
 rest/pom.xml                                       | 44 +++++++++++
 servlet-trivial/pom.xml                            | 44 +++++++++++
 servlet-vaadin-v08/pom.xml                         | 40 ++++++++++
 servlet-vaadin-v10/pom.xml                         | 17 +++++
 12 files changed, 324 insertions(+), 112 deletions(-)


[openwebbeans-meecrowave-examples] 26/28: version updates

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit e5c8422d1147c1e826bf248c76aa6b044b61d031
Author: Sven Ruppert <sv...@gmail.com>
AuthorDate: Mon Feb 11 12:37:00 2019 +0100

    version updates
---
 pom.xml                     | 4 ++--
 rest-trivial-kotlin/pom.xml | 2 +-
 servlet-vaadin-v08/pom.xml  | 2 +-
 servlet-vaadin-v10/pom.xml  | 2 +-
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml
index 2c6ddd1..ca5d461 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,8 +62,8 @@
         <pitest-junit5-plugin.version>0.5</pitest-junit5-plugin.version>
 
         <junit4.version>4.12</junit4.version>
-        <junit.jupiter.version>5.1.1</junit.jupiter.version>
-        <junit.platform.version>1.1.1</junit.platform.version>
+        <junit.jupiter.version>5.4.0</junit.jupiter.version>
+        <junit.platform.version>1.4.0</junit.platform.version>
 
     </properties>
 
diff --git a/rest-trivial-kotlin/pom.xml b/rest-trivial-kotlin/pom.xml
index d224a20..653ba2d 100644
--- a/rest-trivial-kotlin/pom.xml
+++ b/rest-trivial-kotlin/pom.xml
@@ -16,7 +16,7 @@
 
     <properties>
         <!--<kotlin.version>1.2.71</kotlin.version>-->
-        <kotlin.version>1.3.11</kotlin.version>
+        <kotlin.version>1.3.20</kotlin.version>
     </properties>
 
     <dependencies>
diff --git a/servlet-vaadin-v08/pom.xml b/servlet-vaadin-v08/pom.xml
index 21ca47e..8f56b32 100644
--- a/servlet-vaadin-v08/pom.xml
+++ b/servlet-vaadin-v08/pom.xml
@@ -31,7 +31,7 @@
     <name>Servlet (Vaadin - V08)</name>
 
   <properties>
-    <vaadin.version>8.6.4</vaadin.version>
+    <vaadin.version>8.7.0</vaadin.version>
   </properties>
 
   <packaging>jar</packaging>
diff --git a/servlet-vaadin-v10/pom.xml b/servlet-vaadin-v10/pom.xml
index 2ffd048..cc75938 100644
--- a/servlet-vaadin-v10/pom.xml
+++ b/servlet-vaadin-v10/pom.xml
@@ -34,7 +34,7 @@
   <properties>
     <transpilation.output>${project.build.directory}/build</transpilation.output>
     <!--<vaadin.version>10.0.1</vaadin.version>-->
-    <vaadin.version>12.0.4</vaadin.version>
+    <vaadin.version>12.0.5</vaadin.version>
   </properties>
 
   <pluginRepositories>


[openwebbeans-meecrowave-examples] 21/28: Merge pull request #4 from elexx/155-kotlin-sample

Posted by st...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwebbeans-meecrowave-examples.git

commit deba8fc80366d9d746be1f19070ff1262d81cca9
Merge: 412f9df a50525c
Author: Mark Struberg <st...@yahoo.de>
AuthorDate: Mon Oct 15 12:01:47 2018 +0200

    Merge pull request #4 from elexx/155-kotlin-sample
    
    add Kotlin based REST sample
    
    txs to elexx for this nice addition!

 pom.xml                                            |   1 +
 rest-trivial-kotlin/README.adoc                    |  11 ++
 rest-trivial-kotlin/pom.xml                        | 154 +++++++++++++++++++++
 .../com/superbiz/jaxrs/HelloFromKotlinEndpoint.kt  |  18 +++
 .../superbiz/jaxrs/HelloFromKotlinEndpointTest.kt  |  30 ++++
 5 files changed, 214 insertions(+)