Re: [Resend due to MS formatting Issues] GitLab CI/CD / GitLabRunner Pipelines: Stages versus Maven Lifecycle (GitLab issue #243078)

Tamás Cservenák <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.maven.user
Message-ID <CAPLpRQJeJ43btER3sH9h=FdxvpzwdsFr5ooiFx+KLJHLHPjkdA@mail.gmail.com>
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 <[email protected]> wrote:
>
> Tamás Cservenák <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.