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