Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 358060 - .svn folders appearing in target/classes/ after updating module from SVN
Summary: .svn folders appearing in target/classes/ after updating module from SVN
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: m2e (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-19 03:20 EDT by Victor Homyakov CLA
Modified: 2021-04-19 13:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Homyakov CLA 2011-09-19 03:20:00 EDT
Build Identifier: 20110615-0604

After some SVN activity (commit changes, update Maven module from SVN) .svn folders (with its content) from src/main/java/ are appearing in target/classes/ (and in resulting jar artifact), and .svn from src/test/java/ in target/test-classes/, respectively.

Installation details: Eclipse 3.7 with plugins m2e 1.0.0.20110607-2117 and Subversive SVN Team Provider 0.7.9.I20110602-1700.

Reproducible: Sometimes

Steps to Reproduce:
(all steps are performed in Eclipse, no other command-line/GUI actions)
1. Check out Maven module from SVN. Import as Maven project.
2. Change some files. Commit to SVN.
3. Update project from SVN.

It's hard to detect, because it is not visible from Eclipse, it can be detected only when inspecting target folder in file manager or when size of artifacts is grown enormously.
Comment 1 Victor Homyakov CLA 2011-09-19 03:54:33 EDT
.svn folders are already present after import (on the step 1) and always reappearing after mvn clean + clean + build.

After adding .svn to Preferences->Java->Compiler->Building->Filtered resources folders are still appearing, but without files (i.e. .svn with subfolders, but without files).
Comment 2 Igor Fedorenko CLA 2011-09-19 11:22:52 EDT
FYI, we (m2e developers) do not currently use subversive and will not be able to attend to this problem any time soon unless somebody provides a quality patch (we do prioritize review of submitted patches).
Comment 3 Victor Homyakov CLA 2011-09-20 04:47:53 EDT
I think this problem is more common, and is not related to just Subversive.

Please read comments to other tickets: https://bugs.eclipse.org/bugs/show_bug.cgi?id=284309#c1 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=320927#c7 - the .svn resources should be ignored by maven builder because they are marked as team private, not because of their Subversive-specific names.

From reading above mentioned tickets (284309, 320927) I think the similar problem was in Java builder (and is successfully resolved, because in our non-Maven projects .svn is never appearing in build folders).
Comment 4 Igor Fedorenko CLA 2011-09-20 08:29:42 EDT
I was not suggesting the problem is specific to svn. Still, we are not affected by this problem (we currently use git for all our opensource and commercial work), so investigating and fixing this problem is not going to be high on our priority list. In other words, somebody will have to provide a quality patch if this problem is to be addressed any time soon.
Comment 5 Igor Fedorenko CLA 2013-09-29 09:17:58 EDT
closing old/stale bugreports
Comment 6 Denis Roy CLA 2021-04-19 13:22:46 EDT
Moved to https://github.com/eclipse-m2e/m2e-core/issues/