Starting app in production mode

Hello, i try to run my app via

mvn spring-boot:run -Dvaadin.productionMode

in vaadin production Mode. In the maven-settings.xml I have added my proxy.

At first I became the error:

[INFO]
 Installing node version v8.11.1
[INFO]
 Downloading https://nodejs.org/dist/v8.11.1/win-x64/node.exe to D:\Users\
Melzer\VaadinWorkspace\statisticRepo\target\cache\node-v8.11.1-win-x64.exe
[INFO]
 No proxies configured
[INFO]
 No proxy was configured, downloading directly
[INFO]
 ------------------------------------------------------------------------
[INFO]
 BUILD FAILURE
[INFO]
 ------------------------------------------------------------------------
[INFO]
 Total time:  07:01 min
[INFO]
 Finished at: 2018-12-10T10:50:20+01:00
[INFO]
 ------------------------------------------------------------------------
[ERROR]
 Failed to execute goal com.vaadin:vaadin-maven-plugin:12.0.0:package-for
-production (default) on project statistic-tool: Execution default of goal com.v
aadin:vaadin-maven-plugin:12.0.0:package-for-production failed: Failed to downlo
ad node: Could not download Node.js from: https://nodejs.org/dist/v8.11.1/win-x6
4/node.exe: Could not download https://nodejs.org/dist/v8.11.1/win-x64/node.exe:
 Connect to nodejs.org:443 [nodejs.org/104.20.22.46, nodejs.org/104.20.23.46]
 fa
iled: Connection timed out: connect -> [Help 1]

If I use instead D:\Users\Melzer\VaadinWorkspace\statisticRepo>mvn spring-boot:run -Dvaadin.produ ctionMode -DproxySet=true -Dhttp.proxyHost=*** -Dhttpp.proxyPort=*** -DproxySet=true -Dhttps.proxyHost=*** -Dhttps.proxyPort=***, the node js installation is Ok but then I get the next error:

[ERROR]
 Failed to execute goal com.vaadin:vaadin-maven-plugin:12.0.0:package-for
-production (default) on project statistic-tool: Execution default of goal com.v
aadin:vaadin-maven-plugin:12.0.0:package-for-production failed: Failed to instal
l required frontend dependencies: 'yarn install' failed. org.apache.commons.exec
.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]

[ERROR]

And this is my pom.xml:

<?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">
	<modelVersion>4.0.0</modelVersion>

	<groupId>de.sit</groupId>
	<artifactId>statistic-tool</artifactId>
	<version>0.0.1-SNAPSHOT</version>
	<packaging>jar</packaging>

	<name>statistic-tool</name>
	<description>Demo project for Spring Boot</description>

	<properties>
		<maven.compiler.source>1.8</maven.compiler.source>
		<maven.compiler.target>1.8</maven.compiler.target>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

		<!-- Plugins -->
		<frontend.maven.plugin.version>1.6</frontend.maven.plugin.version>
		<maven.war.plugin.version>3.1.0</maven.war.plugin.version>
		<maven.resources.plugin.version>3.0.2</maven.resources.plugin.version>
		<maven.clean.plugin.version>3.0.0</maven.clean.plugin.version>
		<maven.surefire.plugin.version>2.21.0</maven.surefire.plugin.version>

		<gatling.version>2.3.1</gatling.version>
		<gatling-plugin.version>2.2.4</gatling-plugin.version>
		<scala-maven-plugin.version>3.3.2</scala-maven-plugin.version>

		<!-- Frontend -->
		<node.version>v8.1.2</node.version>
		<yarn.version>v0.27.5</yarn.version>
		<buildtools.directory>build-tools</buildtools.directory>

		<!-- Dependencies -->
		<vaadin.version>12.0.0</vaadin.version>
	</properties>

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.0.RELEASE</version>
	</parent>

	<pluginRepositories>
		<!-- Repository needed for prerelease versions of Vaadin -->
		<pluginRepository>
			<id>vaadin-prereleases</id>
			<url>https://maven.vaadin.com/vaadin-prereleases</url>
		</pluginRepository>
	</pluginRepositories>

	<repositories>
		<!-- Repository needed for prerelease versions of Vaadin -->
		<repository>
			<id>vaadin-prereleases</id>
			<url>https://maven.vaadin.com/vaadin-prereleases</url>
		</repository>
		<!-- Repository used by many Vaadin add-ons -->
		<repository>
			<id>Vaadin Directory</id>
			<url>http://maven.vaadin.com/vaadin-addons</url>
		</repository>
	</repositories>

	<dependencyManagement>
		<dependencies>
			<dependency>
				<groupId>com.vaadin</groupId>
				<artifactId>vaadin-bom</artifactId>
				<version>${vaadin.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

	<dependencies>
		<dependency>
			<groupId>com.vaadin</groupId>
			<artifactId>vaadin-spring-boot-starter</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-devtools</artifactId>
			<optional>true</optional>
		</dependency>

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-test</artifactId>
			<scope>test</scope>
		</dependency>

		<!-- added by Ines -->
		<dependency>
			<groupId>jdom</groupId>
			<artifactId>jdom</artifactId>
			<version>1.0</version>
		</dependency>

		<dependency>
			<groupId>lotus-notes</groupId>
			<artifactId>notes</artifactId>
			<version>9</version>
			<scope>system</scope>
			<systemPath>C:\Program Files\IBM\Domino\jvm\lib\ext\Notes.jar</systemPath>
		</dependency>

		<!-- mvn install:install-file -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc42 
			-Dversion=6.0.8112 -Dpackaging=jar -Dfile=D:\libraries\sqljdbc42-6.0.8112.jar -->
		<dependency>
			<groupId>com.microsoft.sqlserver</groupId>
			<artifactId>sqljdbc42</artifactId>
			<version>6.0.8112</version>
		</dependency>

	</dependencies>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>${maven.resources.plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-war-plugin</artifactId>
					<version>${maven.war.plugin.version}</version>
				</plugin>
				<plugin>
					<groupId>com.vaadin</groupId>
					<artifactId>vaadin-maven-plugin</artifactId>
					<version>${vaadin.version}</version>
				</plugin>
				<plugin>
					<groupId>com.github.eirslett</groupId>
					<artifactId>frontend-maven-plugin</artifactId>
					<version>${frontend.maven.plugin.version}</version>
					<configuration>
						<nodeVersion>${node.version}</nodeVersion>
						<yarnVersion>${yarn.version}</yarnVersion>
					</configuration>
					<executions>
						<execution>
							<id>install-node-and-</id>
							<goals>
								<goal>install-node-and-yarn</goal>
								<goal>yarn</goal> <!-- runs 'install' by default -->
							</goals>
							<configuration>
								<npmInheritsProxyConfigFromMaven>true</npmInheritsProxyConfigFromMaven>
								<yarnInheritsProxyConfigFromMaven>true</yarnInheritsProxyConfigFromMaven>
								<bowerInheritsProxyConfigFromMaven>true</bowerInheritsProxyConfigFromMaven>
								<workingDirectory>${buildtools.directory}</workingDirectory>
							</configuration>
						</execution>
					</executions>
				</plugin>
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-plugin</artifactId>
					<version>${maven.surefire.plugin.version}</version>
				</plugin>
			</plugins>
		</pluginManagement>

		<plugins>
			<plugin>
				<groupId>org.springframework.boot</groupId>
				<artifactId>spring-boot-maven-plugin</artifactId>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.7.0</version>
				<configuration>
					<source>1.8</source>
					<target>1.8</target>
					<fork>true</fork>
					<executable>C:\Program Files\Java\jdk1.8.0_191\bin\javac</executable>
				</configuration>
			</plugin>

		</plugins>
	</build>

	<profiles>
		<profile>
			<!-- Production mode can be activated with either property or profile -->
			<id>production-mode</id>
			<activation>
				<property>
					<name>vaadin.productionMode</name>
				</property>
			</activation>
			<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>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>
							</execution>
						</executions>
					</plugin>


					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-compiler-plugin</artifactId>
						<version>3.7.0</version>
						<configuration>
							<source>1.8</source>
							<target>1.8</target>
							<fork>true</fork>
							<executable>C:\Program Files\Java\jdk1.8.0_191\bin\javac</executable>
						</configuration>
					</plugin>

					<plugin>
						<groupId>org.springframework.boot</groupId>
						<artifactId>spring-boot-maven-plugin</artifactId>
						<configuration>
							<jvmArguments>-Dvaadin.productionMode</jvmArguments>
						</configuration>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>

I hope you can help me, fixing my problem. Is this just a proxy problem?

The same errors appear for the bakery Starter app.

Or what is a good way to deploy an app on a tomcat?

<plugin>
                    <groupId>com.vaadin</groupId>
                    <artifactId>vaadin-maven-plugin</artifactId>
                    <version>${vaadin.version}</version>
                    <configuration>
						<ignoreMavenProxies>false</ignoreMavenProxies>
					</configuration>
                </plugin>

solves my problem