开发者

Eclipse or Maven creates bin directory - trouble with .launch files

开发者 https://www.devze.com 2023-04-04 08:51 出处:网络
I have a maven project (main) with two modules (each module has this main project as its parent). Everything works perfect but last week I noticed that I can store the launch configurations from eclip

I have a maven project (main) with two modules (each module has this main project as its parent). Everything works perfect but last week I noticed that I can store the launch configurations from eclipse into regular *.launch files.

So I created a folder under main like : main/conf

where I store all my run configurations (*.launch). Bu开发者_开发百科t after a while I noticed that eclipse or maven creates a bin direcotry under the main project (main/bin) with an exact copy of the main project (including pom.xml and .project file).

The other both projects doesn't have this directory.

The problem is, that eclipse scans the whole direcotry tree for *.launch files and eclipse finds them in main/conf and main/bin/conf.

I thought that the assembly plugin from maven might be the problem and removed that but without any luck. I am not sure if this is a problem with maven because I have teamcity building my jars and on my build agents are no bin direcotries. So it might be a problem with eclipse?

Thanks, Hauke


I've noticed the same thing. The easiest way to suppress them is to great a Resource filter. Right click on your project and open Properties. Then go to Resource -> Resource Filters. Add a Exclude all Folder filter with "All children (recursive)" checked for "bin". I also do the same for "target" to exclude the build directories. Good luck!


Make sure it's already maven project. there should be small M in top left of icon. If not right click on project, configure/convert to maven

now Try right click on the project, maven/'update project'. After that retry removing the bin

0

精彩评论

暂无评论...
验证码 换一张
取 消