redhat-developer/intellij-quarkus

Run configuration 'Before launch' does not work

alerosmile opened this issue · 4 comments

I don't know whether this is a bug in IntelliJ or the Quarkus plugin but the Before launch steps are not executed:

image

Looks like a bug in Quarkus Tools

Probably something here:
MavenRunConfiguration mavenConfiguration = (MavenRunConfiguration) settings.getConfiguration();

The before tasks have to be added to the mavenConfiguration:
mavenConfiguration.setBeforeRunTasks(configuration.getBeforeRunTasks());

Don't know if that's enough but seems to work.

Is there any chance to have a PR please?

I have no knowledge of the architecture of plugin or IntelliJ. I was just playing around and trying to give you some hints. If you think my suggestion is enough then I could create a PR.