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.time.Instant;
24 import java.util.Date;
25 import java.util.List;
26 import java.util.Map;
27 import java.util.Properties;
28
29 import org.apache.maven.artifact.repository.ArtifactRepository;
30 import org.apache.maven.artifact.repository.ArtifactRepositoryPolicy;
31 import org.apache.maven.eventspy.internal.EventSpyDispatcher;
32 import org.apache.maven.model.Profile;
33 import org.apache.maven.project.ProjectBuildingRequest;
34 import org.apache.maven.settings.Mirror;
35 import org.apache.maven.settings.Proxy;
36 import org.apache.maven.settings.Server;
37 import org.apache.maven.toolchain.model.ToolchainModel;
38 import org.codehaus.plexus.logging.Logger;
39 import org.eclipse.aether.RepositoryCache;
40 import org.eclipse.aether.repository.WorkspaceReader;
41 import org.eclipse.aether.transfer.TransferListener;
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 @Deprecated
110 MavenExecutionRequest setStartTime(Date start);
111
112 @Deprecated
113 Date getStartTime();
114
115 MavenExecutionRequest setStartInstant(Instant start);
116
117 Instant getStartInstant();
118
119
120 MavenExecutionRequest setGoals(List<String> goals);
121
122 List<String> getGoals();
123
124
125
126
127
128
129
130
131
132
133 MavenExecutionRequest setSystemProperties(Properties systemProperties);
134
135
136
137
138
139
140
141 Properties getSystemProperties();
142
143
144
145
146
147
148
149
150
151 MavenExecutionRequest setUserProperties(Properties userProperties);
152
153
154
155
156
157
158
159
160 Properties getUserProperties();
161
162
163 MavenExecutionRequest setReactorFailureBehavior(String failureBehavior);
164
165 String getReactorFailureBehavior();
166
167
168
169
170 @Deprecated
171 MavenExecutionRequest setSelectedProjects(List<String> projects);
172
173
174
175
176 @Deprecated
177 List<String> getSelectedProjects();
178
179
180
181
182
183
184
185 @Deprecated
186 MavenExecutionRequest setExcludedProjects(List<String> projects);
187
188
189
190
191
192
193 @Deprecated
194 List<String> getExcludedProjects();
195
196
197
198
199
200
201 MavenExecutionRequest setResume(boolean resume);
202
203
204
205
206 boolean isResume();
207
208 MavenExecutionRequest setResumeFrom(String project);
209
210 String getResumeFrom();
211
212 MavenExecutionRequest setMakeBehavior(String makeBehavior);
213
214 String getMakeBehavior();
215
216
217
218
219
220
221 void setDegreeOfConcurrency(int degreeOfConcurrency);
222
223
224
225
226 int getDegreeOfConcurrency();
227
228
229 MavenExecutionRequest setRecursive(boolean recursive);
230
231 boolean isRecursive();
232
233 MavenExecutionRequest setPom(File pom);
234
235 File getPom();
236
237
238 MavenExecutionRequest setShowErrors(boolean showErrors);
239
240 boolean isShowErrors();
241
242
243 MavenExecutionRequest setTransferListener(TransferListener transferListener);
244
245 TransferListener getTransferListener();
246
247
248 MavenExecutionRequest setLoggingLevel(int loggingLevel);
249
250 int getLoggingLevel();
251
252
253 MavenExecutionRequest setUpdateSnapshots(boolean updateSnapshots);
254
255 boolean isUpdateSnapshots();
256
257 MavenExecutionRequest setNoSnapshotUpdates(boolean noSnapshotUpdates);
258
259 boolean isNoSnapshotUpdates();
260
261
262 MavenExecutionRequest setGlobalChecksumPolicy(String globalChecksumPolicy);
263
264 String getGlobalChecksumPolicy();
265
266
267 MavenExecutionRequest setLocalRepositoryPath(String localRepository);
268
269 MavenExecutionRequest setLocalRepositoryPath(File localRepository);
270
271 File getLocalRepositoryPath();
272
273 MavenExecutionRequest setLocalRepository(ArtifactRepository repository);
274
275 ArtifactRepository getLocalRepository();
276
277
278 MavenExecutionRequest setInteractiveMode(boolean interactive);
279
280 boolean isInteractiveMode();
281
282
283 MavenExecutionRequest setOffline(boolean offline);
284
285 boolean isOffline();
286
287 boolean isCacheTransferError();
288
289 MavenExecutionRequest setCacheTransferError(boolean cacheTransferError);
290
291 boolean isCacheNotFound();
292
293 MavenExecutionRequest setCacheNotFound(boolean cacheNotFound);
294
295
296
297
298 boolean isIgnoreMissingArtifactDescriptor();
299
300
301
302
303 MavenExecutionRequest setIgnoreMissingArtifactDescriptor(boolean ignoreMissing);
304
305
306
307
308 boolean isIgnoreInvalidArtifactDescriptor();
309
310
311
312
313 MavenExecutionRequest setIgnoreInvalidArtifactDescriptor(boolean ignoreInvalid);
314
315
316
317
318 boolean isIgnoreTransitiveRepositories();
319
320
321
322
323 MavenExecutionRequest setIgnoreTransitiveRepositories(boolean ignoreTransitiveRepositories);
324
325
326 List<Profile> getProfiles();
327
328 MavenExecutionRequest addProfile(Profile profile);
329
330 MavenExecutionRequest setProfiles(List<Profile> profiles);
331
332
333
334
335 @Deprecated
336 MavenExecutionRequest addActiveProfile(String profile);
337
338
339
340
341 @Deprecated
342 MavenExecutionRequest addActiveProfiles(List<String> profiles);
343
344
345
346
347 @Deprecated
348 MavenExecutionRequest setActiveProfiles(List<String> profiles);
349
350
351
352
353
354 @Deprecated
355 List<String> getActiveProfiles();
356
357
358
359
360 @Deprecated
361 MavenExecutionRequest addInactiveProfile(String profile);
362
363
364
365
366 @Deprecated
367 MavenExecutionRequest addInactiveProfiles(List<String> profiles);
368
369
370
371
372 @Deprecated
373 MavenExecutionRequest setInactiveProfiles(List<String> profiles);
374
375
376
377
378
379 @Deprecated
380 List<String> getInactiveProfiles();
381
382
383
384
385
386 ProjectActivation getProjectActivation();
387
388
389
390
391
392 ProfileActivation getProfileActivation();
393
394
395 List<Proxy> getProxies();
396
397 MavenExecutionRequest setProxies(List<Proxy> proxies);
398
399 MavenExecutionRequest addProxy(Proxy proxy);
400
401
402 List<Server> getServers();
403
404 MavenExecutionRequest setServers(List<Server> servers);
405
406 MavenExecutionRequest addServer(Server server);
407
408
409 List<Mirror> getMirrors();
410
411 MavenExecutionRequest setMirrors(List<Mirror> mirrors);
412
413 MavenExecutionRequest addMirror(Mirror mirror);
414
415
416 List<String> getPluginGroups();
417
418 MavenExecutionRequest setPluginGroups(List<String> pluginGroups);
419
420 MavenExecutionRequest addPluginGroup(String pluginGroup);
421
422 MavenExecutionRequest addPluginGroups(List<String> pluginGroups);
423
424 boolean isProjectPresent();
425
426 MavenExecutionRequest setProjectPresent(boolean isProjectPresent);
427
428 File getUserSettingsFile();
429
430 MavenExecutionRequest setUserSettingsFile(File userSettingsFile);
431
432 File getProjectSettingsFile();
433
434 MavenExecutionRequest setProjectSettingsFile(File projectSettingsFile);
435
436 @Deprecated
437 File getGlobalSettingsFile();
438
439 @Deprecated
440 MavenExecutionRequest setGlobalSettingsFile(File globalSettingsFile);
441
442 File getInstallationSettingsFile();
443
444 MavenExecutionRequest setInstallationSettingsFile(File installationSettingsFile);
445
446 MavenExecutionRequest addRemoteRepository(ArtifactRepository repository);
447
448 MavenExecutionRequest addPluginArtifactRepository(ArtifactRepository repository);
449
450
451
452
453
454
455
456
457
458 MavenExecutionRequest setRemoteRepositories(List<ArtifactRepository> repositories);
459
460 List<ArtifactRepository> getRemoteRepositories();
461
462 MavenExecutionRequest setPluginArtifactRepositories(List<ArtifactRepository> repositories);
463
464 List<ArtifactRepository> getPluginArtifactRepositories();
465
466 MavenExecutionRequest setRepositoryCache(RepositoryCache repositoryCache);
467
468 RepositoryCache getRepositoryCache();
469
470 WorkspaceReader getWorkspaceReader();
471
472 MavenExecutionRequest setWorkspaceReader(WorkspaceReader workspaceReader);
473
474 File getUserToolchainsFile();
475
476 MavenExecutionRequest setUserToolchainsFile(File userToolchainsFile);
477
478
479
480
481
482
483
484
485 @Deprecated
486 File getGlobalToolchainsFile();
487
488
489
490
491
492
493
494
495 @Deprecated
496 MavenExecutionRequest setGlobalToolchainsFile(File globalToolchainsFile);
497
498
499
500
501
502
503
504 File getInstallationToolchainsFile();
505
506
507
508
509
510
511
512 MavenExecutionRequest setInstallationToolchainsFile(File installationToolchainsFile);
513
514 ExecutionListener getExecutionListener();
515
516 MavenExecutionRequest setExecutionListener(ExecutionListener executionListener);
517
518 ProjectBuildingRequest getProjectBuildingRequest();
519
520
521
522
523
524
525
526
527 @Deprecated
528 boolean isUseLegacyLocalRepository();
529
530
531
532
533
534
535
536
537 @Deprecated
538 MavenExecutionRequest setUseLegacyLocalRepository(boolean useLegacyLocalRepository);
539
540
541
542
543
544
545
546 MavenExecutionRequest setBuilderId(String builderId);
547
548
549
550
551
552
553
554 String getBuilderId();
555
556
557
558
559
560
561
562 MavenExecutionRequest setToolchains(Map<String, List<ToolchainModel>> toolchains);
563
564
565
566
567
568
569 Map<String, List<ToolchainModel>> getToolchains();
570
571
572
573
574
575 @Deprecated
576 void setMultiModuleProjectDirectory(File file);
577
578
579
580
581
582 @Deprecated
583 File getMultiModuleProjectDirectory();
584
585
586
587
588
589
590 MavenExecutionRequest setTopDirectory(Path topDirectory);
591
592
593
594
595
596
597
598 Path getTopDirectory();
599
600
601
602
603
604
605 MavenExecutionRequest setRootDirectory(Path rootDirectory);
606
607
608
609
610
611
612
613
614
615
616 Path getRootDirectory();
617
618
619
620
621 MavenExecutionRequest setEventSpyDispatcher(EventSpyDispatcher eventSpyDispatcher);
622
623
624
625
626 EventSpyDispatcher getEventSpyDispatcher();
627
628
629
630
631 Map<String, Object> getData();
632 }