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