Alex Rivera | Logout

Is there a way to force maven to copy resource folder changes incrementally?

Asked 2010-10-19T15:45:46.123
10

I'm using Maven 2.2.1 and m2eclipse.

I have two resource folders.

When I save a change to any file in any of the resource folders, the Maven incremental build kicks off and re-copies ALL files in both resource folders to the target folders.

This behavior would be fine if there were a relatively small number of files in the resource folders - but there are enough that the copy can take several minutes.

Is there a way to force maven to be more selective in its incremental build and copy only those resources that were changed?

Edit
Report

1 Answer

1

You can try updating to the latest version of m2eclipse and Maven 3. There is a new Maven plugin API that tells m2eclipse what files been affected by the Maven plugin. I believe resource plugin been updated to that API (but make sure overwrite setting is NOT set to true in resource plugin configuration).

answered 2010-10-25T16:57:05.440

Your Answer