Skip to content
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

Run configuration 'Before launch' does not work #1259

Closed
alerosmile opened this issue Nov 7, 2023 · 4 comments · Fixed by #1262
Closed

Run configuration 'Before launch' does not work #1259

alerosmile opened this issue Nov 7, 2023 · 4 comments · Fixed by #1262
Labels
bug Something isn't working
Milestone

Comments

@alerosmile
Copy link
Contributor

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

image

@fbricon
Copy link
Contributor

fbricon commented Nov 7, 2023

Looks like a bug in Quarkus Tools

@fbricon fbricon added the bug Something isn't working label Nov 7, 2023
@alerosmile
Copy link
Contributor Author

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.

@angelozerr
Copy link
Contributor

Is there any chance to have a PR please?

@alerosmile
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants