FileNotFoundException: .m2/repository/.meta/p2-artifacts.properties #1650
Replies: 5 comments 4 replies
-
Please note that m2 local repository is not safe to share between different processes! beside this, you can try to run the build with |
Beta Was this translation helpful? Give feedback.
-
i wasn't aware of this.
i'll add that to our build and get back with the error message when it happens again Thank you |
Beta Was this translation helpful? Give feedback.
-
@laeubi does that help?
|
Beta Was this translation helpful? Give feedback.
-
Actually there is none. As mentioned it is generally not safe to share a maven repository if they share the same artifacts and this is what you are seeing here.
|
Beta Was this translation helpful? Give feedback.
-
Basically i get your point, but i'm wondering that even in the official docker image describes mounting the local .m2 folder as a method for "The local Maven repository can be reused across containers" here under "Reusing the Maven local repository". And "Packaging a local repository with the image" was currently not too successful, probably because "dependency:resolve" does not resolve target platform (and maybe other) artifacts needed for the build in a tycho context - and of course add's another layer of complexity for the image creation and managing. I'm on the other side wondering why the build(s) do write/modify/change the maven artifacts below the .m2/repository folder when building/running tests. For my understanding they should just use/read them after they have been downloaded for the first time and then maybe "do their things" below the their module's target folders .... Thank you for your comments! |
Beta Was this translation helpful? Give feedback.
-
Hi,
since upgrading to tycho 3 we occassionally see the following error in our builds:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:3.0.0:validate-classpath (default-validate-classpath) on project com.godyo.p4.workflow: Execution default-validate-classpath of goal org.eclipse.tycho:tycho-compiler-plugin:3.0.0:validate-classpath failed: java.io.FileNotFoundException: /p4/.m2/repository/.meta/p2-artifacts.properties (No such file or directory) -> [Help 1]
The builds run in docker containers with the .m2 folder of the builds server mounted to /p4/.m2/ in the containers.
It seems to me this happens when there are many parallel builds running - but not every time or reproducible.
Has anyone seen this kind of error too or has an idea what could cause this kind of error message?
Thanks.
Bye Peter
Beta Was this translation helpful? Give feedback.
All reactions