1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.execution;
20
21 import java.io.File;
22 import java.util.Date;
23 import java.util.List;
24 import java.util.Map;
25 import java.util.Properties;
26
27 import org.apache.maven.artifact.repository.ArtifactRepository;
28 import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
29 import org.apache.maven.eventspy.internal.EventSpyDispatcher;
30 import org.apache.maven.model.Profile;
31 import org.apache.maven.project.ProjectBuildingRequest;
32 import org.apache.maven.settings.Mirror;
33 import org.apache.maven.settings.Proxy;
34 import org.apache.maven.settings.Server;
35 import org.apache.maven.toolchain.model.ToolchainModel;
36 import org.codehaus.plexus.logging.Logger;
37 import org.eclipse.aether.RepositoryCache;
38 import org.eclipse.aether.repository.WorkspaceReader;
39 import org.eclipse.aether.transfer.TransferListener;
40
41
42
43
44 public interface MavenExecutionRequest {
45
46
47
48
49 int LOGGING_LEVEL_DEBUG = Logger.LEVEL_DEBUG;
50
51 int LOGGING_LEVEL_INFO = Logger.LEVEL_INFO;
52
53 int LOGGING_LEVEL_WARN = Logger.LEVEL_WARN;
54
55 int LOGGING_LEVEL_ERROR = Logger.LEVEL_ERROR;
56
57 int LOGGING_LEVEL_FATAL = Logger.LEVEL_FATAL;
58
59 int LOGGING_LEVEL_DISABLED = Logger.LEVEL_DISABLED;
60
61
62
63
64
65 String REACTOR_FAIL_FAST = "FAIL_FAST";
66
67 String REACTOR_FAIL_AT_END = "FAIL_AT_END";
68
69 String REACTOR_FAIL_NEVER = "FAIL_NEVER";
70
71
72
73
74
75 String REACTOR_MAKE_UPSTREAM = "make-upstream";
76
77 String REACTOR_MAKE_DOWNSTREAM = "make-downstream";
78
79 String REACTOR_MAKE_BOTH = "make-both";
80
81
82
83
84
85 String CHECKSUM_POLICY_FAIL = ArtifactRepositoryPolicy.CHECKSUM_POLICY_FAIL;
86
87 String CHECKSUM_POLICY_WARN = ArtifactRepositoryPolicy.CHECKSUM_POLICY_WARN;
88
89
90
91
92
93
94 MavenExecutionRequest setBaseDirectory(File basedir);
95
96 String getBaseDirectory();
97
98
99 MavenExecutionRequest setStartTime(Date start);
100
101 Date getStartTime();
102
103
104 MavenExecutionRequest setGoals(List<String> goals);
105
106 List<String> getGoals();
107
108
109
110
111
112
113
114
115
116
117 MavenExecutionRequest setSystemProperties(Properties systemProperties);
118
119
120
121
122
123
124
125 Properties getSystemProperties();
126
127
128
129
130
131
132
133
134
135 MavenExecutionRequest setUserProperties(Properties userProperties);
136
137
138
139
140
141
142
143
144 Properties getUserProperties();
145
146
147 MavenExecutionRequest setReactorFailureBehavior(String failureBehavior);
148
149 String getReactorFailureBehavior();
150
151
152
153
154 @Deprecated
155 MavenExecutionRequest setSelectedProjects(List<String> projects);
156
157
158
159
160 @Deprecated
161 List<String> getSelectedProjects();
162
163
164
165
166
167
168
169 @Deprecated
170 MavenExecutionRequest setExcludedProjects(List<String> projects);
171
172
173
174
175
176
177 @Deprecated
178 List<String> getExcludedProjects();
179
180
181
182
183
184
185 MavenExecutionRequest setResume(boolean resume);
186
187
188
189
190 boolean isResume();
191
192 MavenExecutionRequest setResumeFrom(String project);
193
194 String getResumeFrom();
195
196 MavenExecutionRequest setMakeBehavior(String makeBehavior);
197
198 String getMakeBehavior();
199
200
201
202
203
204
205 void setDegreeOfConcurrency(int degreeOfConcurrency);
206
207
208
209
210 int getDegreeOfConcurrency();
211
212
213 MavenExecutionRequest setRecursive(boolean recursive);
214
215 boolean isRecursive();
216
217 MavenExecutionRequest setPom(File pom);
218
219 File getPom();
220
221
222 MavenExecutionRequest setShowErrors(boolean showErrors);
223
224 boolean isShowErrors();
225
226
227 MavenExecutionRequest setTransferListener(TransferListener transferListener);
228
229 TransferListener getTransferListener();
230
231
232 MavenExecutionRequest setLoggingLevel(int loggingLevel);
233
234 int getLoggingLevel();
235
236
237 MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots);
238
239 boolean isUpdateSnapshots();
240
241 MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates);
242
243 boolean isNoSnapshotUpdates();
244
245
246 MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy);
247
248 String getGlobalChecksumPolicy();
249
250
251 MavenExecutionRequest setLocalRepositoryPath(String localRepository);
252
253 MavenExecutionRequest setLocalRepositoryPath(File localRepository);
254
255 File getLocalRepositoryPath();
256
257 MavenExecutionRequest setLocalRepository(ArtifactRepository repository);
258
259 ArtifactRepository getLocalRepository();
260
261
262 MavenExecutionRequest setInteractiveMode(boolean interactive);
263
264 boolean isInteractiveMode();
265
266
267 MavenExecutionRequest setOffline(boolean offline);
268
269 boolean isOffline();
270
271 boolean isCacheTransferError();
272
273 MavenExecutionRequest setCacheTransferError(boolean cacheTransferError);
274
275 boolean isCacheNotFound();
276
277 MavenExecutionRequest setCacheNotFound(boolean cacheNotFound);
278
279
280 List<Profile> getProfiles();
281
282 MavenExecutionRequest addProfile(Profile profile);
283
284 MavenExecutionRequest setProfiles(List<Profile> profiles);
285
286
287
288
289 @Deprecated
290 MavenExecutionRequest addActiveProfile(String profile);
291
292
293
294
295 @Deprecated
296 MavenExecutionRequest addActiveProfiles(List<String> profiles);
297
298
299
300
301 @Deprecated
302 MavenExecutionRequest setActiveProfiles(List<String> profiles);
303
304
305
306
307
308 @Deprecated
309 List<String> getActiveProfiles();
310
311
312
313
314 @Deprecated
315 MavenExecutionRequest addInactiveProfile(String profile);
316
317
318
319
320 @Deprecated
321 MavenExecutionRequest addInactiveProfiles(List<String> profiles);
322
323
324
325
326 @Deprecated
327 MavenExecutionRequest setInactiveProfiles(List<String> profiles);
328
329
330
331
332
333 @Deprecated
334 List<String> getInactiveProfiles();
335
336
337
338
339
340 ProjectActivation getProjectActivation();
341
342
343
344
345
346 ProfileActivation getProfileActivation();
347
348
349 List<Proxy> getProxies();
350
351 MavenExecutionRequest setProxies(List<Proxy> proxies);
352
353 MavenExecutionRequest addProxy(Proxy proxy);
354
355
356 List<Server> getServers();
357
358 MavenExecutionRequest setServers(List<Server> servers);
359
360 MavenExecutionRequest addServer(Server server);
361
362
363 List<Mirror> getMirrors();
364
365 MavenExecutionRequest setMirrors(List<Mirror> mirrors);
366
367 MavenExecutionRequest addMirror(Mirror mirror);
368
369
370 List<String> getPluginGroups();
371
372 MavenExecutionRequest setPluginGroups(List<String> pluginGroups);
373
374 MavenExecutionRequest addPluginGroup(String pluginGroup);
375
376 MavenExecutionRequest addPluginGroups(List<String> pluginGroups);
377
378 boolean isProjectPresent();
379
380 MavenExecutionRequest setProjectPresent(boolean isProjectPresent);
381
382 File getUserSettingsFile();
383
384 MavenExecutionRequest setUserSettingsFile(File userSettingsFile);
385
386 File getGlobalSettingsFile();
387
388 MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile);
389
390 MavenExecutionRequest addRemoteRepository(ArtifactRepository repository);
391
392 MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository);
393
394
395
396
397
398
399
400
401
402 MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> repositories);
403
404 List<ArtifactRepository> getRemoteRepositories();
405
406 MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> repositories);
407
408 List<ArtifactRepository> getPluginArtifactRepositories();
409
410 MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache);
411
412 RepositoryCache getRepositoryCache();
413
414 WorkspaceReader getWorkspaceReader();
415
416 MavenExecutionRequest setWorkspaceReader(WorkspaceReader workspaceReader);
417
418 File getUserToolchainsFile();
419
420 MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile);
421
422
423
424
425
426
427
428 File getGlobalToolchainsFile();
429
430
431
432
433
434
435
436 MavenExecutionRequest setGlobalToolchainsFile(File globalToolchainsFile);
437
438 ExecutionListener getExecutionListener();
439
440 MavenExecutionRequest setExecutionListener(ExecutionListener executionListener);
441
442 ProjectBuildingRequest getProjectBuildingRequest();
443
444
445
446
447
448
449
450
451 @Deprecated
452 boolean isUseLegacyLocalRepository();
453
454
455
456
457
458
459
460
461 @Deprecated
462 MavenExecutionRequest setUseLegacyLocalRepository(boolean useLegacyLocalRepository);
463
464
465
466
467
468
469
470 MavenExecutionRequest setBuilderId(String builderId);
471
472
473
474
475
476
477
478 String getBuilderId();
479
480
481
482
483
484
485
486 MavenExecutionRequest setToolchains(Map<String, List<ToolchainModel>> toolchains);
487
488
489
490
491
492
493 Map<String, List<ToolchainModel>> getToolchains();
494
495
496
497
498 void setMultiModuleProjectDirectory(File file);
499
500
501
502
503 File getMultiModuleProjectDirectory();
504
505
506
507
508 MavenExecutionRequest setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher);
509
510
511
512
513 EventSpyDispatcher getEventSpyDispatcher();
514
515
516
517
518 Map<String, Object> getData();
519 }