You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Copy resources for the main source code to the main output directory. Always uses the project.build.resources element
@@ -156,10 +157,32 @@ public class ResourcesMojo extends AbstractMojo {
156
157
* Overwrite existing files even if the destination files are newer.
157
158
*
158
159
* @since 2.3
160
+
* @deprecated Use {@link #changeDetection} instead.
159
161
*/
162
+
@Deprecated
160
163
@Parameter(defaultValue = "false")
161
164
privatebooleanoverwrite;
162
165
166
+
/**
167
+
* The strategy to use for change detection. Supported values are listed below. If this parameter is configured,
168
+
* it will override the value of {@link #overwrite}.
169
+
*
170
+
* Strategies and their behavior are as follows:
171
+
* <ul>
172
+
* <li><strong>content</strong>: This is the default strategy since version 3.4.0. Overwrites existing target file only if content differs.</li>
173
+
* <li><strong>timestamp</strong>: This was the default strategy before version 3.4.0. Overwrites existing target file only if target timestamp is older than source timestamp.</li>
174
+
* <li><strong>timestamp+content</strong>: Combines the two strategies above; if timestamp is older and if content differs, existing target file will be overwritten.</li>
0 commit comments