Thats the general idea in fact:
1st job: mvn install
then "carry over local repo"
2nd and other jobs: work a top of prepopulated and installed from 1st
job artifacts, running IT-like tests against them.

On Tue, Jul 1, 2025 at 12:09 PM Tamás Cservenák <ta...@cservenak.net> wrote:
>
> Library is here:
> https://github.com/maveniverse/mima/tree/main/demo/library-maven-plugin
>
> And library is NOT part of the "main build" (the demo directory at top
> level is not part  of build).
>
> Basically what happens:
> 1st job, top leve: mvn install (again demo is not part of upper level)
> 2nd and rest of jobs: _copy local repo from 1st build: it has all the
> deps and installed built artifacts_ and then mvn -f demo verify
>
> T
>
>
> On Tue, Jul 1, 2025 at 12:03 PM Nils Breunese <n...@breun.nl> wrote:
> >
> > Tamás Cservenák <ta...@cservenak.net> wrote:
> >
> > > Does not have to, for example I usually do something like this:
> > > https://maveniverse.eu/blog/2024/09/07/very-simple-ci-setup/
> > >
> > > True, this "carry over" idea works IF you are good with
> > > (built/installed) artifacts, as basically all I do is carry local repo
> > > from one job to another.
> > >
> > > For example, IT matrix runs like this, as explained.
> >
> > I’m trying to understand how this setup works, but I don’t really get it 
> > yet. Can you point out what the key is to making sure that the ‘Verify / 
> > Test’ jobs don’t build the artifacts that were already built in the ‘Verify 
> > / Build’ job again?
> >
> > Looking at 
> > https://github.com/maveniverse/mima/actions/runs/15862328745/job/44722206227
> >  for instance I see the following output:
> >
> > [INFO] --- compiler:3.14.0:compile (default-compile) @ library ---
> > [INFO] Recompiling the module because of changed source code.
> > [INFO] Compiling 1 source file with javac [debug release 8] to 
> > target/classes
> >
> > So it does like there is still compilation happening in this `Verify / 
> > Test` job?
> >
> > Nils.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to