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

Concurrent access to the local repository #14

Closed
ppalaga opened this issue Oct 2, 2019 · 2 comments
Closed

Concurrent access to the local repository #14

ppalaga opened this issue Oct 2, 2019 · 2 comments
Labels
wontfix This will not be worked on

Comments

@ppalaga
Copy link
Contributor

ppalaga commented Oct 2, 2019

Creating this issue to discuss the strategy, because this will hit us sooner or later. It looks like the stock Maven still does not synchronize the access to the local repo. Due to this, two threads or processes can write into the same file which may result in a corrupted data.

https://issues.apache.org/jira/browse/MNG-2802 https://github.com/takari/takari-local-repository

@gnodet
Copy link
Contributor

gnodet commented Oct 2, 2019

Right, I think reusing the takari locking mechanism should be fine. Fwiw, I don't think there is a problem with multithreading in our case, as a deamon only executes a single build at a time, and afaik the maven build system synchronizes the artifacts downloads in a single build.

@gnodet
Copy link
Contributor

gnodet commented Oct 2, 2019

So I think it should just be a matter of adding the dependency:

  <groupId>io.takari.aether</groupId>
  <artifactId>takari-local-repository</artifactId>
  <version>0.11.2</version>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants