Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 359522

Summary: Dependency resolution from workspace marks pom.xml:s with error "No such directory or file found", if user do not have write access to /tmp/fakerepo
Product: z_Archived Reporter: Tomi Pakarinen <tomi.pakarinen>
Component: m2eAssignee: Project Inbox <m2e.core-inbox>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: igor
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Tomi Pakarinen CLA 2011-09-30 03:11:59 EDT
This can happen in shared environment.
Comment 1 Igor Fedorenko CLA 2011-09-30 07:15:10 EDT
This does not provide enough information to troubleshoot the problem. Please provide complete standalone sample project and steps to reproduce the problem.
Comment 2 Tomi Pakarinen CLA 2011-09-30 07:20:55 EDT
1. login as root
2. make sure /tmp/fakerepo do not exists already
3. open eclipse
4. create maven projects using m2e 
   test:project-1
   test:project-2
5. add dependency from project-2 to test:project-1

6. Login as normal user (without root rights)
7. open eclipse
8. create maven projects using m2e 
   test:project-1
   test:project-2
9. add dependency from project-2 to test:project-1
10. now project-2's pom.xml has error "no such directory of file found", because root user owns folder /tmp/fakerepo and normal user do not have rights to it.
Comment 3 Igor Fedorenko CLA 2011-09-30 07:50:14 EDT
this does not explain why m2e needs to access /tmp/fakerepo
Comment 4 Tomi Pakarinen CLA 2011-09-30 09:17:42 EDT
right .. I dug up this a bit. seems that problem is actually in m2e-extras not in core 
https://github.com/sonatype/m2eclipse-extras/blob/master/org.sonatype.m2e.mavenarchiver/src/org/sonatype/m2e/mavenarchiver/internal/AbstractMavenArchiverConfigurator.java#L640
Comment 5 Igor Fedorenko CLA 2011-09-30 09:39:58 EDT
This is why we always ask for complete standalone example project and steps to reproduce the problem ;-)
Comment 6 Denis Roy CLA 2021-04-19 13:26:55 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/