-
Notifications
You must be signed in to change notification settings - Fork 73
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Error when starting JavaFXApplication from eclipse #641
Comments
Yes. The version information is created in the validate build step (it creates the buildNumber variable). Obviously, your eclipse did not run the validate step which led to this issue. |
Is there a way to detect if no version informations are available? |
We should just make sure that the validate phase is run. Actually, I don't know why it isn't because the Maven Build Lifecycle says that validate should be run before package (which obviously happens on the console). Maybe it is a problem of how eclipse executes a maven build? |
I'm not sure that the normal "Run as Java Application" operation in eclipse uses the complete Maven Build Lifecycle, because as far as I know there are other operations to do this, namely "Run as Maven (build, package, ...)". |
I guess it's rather an issue of eclipse (or how to use a Maven project in eclipse) than an issue of our software. |
I agree with you, but I don't think it's good to see an exception if you want to run POL 5 inside the for development suggested IDE, which is eclipse, as far as I understand the formatter etc. instructions inside the |
That's true. However, I cannot help because I'm using Intellij IDEA myself. |
Not sure if this helps, but after asking google I found out, that it's possible to define default values that are loaded if the property wasn't found. |
We could set defaults. But in the end this doesn't solve the problem (we need to make sure that the validate build step is called and adjust the eclipse description accordingly). |
I just go a stacktrace when I tried to start JavaFXApplication from eclipse as an Java Application:
Afterwards I've tried to build the application with maven (
mvn clean package
) and run it via the shell-script in the dist-target zip archive, which worked. Interestingly I got JavaFXApplication to start in eclipse afterwards. Has anyone a clue why this happened?The text was updated successfully, but these errors were encountered: