You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/09/16 06:42:15 UTC

[isis] branch master updated: ISIS-2427: switching Vaadin Demo back to dev. mode, and have prod. mode as a maven profile, to be activated using '-Pproduction'

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

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new e1fa5ab  ISIS-2427: switching Vaadin Demo back to dev. mode, and have prod. mode as a maven profile, to be activated using '-Pproduction'
e1fa5ab is described below

commit e1fa5abc3567da227b4ce86d10a1b8b6f88a78a8
Author: Andi Huber <ah...@apache.org>
AuthorDate: Wed Sep 16 08:41:55 2020 +0200

    ISIS-2427: switching Vaadin Demo back to dev. mode, and have prod. mode
    as a maven profile, to be activated using '-Pproduction'
    
    prod. mode still is not working (missing some UI components)
---
 examples/demo/vaadin/pom.xml | 41 +++++++++++++++++++++++++++++++++++++++--
 1 file changed, 39 insertions(+), 2 deletions(-)

diff --git a/examples/demo/vaadin/pom.xml b/examples/demo/vaadin/pom.xml
index ce0bf56..a619a14 100644
--- a/examples/demo/vaadin/pom.xml
+++ b/examples/demo/vaadin/pom.xml
@@ -186,6 +186,45 @@
 				</plugins>
 			</build>
 		</profile>
+		
+		<profile>
+            <!-- Vaadin Production mode is activated using -Pproduction -->
+            <id>production</id>
+            <properties>
+                <vaadin.productionMode>true</vaadin.productionMode>
+            </properties>
+
+            <dependencies>
+                <dependency>
+                    <groupId>com.vaadin</groupId>
+                    <artifactId>flow-server-production-mode</artifactId>
+                </dependency>
+            </dependencies>
+
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.springframework.boot</groupId>
+                        <artifactId>spring-boot-maven-plugin</artifactId>
+                        <configuration>
+                            <jvmArguments>-Dvaadin.productionMode</jvmArguments>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>com.vaadin</groupId>
+                        <artifactId>vaadin-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>build-frontend</goal>
+                                </goals>
+                                <phase>compile</phase>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
 
 		<profile>
 			<id>deploy-to-docker-io</id>
@@ -195,10 +234,8 @@
 				</property>
 			</activation>
 			<properties>
-				<vaadin.productionMode>true</vaadin.productionMode>
 			</properties>
 			<dependencies>
-				<!-- add flavor specific here -->
 			</dependencies>
 			<build>
 				<plugins>