It's properties resolution in Maven. There are plenty of web pages describing this.
/Anders On Thu, Jan 19, 2023 at 10:01 AM Vilius Šumskas <vilius.sums...@rivile.lt> wrote: > Can you ellaborate a bit how ${project.version} is resolved? I suppose it > is somewhat special parameter? > > -- > Vilius > > -----Original Message----- > From: Anders Hammar <and...@hammar.net> > Sent: Wednesday, January 18, 2023 8:45 PM > To: Maven Users List <users@maven.apache.org> > Subject: Re: how to correctly specify Maven child dependency version for CI > > I believe this is handled by Flatten Maven plugin (during build) and could > have been improved in a release after that text was written. If ${revision} > is resolved for dependency versions then I guess there is no problem. It's > like you hard-coding it. ${project.version} on the other hand will IIRC not > be resolved and then handled in the standard way by Maven. > > /Anders > > On Wed, Jan 18, 2023 at 12:13 AM Vilius Šumskas <vilius.sums...@rivile.lt> > wrote: > > > Hello, > > > > just wondering if information in > > https://maven.apache.org/maven-ci-friendly.html#dependencies still > > stands regardng sub-module versions? Specifically this sentence: > > „The usual way of defining dependencies and their appropriate versions > > has been to use ${project.version} and this has not been changed.“ and > > later: > > „If you try to use ${revision} instead of ${project.version} your > > build will fail.“ > > > > I’ve just accidently made a project where I have use ${revision} > > everywhere, including dependencies between childs themselves, and it > > builds without errors. Maybe this was improved in recent Maven > > versions and is no longer actual? > > > > -- > > Best Regards, > > > > Vilius Šumskas > > Rivile > > IT manager > > > > >