#multi module maven project and dagger

1 messages · Page 1 of 1 (latest)

primal elk
#

I wonder how would be best way to use dagger with maven multi modules.
In my case I have many many maven modules (+100) even different sub-levels

I split the modules as "components" so I can build, unit/integration test separately.

some modules have dependencies to others.

I wonder how I can build each "component" in a separate container in dagger and in parallel(if possible) but then those that have dependencies to others are able to fetch them. I tought of using the cacheVolume and the .m2 so I do mvn install to ensure the pkg is uploaded there, so next maven module can pull it from there, but in a clean dagger engine and remote cache not sure if this approach is going to work, is the cloud cache also publishing the cacheVolumes? not sure if you guys already had this problem and how you solved it.

Imagine the case you only modified code of moduleB, and moduleB have dependency of moduleA, what I would expect is that I don't need to build moduleA, I just can pull the cache (.m2 packages?)