Vaadin 14 package-for-production execution fails
See original GitHub issueWhen trying to build my Spring-Boot Vaadin application for production it always fails with following error:
`Failed to execute goal com.vaadin:vaadin-maven-plugin:14.0.4:package-for-production (default-cli) on project vaadin-demo-bakery-app: Execution default-cli of goal com.vaadin:vaadin-maven-plugin:14.0.4:package-for-production failed: An import that ends with ‘bower_components/vaadin-cookie-consent/src/vaadin-cookie-consent.html’ cannot be resolved: the corresponding file ‘D:\Git\vaadin-demo-bakery-app\target\frontend\bower_components\vaadin-cookie-consent\src\vaadin-cookie-consent.html’ was not found. Double check the corresponding import and verify the following:
- the import string is correct
- the file imported is either present in ‘frontend://’ directory of the project or in one of the project WebJar dependencies or in one of the regular jar dependencies
- if the file is present in one of the regular jar dependencies, it should be located in
META-INF/resources/frontend
directory in the jar`
Vaadin Version 14.0.5, Java 8, Spring Boot 2.1.3.RELEASE
Also tried to build the current vaadin bakery app (https://github.com/igor-baiborodine/vaadin-demo-bakery-app) which also fails with the same error.
Vaadin Version 14.0.4 , Java 8, Spring Boot 2.1.7.RELEASE
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top GitHub Comments
Since Vaadin 14.0.9 and 14.0.10 the problem occurs again, please reopen the issue. I am using Spring Boot: 2.2.0, Java JDK 13.0.1 and NPM 12.X.
You can reproduce the problem by using my artefact. The source code and build is documented on GitHub. Please see my links:
The problem occurs on my local Windows machine, Google Cloud Compute Engine (Ubuntu 19.04) and inside a Docker Container (Ubuntu 19.04) running on Google Cloud Run.
In the console you will see:
In the browser you can see also:
Switching back to Vaadin 14.0.8 solves the problem.
I am able to reproduce in Vaadin 14.0.11