-
Notifications
You must be signed in to change notification settings - Fork 206
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
Boot Dashboard cannot start app when Eclipse project name contains spaces #403
Comments
I will investigate / debug this issue and see if we can improve on this somehow but... please... do not use spaces in your project names you are really asking for problems. It is kind of a known limitation already. For example when I try to create a project using spaces in its name via the 'New Spring Starter' project wizard.... the wizard will refuse to accept a project name with spaces in it as valid input and won't let you do that. I will however try and reproduce the issue by importing your sample project and then try to debug exactly where it goes wrong, then maybe try to fix it so it works better. |
Able to reproduce it. I called my project 'demo with spaces' (not sure about the square brackets in this so to make sure I only dealing with one problem at a time I got rid of them). When I look at the 'command line' that was used to launch the app in the debug view it shows me this:
The interesting part is this:
So I think that somehow that argument is being incorrectly split up into multiple arguments because it has spaces. That causes the 'with' to treated as a separate argument and then interpreted incorrectly as the name of the main class. |
Thank you for the quick reply (and fix)!! |
Boot Dashboard (STS 4.5) cannot start app when the Eclipse project name contains spaces.
Take, for instance, the attached demo project, with the following pom.xml snippet:
If we import it into Eclipse as an existing Maven project, and use the name (instead of artifactId) to set the project name, then this name is shown in Boot Dashboard as "demo [BREAKS BOOT DASHBOARD]".
This name breaks the init process with the following message:
For some reason, the main class is not taken into account...
This error did not happen with previous STS versions.
demo-project.zip
The text was updated successfully, but these errors were encountered: