On 7/14/24 10:04 AM, Romain Manni-Bucau wrote:
HiAgree it should be absolute but there is no technical constraint - ultimately it must be known how it resolves. I know on ci it is common to use a relative path to avoid ci specific internal path issues accross os/workers.
I concur. But as I note below, I think most CI environments can address this.
Le dim. 14 juil. 2024 à 09:52, Tamás Cservenák <ta...@cservenak.net> a écrit :
... snip ...
As it is evaluated at maven boot and relative would be calculated against CWD based on invocation (plus, -f modifies it).
As Manni-Bucau noted above, CI workers/runners add some context to consider.
In the case of GitLab, the CI context is populated with many variables that can aid in easily resolving or creating an absolute path. For example, GitLab's CI_* variables are populated and include the CI_PROJECT_DIR variable that can be used to "pin" the absolute path.
I think this is enough to provide the team more information as we drive a path forward.
Thanks for the detailed answer Tamás, and the additional context clarity Manni-Bacau.
Hth T On Sun, Jul 14, 2024, 03:10 Timothy Stone <tst...@petmystone.com> wrote:I help maintain Maven tooling for To Be Continuous, a GitLab CI/CD catalog of pluggable pipeline configurations. There is some discussion on the use of the JVM property, `-Dmaven.repo.local=path' and the note on "Configuring your Local Repository" (see [1]). Initially I was going to post to the user list, but being a development question against the internals of Maven, I thought this a better forum. There is an admonition on the referenced page: /Note: The local repository _must_ be an absolute path./ (emphasis mine) Is this specifically noted for the use of the settings.localRepository only or does the note extend to the use of the JVM property? I searched the GitHub repo for a examples and found numerous uses of relative paths, e.g., `../.repository` and others. Seeking clarification as I could not immediately determine the internal use of `maven.repo.local' property when set. Thanks! Tim [1]https://maven.apache.org/guides/mini/guide-configuring-maven.html#configuring-your-local-repository-- Timothy Stone ============= Some call me ... Tim. Husband, Father, Blogger, OSS, Wargamer, Home Brewer, and D&D Find me on GitLab | GitHub | Linked In | MeWe | GnuPG
-- Timothy Stone ============= Some call me ... Tim. Husband, Father, Blogger, OSS, Wargamer, Home Brewer, and D&D Find me on GitLab | GitHub | Linked In | MeWe | GnuPG
OpenPGP_signature.asc
Description: OpenPGP digital signature