On Sat, 2026-01-17 at 12:42 -0800, Ryan Schmitt wrote:
> What's the best way to build core and client in a single Maven
> reactor? I
> set up a pom.xml that lists them both as modules, so the directory
> structure is:
> 
> - hc <-- :aggregator
> - hc/core <-- :httpcore5-parent
> - hc/client <-- :httpclient5-parent
> 
> This mostly works, but it has two problems. The first is that when I
> just
> build core or client, Maven emits a warning saying that my project is
> malformed, because it's expecting `hc/` to contain `httpcomponents-
> parent`,
> rather than my aggregator POM. The second issue is that I need to
> pass
> `-Dhttpcore.version=5.5-alpha1-SNAPSHOT` in order to link the
> httpclient5
> projects to the reactor build of httpcore5.
> 
> For now, I'm ignoring the warnings, and I have a `.mvn/maven.config`
> file
> with the following contents:
> 
> --threads=2C
> -Drat.skip
> -Dcheckstyle.skip
> -Dhttpcore.version=5.5-alpha1-SNAPSHOT
> 
> Like I said, this works pretty well (it builds and tests all of
> httpcomponents in 45 seconds), but it feels hacky. It's also not
> directly
> reusable by other contributors. Is there a better way of doing this?
> 

Honestly I cannot say much here. Whenever I encountered a situation
when I needed to run a snapshot of client with a snapshot of core, I
just imported them both into IntelliJ and ran my tests there.

Oleg 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to