-
Notifications
You must be signed in to change notification settings - Fork 4
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
IllegalStateException: There seems to be hard coded directories from the development machine #5
Comments
Thanks for mentioning this bug. I will have a look at it tomorrow. If you have the time and want to contribute feel free to open a pull request to fix this behavior. Thx, Jürgen |
@McPringle After adding maven wrapper to the project does this solve your issue on macOS? |
I'm still investigating. I use Maven Wrapper all the time to make sure, that my projects have a reproducible build on every machine. Especially when working with open-source projects, where it is very likely that every developer has a different version of Maven installed. |
I guess I've found the issue. The file "flow-build-info.json" containing my local machine paths should'nt be included in the production build. Inside pom.xml it's marked for exclusion however its still inside the target folder. |
When I build a version on my own, I get the same error message but with my home folder. But my home folder obviously exists on my machines, so the message is a little bit more descriptive now: On macOS
On Windows
Somehow when building Vaadin Trix Editor, the source path of the build system finds its way into the distribution file and causes problems loading CSS files in the project, that uses the Vaadin Trix Editor. As you can see, I tried it on Windows and macOS. |
Kind of "works on my machine"... lol |
It might have to do with Vaadins development mode vs. production mode. When I do build in development mode, it will succeed: When I do a build in production mode, it will fail:
Did you do the release build in production mode? |
Doing a production build with |
It looks like (I'm not sure) that you by accident created a release build in development mode which made your development directories part of the released JAR file. That's why my development directory is part of the JAR file of my test, too. Because I did a |
Do we really need the production profile here? |
My idea was that the development profile might be the reason why the JSON file containing the path to the local development folder was part of the deployment. But I have to add that I never created a stand-alone Vaadin component. |
When I use v1.0.1 from Vaadin Addons Maven directory:
Crazy error message when running on macOS... :-)
The text was updated successfully, but these errors were encountered: