-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build-frontend fails when file is duplicated in frontend and META-INF/frontend #21008
Comments
It works if you put the resources in
Edit: the parameter is documented here
|
@mcollovati Thanks, I still have to move some things around, but it's a little bit more clear this way. The project was actually a non-spring project, so I tried to move resources according to Table 1 from https://vaadin.com/docs/latest/flow/advanced/loading-resources. I still think there is an issue here, because I had put a file in directories A and B, then the build complained that A/file didn't exist (while it did exist), and I had to delete B/file so that A/file could be found. |
The issue here is that the copy task considers only one folder, but the the piece of code that resolves the import also fallbacks to the META-INF/frontend folder. |
Description of the bug
I have a WAR project that contains the same file in
/src/main/frontend/styles
and/src/main/resources/META-INF/frontend/styles
(because of reasons*)When I run
mvn clean package -Pproduction
it fails with the following errorNote that the file DOES exist.
* Yes, this setup is weird...
Expected behavior
The build should succeed (or it should fail with a different error, currently it complains that an existing file does not exist)
Minimal reproducible example
mvn clean package -Pproduction
mvn clean package -Pproduction
skeleton-starter-flow-24.zip
Versions
The text was updated successfully, but these errors were encountered: