-
Notifications
You must be signed in to change notification settings - Fork 166
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
The Maven <build><directory>
setting ignored by frontend compilation, resulting in error: "Frontend compilation failed"
#6629
Comments
I see that So this comes from dev mode which doesn't know anything about maven and uses the hardcoded values for the build folder and other locations. I don't see how we can fix this generally since as I said maven settings are not involved in dev mode run. |
@denis-anisimov Seems like in your comment you were suggesting a possible workaround. Can you explain more concretely, as I know nothing about this I did find this |
This is actually not a workaround. You should set the I'm not sure which way you run your web app. I guess you are running the app via
There are other ways to set system property value via maven. |
We can solve this issue via saving a parameter in the token file and then read it from the deployment config instead of system property value. |
Tested this with the latest 24.1 snapshot and it works. Maybe because the mentioned frontend files are no longer generated inside the |
For full details including screenshots, see this Stack Overflow page:
https://stackoverflow.com/q/58229664/642706
To summarize:
Edit Vaadin 14.1.0alpha2 web-app project’s POM file to place the
target
build folder in a different place such as a ramdisk.<properties>
element add:<buildDirectory>/Volumes/RamDisk/target</buildDirectory>
<build>
element, add:<directory>${buildDirectory}</directory>
Most of the project is built in the specified location folder, except for:
…both appearing in the default
target
folder rather than the overridden folder location.This results in errors seen on the console:
Apparently some part of the Vaadin build process is not soft-coded for the
target
folder location, and is ignoring the specified override of the defaulttarget
folder location.The text was updated successfully, but these errors were encountered: