KLE
KLE

Reputation: 24159

m2eclipse marking 'target' directory as 'Derived'

I have a Maven Java project, imported using m2eclipse.

The target/ directory is not marked as 'Derived' by m2eclipse.

Problems:

Possibly see post eclipse-ignore-folder

Note: When I set manually the directory to derived, the validation problem doesn't disappear, so that would only be part of the solution...

Question:
Is there something I need to do, so that m2eclipse sets the target/ directory to 'Derived' ?

Upvotes: 7

Views: 2828

Answers (4)

Petr Bodnár
Petr Bodnár

Reputation: 558

I got rid of this problem by writing a custom plug-in KeepTargetDerivedPlugin. As its name suggests, it automatically keeps all target folders derived (unlike the other solutions, which require user action).

Still, e. g. the YA2O's plug-in can be used to mark derived folders of projects which already reside in the given Eclipse workspace.

Upvotes: 3

YA2O
YA2O

Reputation: 101

I have been so annoyed by this problem that I wrote a plugin to solve it. You can get the source and jar from here.

Upvotes: 0

cjstehno
cjstehno

Reputation: 13984

Yeah, that has been around for a while. I wrote a plug-in that allows you to mark directories as "derived" without having to find them all (http://eclipsefrills.sourceforge.net/). It's not great, and you still have to manually run the action to make it work, but it may help.

Odd, though, I have not noticed the problem lately, myself. I wonder if there is some setting in the preferences that takes care of this now.

Good luck.

Upvotes: 5

Aaron Digulla
Aaron Digulla

Reputation: 328604

Yes: open a bug report :)

Upvotes: 1

Related Questions