Solution to Eclipse Warning with SVN

本文介绍了如何解决Eclipse中SVN导致的资源重复警告问题。提供了三种解决方案:手动排除.svn文件夹、安装m2e插件及在pom.xml中配置排除规则。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Solution to Eclipse Warning with SVN – The Resource is a Duplicate of and Was Not Copied to the Output FolderLeave a comment ?

Problem:
In Eclipse your workspace produces a warning like:
“The resource is a duplicate of src/.svn/entries and was not copied to the output folder entries /s/gen/.svn”

Cause:
Your project in Eclipse is under an external SVN source control.

Solution
方案1:
Manually exclude the .svn folders and files that are causing the issue, by doing the following:
1. Right click on project in the Project Explorer
2. Properties->Java Build Path
3. Click add folder to add any svn folders that are causing the issue.
4. Expand that folder and double click “excluded”.
5. Under the “Exclusion patterns:” click add and browse to the .svn file/folder to exclude.

Repeat this for every svn folder and file which is showing in the workspace warnings.

方案2:
安装maven的eclipse plugin “m2e”.

方案3:
pom中添加如下配置
<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>**/*</include>
				</includes>
				<excludes>
					<exclude>**/.svn/</exclude>
				</excludes>
			</resource>
		</resources>
		<testResources>
			<testResource>
				<directory>src/test/resources</directory>
				<includes>
					<include>**/*</include>
				</includes>
				<excludes>
					<exclude>**/.svn/</exclude>
				</excludes>
			</testResource>
		</testResources>
</build>
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值