Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Eclipse seemingly deleting and recreating "target" directory for one project every second

> -----Original Message-----
> From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-
> bounces@xxxxxxxxxxx] On Behalf Of KARR, DAVID
> Sent: Tuesday, August 28, 2012 10:31 AM
> To: m2e-users@xxxxxxxxxxx
> Subject: [m2e-users] Eclipse seemingly deleting and recreating "target"
> directory for one project every second
> 
> In this workspace that I created a couple of days ago, I have a handful
> of small Maven projects.  Eclipse is doing something strange to one of
> them.  I'm seeing the "target" directory disappearing and reappearing
> in the Package Explorer a couple of times per second, which is getting
> really annoying to look at.  It's not doing this to any of the other
> projects.  When I view the project directory from the shell, I don't
> see the modtime on the "target" directory changing, nor do I ever see
> it not present.

I think I figured out what was partially responsible for this, but I'm not sure how it got into this state, or why it was really causing the symptom.

I noticed that the project had a resource filter for any name that matches "target".  That immediately jumped out at me.  I removed that, and it fixed the problem.  None of my other Maven projects had this filter, or the symptom.  I think it's pretty unlikely that I added this filter, but I suppose it's possible.  Even if I did, the effect of the filter shouldn't have produced this symptom.  I should have never seen the "target" folder.  It seems like there is a multiple personality in place here.  One part was filtering the resource, and another was bringing it back immediately, rinse and repeat.



Back to the top