Skip to content

Conversation

tisonkun
Copy link
Member

@tisonkun tisonkun commented Aug 31, 2023

This closes #94.

But not exactly, cause Maven plugin inheritance (under multi-module project) is far more complicated then I ever think of.

For example, this patch works well if you configure the plugin in the parent module and run mvn hawkeye:check. But what if you want to bind it with VERIFY phase? The plugin will be inherited into all of the children modules and they will resolve relative path incorrectly. (Although we can support skip and skip at all the children modules as we do for the exec goal under the root pom.xml file in this project.)

We should spend some time to investigate what is the proper best practice here. And this PR serves as a reference instead of a mergeable patch.

cc @spencercjh

Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
Signed-off-by: tison <wander4096@gmail.com>
@tisonkun tisonkun changed the title fix: HawkEye Mojos should be aggregators feat(maven): improve experience for multimodule project Sep 1, 2023
@tisonkun tisonkun merged commit 4605d93 into korandoru:main Sep 1, 2023
@tisonkun tisonkun deleted the aggregator branch September 1, 2023 01:50
@spencercjh
Copy link

That's great. Learned a lot from your changes. 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor the Maven plugin as an aggregator plugin
2 participants