grisha9 / gmaven-plugin

Apache License 2.0
11 stars 0 forks source link

Automatic rebuild after configuration import before running run/test configuration #11

Open kriegaex opened 6 months ago

kriegaex commented 6 months ago

After manual or automatic GMaven import, no re-build is issued when launching a run/test configuration. This would be OK if the Maven configuration was imported before and has not changed in any detail relevant to compilation since then.

At the moment, I have to manually rebuild the project for any config changes to become effective.

Never having built any IDEA plugins, I am not sure how this works internally, but I guess that probably some kind of Maven import listener detects the changes in the internal Maven plugin, marking the build as "dirty" (needs rebuild) if the Maven config has changed.

Created as a separate issue due to https://github.com/grisha9/gmaven-plugin/issues/7#issuecomment-2053709900.

First I will need to figure out how this works in the bundled maven plugin. I think it's better to do this in another issue.

grisha9 commented 3 months ago

I researched this issue and came to the conclusion that if you change these parameters manually through the UI interface, then the rebuild will not happen either. I think this is more likely a bug for the idea aspectj plugin. And the idea also does not have any actions for resetting the build cache. I also asked this question in the support chat, but did not receive any answers. The only solution I could come up with was to execute a maven clean task when changing aspectJ compiler parameters, but this looks very redundant