Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude MLR by default #146

Open
fjakop opened this issue Jan 8, 2021 · 0 comments
Open

Exclude MLR by default #146

fjakop opened this issue Jan 8, 2021 · 0 comments

Comments

@fjakop
Copy link

fjakop commented Jan 8, 2021

Context

  • jGitVer 1.7.0
  • maven 3.6.3

Problem description:

The README states a common pitfall when hosting the maven local repo (MLR) below the root folder of the reactor execution (i.e. where the pom.xml is). https://github.com/jgitver/jgitver-maven-plugin#build-fail-because-all-project-plugins--dependencies-resolve-to-the-same-version

The recommended workaround is to 'configure jgitver (using .mvn/jgitver.config.xml) to ignore your subdirectory MLR'.

IMHO this could be done automatically by jGitVer, since the location of MLR should be known to jGitVer during execution.

In my special use case I'm using Gitlab CI with docker runners, which by default put the MLR to the root directory (rootdir/.m2/repository) after checking out a repo and starting a maven build.

I can see no use case, where the MLR folder should not be excluded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants