1 package org.apache.maven.plugins.enforcer;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.io.IOException;
24 import java.io.Writer;
25 import java.util.Collections;
26 import java.util.List;
27 import java.util.Map;
28 import java.util.Properties;
29 import java.util.Set;
30
31 import org.apache.maven.artifact.Artifact;
32 import org.apache.maven.artifact.DependencyResolutionRequiredException;
33 import org.apache.maven.artifact.factory.ArtifactFactory;
34 import org.apache.maven.artifact.repository.ArtifactRepository;
35 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
36 import org.apache.maven.model.Build;
37 import org.apache.maven.model.CiManagement;
38 import org.apache.maven.model.Contributor;
39 import org.apache.maven.model.DependencyManagement;
40 import org.apache.maven.model.Developer;
41 import org.apache.maven.model.DistributionManagement;
42 import org.apache.maven.model.IssueManagement;
43 import org.apache.maven.model.License;
44 import org.apache.maven.model.MailingList;
45 import org.apache.maven.model.Model;
46 import org.apache.maven.model.Organization;
47 import org.apache.maven.model.Plugin;
48 import org.apache.maven.model.PluginManagement;
49 import org.apache.maven.model.Prerequisites;
50 import org.apache.maven.model.Reporting;
51 import org.apache.maven.model.Resource;
52 import org.apache.maven.model.Scm;
53 import org.apache.maven.project.MavenProject;
54 import org.apache.maven.project.artifact.InvalidDependencyVersionException;
55 import org.codehaus.plexus.PlexusTestCase;
56 import org.codehaus.plexus.util.xml.Xpp3Dom;
57
58
59
60
61 public class MockProject
62 extends MavenProject
63 {
64
65
66 private String groupId;
67
68
69 private String artifactId;
70
71
72 private String name;
73
74
75 private Model model;
76
77
78 private MavenProject parent;
79
80
81 private List dependencies;
82
83
84 private File file;
85
86
87 private List collectedProjects;
88
89
90 private List attachedArtifacts;
91
92
93 private List compileSourceRoots;
94
95
96 private List testCompileSourceRoots;
97
98
99 private List scriptSourceRoots;
100
101
102 private List pluginArtifactRepositories;
103
104
105
106
107
108
109 private List activeProfiles;
110
111
112 private Set dependencyArtifacts;
113
114
115 private DependencyManagement dependencyManagement;
116
117
118 private Artifact artifact;
119
120
121
122
123 private Model originalModel;
124
125
126
127
128
129
130
131
132
133
134
135
136 private boolean executionRoot;
137
138
139 private List compileArtifacts;
140
141
142 private List compileDependencies;
143
144
145 private List systemDependencies;
146
147
148 private List testClasspathElements;
149
150
151 private List testDependencies;
152
153
154 private List systemClasspathElements;
155
156
157 private List systemArtifacts;
158
159
160 private List testArtifacts;
161
162
163 private List runtimeArtifacts;
164
165
166 private List runtimeDependencies;
167
168
169 private List runtimeClasspathElements;
170
171
172 private String modelVersion;
173
174
175 private String packaging;
176
177
178 private String inceptionYear;
179
180
181 private String url;
182
183
184 private String description;
185
186
187 private String version;
188
189
190 private String defaultGoal;
191
192
193 private Set artifacts;
194
195
196 private Properties properties = new Properties();
197
198
199 private File baseDir = null;
200
201
202
203
204 public MockProject()
205 {
206 super( (Model) null );
207 }
208
209
210
211
212
213
214
215 public MockProject( Model model )
216 {
217
218 super( (Model) null );
219 }
220
221
222
223
224
225
226
227 public MockProject( MavenProject project )
228 {
229
230 super( (Model) null );
231 }
232
233
234
235
236
237
238 public String getModulePathAdjustment( MavenProject mavenProject )
239 throws IOException
240 {
241 return "";
242 }
243
244
245
246
247
248
249 public Artifact getArtifact()
250 {
251 return artifact;
252 }
253
254
255
256
257
258
259 public void setArtifact( Artifact artifact )
260 {
261 this.artifact = artifact;
262 }
263
264
265
266
267
268
269 public Model getModel()
270 {
271 return model;
272 }
273
274
275
276
277
278
279 public MavenProject getParent()
280 {
281 return parent;
282 }
283
284
285
286
287
288
289 public void setParent( MavenProject mavenProject )
290 {
291 this.parent = mavenProject;
292 }
293
294
295
296
297
298
299 public void setRemoteArtifactRepositories( List list )
300 {
301
302 }
303
304
305
306
307
308
309 public List getRemoteArtifactRepositories()
310 {
311 return Collections.singletonList( "" );
312 }
313
314
315
316
317
318
319 public boolean hasParent()
320 {
321 if ( parent != null )
322 {
323 return true;
324 }
325 else
326 {
327 return false;
328 }
329 }
330
331
332
333
334
335
336 public File getFile()
337 {
338 return file;
339 }
340
341
342
343
344
345
346 public void setFile( File file )
347 {
348 this.file = file;
349 }
350
351
352
353
354
355
356 public File getBasedir()
357 {
358 if ( baseDir == null )
359 {
360 baseDir = new File( PlexusTestCase.getBasedir() );
361 }
362 return baseDir;
363 }
364
365
366
367
368
369
370 public void setBaseDir( File base )
371 {
372 baseDir = base;
373 }
374
375
376
377
378
379
380 public void setDependencies( List list )
381 {
382 dependencies = list;
383 }
384
385
386
387
388
389
390 public List getDependencies()
391 {
392 if ( dependencies == null )
393 {
394 dependencies = Collections.EMPTY_LIST;
395 }
396 return dependencies;
397 }
398
399
400
401
402
403
404 public void setDependencyManagement( DependencyManagement depMgt )
405 {
406 this.dependencyManagement = depMgt;
407 }
408
409
410
411
412
413
414 public DependencyManagement getDependencyManagement()
415 {
416 if ( dependencyManagement == null )
417 {
418 dependencyManagement = new DependencyManagement();
419 }
420
421 return dependencyManagement;
422 }
423
424
425
426
427
428
429 public void addCompileSourceRoot( String string )
430 {
431 if ( compileSourceRoots == null )
432 {
433 compileSourceRoots = Collections.singletonList( string );
434 }
435 else
436 {
437 compileSourceRoots.add( string );
438 }
439 }
440
441
442
443
444
445
446 public void addScriptSourceRoot( String string )
447 {
448 if ( scriptSourceRoots == null )
449 {
450 scriptSourceRoots = Collections.singletonList( string );
451 }
452 else
453 {
454 scriptSourceRoots.add( string );
455 }
456 }
457
458
459
460
461
462
463 public void addTestCompileSourceRoot( String string )
464 {
465 if ( testCompileSourceRoots == null )
466 {
467 testCompileSourceRoots = Collections.singletonList( string );
468 }
469 else
470 {
471 testCompileSourceRoots.add( string );
472 }
473 }
474
475
476
477
478
479
480 public List getCompileSourceRoots()
481 {
482 return compileSourceRoots;
483 }
484
485
486
487
488
489
490 public List getScriptSourceRoots()
491 {
492 return scriptSourceRoots;
493 }
494
495
496
497
498
499
500 public List getTestCompileSourceRoots()
501 {
502 return testCompileSourceRoots;
503 }
504
505
506
507
508
509
510 public List getCompileClasspathElements()
511 throws DependencyResolutionRequiredException
512 {
513 return compileSourceRoots;
514 }
515
516
517
518
519
520
521 public void setCompileArtifacts( List compileArtifacts )
522 {
523 this.compileArtifacts = compileArtifacts;
524 }
525
526
527
528
529
530
531 public List getCompileArtifacts()
532 {
533 return compileArtifacts;
534 }
535
536
537
538
539
540
541 public List getCompileDependencies()
542 {
543 return compileDependencies;
544 }
545
546
547
548
549
550
551 public List getTestClasspathElements()
552 throws DependencyResolutionRequiredException
553 {
554 return testClasspathElements;
555 }
556
557
558
559
560
561
562 public List getTestArtifacts()
563 {
564 return testArtifacts;
565 }
566
567
568
569
570
571
572 public List getTestDependencies()
573 {
574 return testDependencies;
575 }
576
577
578
579
580
581
582 public List getRuntimeClasspathElements()
583 throws DependencyResolutionRequiredException
584 {
585 return runtimeClasspathElements;
586 }
587
588
589
590
591
592
593 public List getRuntimeArtifacts()
594 {
595 return runtimeArtifacts;
596 }
597
598
599
600
601
602
603 public List getRuntimeDependencies()
604 {
605 return runtimeDependencies;
606 }
607
608
609
610
611
612
613 public List getSystemClasspathElements()
614 throws DependencyResolutionRequiredException
615 {
616 return systemClasspathElements;
617 }
618
619
620
621
622
623
624 public List getSystemArtifacts()
625 {
626 return systemArtifacts;
627 }
628
629
630
631
632
633
634 public void setRuntimeClasspathElements( List runtimeClasspathElements )
635 {
636 this.runtimeClasspathElements = runtimeClasspathElements;
637 }
638
639
640
641
642
643
644 public void setAttachedArtifacts( List attachedArtifacts )
645 {
646 this.attachedArtifacts = attachedArtifacts;
647 }
648
649
650
651
652
653
654 public void setCompileSourceRoots( List compileSourceRoots )
655 {
656 this.compileSourceRoots = compileSourceRoots;
657 }
658
659
660
661
662
663
664 public void setTestCompileSourceRoots( List testCompileSourceRoots )
665 {
666 this.testCompileSourceRoots = testCompileSourceRoots;
667 }
668
669
670
671
672
673
674 public void setScriptSourceRoots( List scriptSourceRoots )
675 {
676 this.scriptSourceRoots = scriptSourceRoots;
677 }
678
679
680
681
682
683
684 public void setArtifactMap( Map artifactMap )
685 {
686
687 }
688
689
690
691
692
693
694 public void setPluginArtifactMap( Map pluginArtifactMap )
695 {
696
697 }
698
699
700
701
702
703
704 public void setReportArtifactMap( Map reportArtifactMap )
705 {
706
707 }
708
709
710
711
712
713
714 public void setExtensionArtifactMap( Map extensionArtifactMap )
715 {
716
717 }
718
719
720
721
722
723
724 public void setProjectReferences( Map projectReferences )
725 {
726
727 }
728
729
730
731
732
733
734 public void setBuildOverlay( Build buildOverlay )
735 {
736
737 }
738
739
740
741
742
743
744 public void setCompileDependencies( List compileDependencies )
745 {
746 this.compileDependencies = compileDependencies;
747 }
748
749
750
751
752
753
754 public void setSystemDependencies( List systemDependencies )
755 {
756 this.systemDependencies = systemDependencies;
757 }
758
759
760
761
762
763
764 public void setTestClasspathElements( List testClasspathElements )
765 {
766 this.testClasspathElements = testClasspathElements;
767 }
768
769
770
771
772
773
774 public void setTestDependencies( List testDependencies )
775 {
776 this.testDependencies = testDependencies;
777 }
778
779
780
781
782
783
784 public void setSystemClasspathElements( List systemClasspathElements )
785 {
786 this.systemClasspathElements = systemClasspathElements;
787 }
788
789
790
791
792
793
794 public void setSystemArtifacts( List systemArtifacts )
795 {
796 this.systemArtifacts = systemArtifacts;
797 }
798
799
800
801
802
803
804 public void setTestArtifacts( List testArtifacts )
805 {
806 this.testArtifacts = testArtifacts;
807 }
808
809
810
811
812
813
814 public void setRuntimeArtifacts( List runtimeArtifacts )
815 {
816 this.runtimeArtifacts = runtimeArtifacts;
817 }
818
819
820
821
822
823
824 public void setRuntimeDependencies( List runtimeDependencies )
825 {
826 this.runtimeDependencies = runtimeDependencies;
827 }
828
829
830
831
832
833
834 public void setModel( Model model )
835 {
836 this.model = model;
837 }
838
839
840
841
842
843
844 public List getSystemDependencies()
845 {
846 return systemDependencies;
847 }
848
849
850
851
852
853
854 public void setModelVersion( String string )
855 {
856 this.modelVersion = string;
857 }
858
859
860
861
862
863
864 public String getModelVersion()
865 {
866 return modelVersion;
867 }
868
869
870
871
872
873
874 public String getId()
875 {
876 return "";
877 }
878
879
880
881
882
883
884 public void setGroupId( String string )
885 {
886 this.groupId = string;
887 }
888
889
890
891
892
893
894 public String getGroupId()
895 {
896 return groupId;
897 }
898
899
900
901
902
903
904 public void setArtifactId( String string )
905 {
906 this.artifactId = string;
907 }
908
909
910
911
912
913
914 public String getArtifactId()
915 {
916 return artifactId;
917 }
918
919
920
921
922
923
924 public void setName( String string )
925 {
926 this.name = string;
927 }
928
929
930
931
932
933
934 public String getName()
935 {
936 return name;
937 }
938
939
940
941
942
943
944 public void setVersion( String string )
945 {
946 this.version = string;
947 }
948
949
950
951
952
953
954 public String getVersion()
955 {
956 return version;
957 }
958
959
960
961
962
963
964 public String getPackaging()
965 {
966 return packaging;
967 }
968
969
970
971
972
973
974 public void setPackaging( String string )
975 {
976 this.packaging = string;
977 }
978
979
980
981
982
983
984 public void setInceptionYear( String string )
985 {
986 this.inceptionYear = string;
987 }
988
989
990
991
992
993
994 public String getInceptionYear()
995 {
996 return inceptionYear;
997 }
998
999
1000
1001
1002
1003
1004 public void setUrl( String string )
1005 {
1006 this.url = string;
1007 }
1008
1009
1010
1011
1012
1013
1014 public String getUrl()
1015 {
1016 return url;
1017 }
1018
1019
1020
1021
1022
1023
1024 public Prerequisites getPrerequisites()
1025 {
1026 return null;
1027 }
1028
1029
1030
1031
1032
1033
1034 public void setIssueManagement( IssueManagement issueManagement )
1035 {
1036
1037 }
1038
1039
1040
1041
1042
1043
1044 public CiManagement getCiManagement()
1045 {
1046 return null;
1047 }
1048
1049
1050
1051
1052
1053
1054 public void setCiManagement( CiManagement ciManagement )
1055 {
1056
1057 }
1058
1059
1060
1061
1062
1063
1064 public IssueManagement getIssueManagement()
1065 {
1066 return null;
1067 }
1068
1069
1070
1071
1072
1073
1074 public void setDistributionManagement( DistributionManagement distributionManagement )
1075 {
1076
1077 }
1078
1079
1080
1081
1082
1083
1084 public DistributionManagement getDistributionManagement()
1085 {
1086 return null;
1087 }
1088
1089
1090
1091
1092
1093
1094 public void setDescription( String string )
1095 {
1096 this.description = string;
1097 }
1098
1099
1100
1101
1102
1103
1104 public String getDescription()
1105 {
1106 return description;
1107 }
1108
1109
1110
1111
1112
1113
1114 public void setOrganization( Organization organization )
1115 {
1116
1117 }
1118
1119
1120
1121
1122
1123
1124 public Organization getOrganization()
1125 {
1126 return null;
1127 }
1128
1129
1130
1131
1132
1133
1134 public void setScm( Scm scm )
1135 {
1136
1137 }
1138
1139
1140
1141
1142
1143
1144 public Scm getScm()
1145 {
1146 return null;
1147 }
1148
1149
1150
1151
1152
1153
1154 public void setMailingLists( List list )
1155 {
1156
1157 }
1158
1159
1160
1161
1162
1163
1164 public List getMailingLists()
1165 {
1166 return Collections.singletonList( "" );
1167 }
1168
1169
1170
1171
1172
1173
1174 public void addMailingList( MailingList mailingList )
1175 {
1176
1177 }
1178
1179
1180
1181
1182
1183
1184 public void setDevelopers( List list )
1185 {
1186
1187 }
1188
1189
1190
1191
1192
1193
1194 public List getDevelopers()
1195 {
1196 return Collections.singletonList( "" );
1197 }
1198
1199
1200
1201
1202
1203
1204 public void addDeveloper( Developer developer )
1205 {
1206
1207 }
1208
1209
1210
1211
1212
1213
1214 public void setContributors( List list )
1215 {
1216
1217 }
1218
1219
1220
1221
1222
1223
1224 public List getContributors()
1225 {
1226 return Collections.singletonList( "" );
1227 }
1228
1229
1230
1231
1232
1233
1234 public void addContributor( Contributor contributor )
1235 {
1236
1237 }
1238
1239
1240
1241
1242
1243
1244 public void setBuild( Build build )
1245 {
1246
1247 }
1248
1249
1250
1251
1252
1253
1254 public Build getBuild()
1255 {
1256 return null;
1257 }
1258
1259
1260
1261
1262
1263
1264 public List getResources()
1265 {
1266 return Collections.singletonList( "" );
1267 }
1268
1269
1270
1271
1272
1273
1274 public List getTestResources()
1275 {
1276 return Collections.singletonList( "" );
1277 }
1278
1279
1280
1281
1282
1283
1284 public void addResource( Resource resource )
1285 {
1286
1287 }
1288
1289
1290
1291
1292
1293
1294 public void addTestResource( Resource resource )
1295 {
1296
1297 }
1298
1299
1300
1301
1302
1303
1304 public void setReporting( Reporting reporting )
1305 {
1306
1307 }
1308
1309
1310
1311
1312
1313
1314 public Reporting getReporting()
1315 {
1316 return null;
1317 }
1318
1319
1320
1321
1322
1323
1324 public void setLicenses( List list )
1325 {
1326
1327 }
1328
1329
1330
1331
1332
1333
1334 public List getLicenses()
1335 {
1336 return Collections.singletonList( "" );
1337 }
1338
1339
1340
1341
1342
1343
1344 public void addLicense( License license )
1345 {
1346
1347 }
1348
1349
1350
1351
1352
1353
1354 public void setArtifacts( Set set )
1355 {
1356 this.artifacts = set;
1357 }
1358
1359
1360
1361
1362
1363
1364 public Set getArtifacts()
1365 {
1366 if ( artifacts == null )
1367 {
1368 return Collections.EMPTY_SET;
1369 }
1370 else
1371 {
1372 return artifacts;
1373 }
1374 }
1375
1376
1377
1378
1379
1380
1381 public Map getArtifactMap()
1382 {
1383 return Collections.singletonMap( "", "" );
1384 }
1385
1386
1387
1388
1389
1390
1391 public void setPluginArtifacts( Set set )
1392 {
1393
1394 }
1395
1396
1397
1398
1399
1400
1401 public Set getPluginArtifacts()
1402 {
1403 return Collections.singleton( "" );
1404 }
1405
1406
1407
1408
1409
1410
1411 public Map getPluginArtifactMap()
1412 {
1413 return Collections.singletonMap( "", "" );
1414 }
1415
1416
1417
1418
1419
1420
1421 public void setReportArtifacts( Set set )
1422 {
1423
1424 }
1425
1426
1427
1428
1429
1430
1431 public Set getReportArtifacts()
1432 {
1433 return Collections.singleton( "" );
1434 }
1435
1436
1437
1438
1439
1440
1441 public Map getReportArtifactMap()
1442 {
1443 return Collections.singletonMap( "", "" );
1444 }
1445
1446
1447
1448
1449
1450
1451 public void setExtensionArtifacts( Set set )
1452 {
1453
1454 }
1455
1456
1457
1458
1459
1460
1461 public Set getExtensionArtifacts()
1462 {
1463 return Collections.singleton( "" );
1464 }
1465
1466
1467
1468
1469
1470
1471 public Map getExtensionArtifactMap()
1472 {
1473 return Collections.singletonMap( "", "" );
1474 }
1475
1476
1477
1478
1479
1480
1481 public void setParentArtifact( Artifact artifact )
1482 {
1483
1484 }
1485
1486
1487
1488
1489
1490
1491 public Artifact getParentArtifact()
1492 {
1493 if (parent !=null)
1494 {
1495 return parent.getArtifact();
1496 }
1497 else
1498 return null;
1499
1500 }
1501
1502
1503
1504
1505
1506
1507 public List getRepositories()
1508 {
1509 return Collections.singletonList( "" );
1510 }
1511
1512
1513
1514
1515
1516
1517 public List getReportPlugins()
1518 {
1519 return Collections.singletonList( "" );
1520 }
1521
1522
1523
1524
1525
1526
1527 public List getBuildPlugins()
1528 {
1529 return Collections.singletonList( "" );
1530 }
1531
1532
1533
1534
1535
1536
1537 public List getModules()
1538 {
1539 return Collections.singletonList( "" );
1540 }
1541
1542
1543
1544
1545
1546
1547 public PluginManagement getPluginManagement()
1548 {
1549 return null;
1550 }
1551
1552
1553
1554
1555
1556
1557 public void addPlugin( Plugin plugin )
1558 {
1559
1560 }
1561
1562
1563
1564
1565
1566
1567 public void injectPluginManagementInfo( Plugin plugin )
1568 {
1569
1570 }
1571
1572
1573
1574
1575
1576
1577 public List getCollectedProjects()
1578 {
1579 return collectedProjects;
1580 }
1581
1582
1583
1584
1585
1586
1587 public void setCollectedProjects( List list )
1588 {
1589 this.collectedProjects = list;
1590 }
1591
1592
1593
1594
1595
1596
1597 public void setPluginArtifactRepositories( List list )
1598 {
1599 this.pluginArtifactRepositories = list;
1600 }
1601
1602
1603
1604
1605
1606
1607 public List getPluginArtifactRepositories()
1608 {
1609 return pluginArtifactRepositories;
1610 }
1611
1612
1613
1614
1615
1616
1617 public ArtifactRepository getDistributionManagementArtifactRepository()
1618 {
1619 return null;
1620 }
1621
1622
1623
1624
1625
1626
1627 public List getPluginRepositories()
1628 {
1629 return Collections.singletonList( "" );
1630 }
1631
1632
1633
1634
1635
1636
1637 public void setActiveProfiles( List list )
1638 {
1639 activeProfiles = list;
1640 }
1641
1642
1643
1644
1645
1646
1647 public List getActiveProfiles()
1648 {
1649 return activeProfiles;
1650 }
1651
1652
1653
1654
1655
1656
1657 public void addAttachedArtifact( Artifact theArtifact )
1658 {
1659 if ( attachedArtifacts == null )
1660 {
1661 this.attachedArtifacts = Collections.singletonList( theArtifact );
1662 }
1663 else
1664 {
1665 attachedArtifacts.add( theArtifact );
1666 }
1667 }
1668
1669
1670
1671
1672
1673
1674 public List getAttachedArtifacts()
1675 {
1676 return attachedArtifacts;
1677 }
1678
1679
1680
1681
1682
1683
1684
1685 public Xpp3Dom getGoalConfiguration( String string, String string1, String string2, String string3 )
1686 {
1687 return null;
1688 }
1689
1690
1691
1692
1693
1694
1695
1696 public Xpp3Dom getReportConfiguration( String string, String string1, String string2 )
1697 {
1698 return null;
1699 }
1700
1701
1702
1703
1704
1705
1706 public MavenProject getExecutionProject()
1707 {
1708 return null;
1709 }
1710
1711
1712
1713
1714
1715
1716 public void setExecutionProject( MavenProject mavenProject )
1717 {
1718
1719 }
1720
1721
1722
1723
1724
1725
1726 public void writeModel( Writer writer )
1727 throws IOException
1728 {
1729
1730 }
1731
1732
1733
1734
1735
1736
1737 public void writeOriginalModel( Writer writer )
1738 throws IOException
1739 {
1740
1741 }
1742
1743
1744
1745
1746
1747
1748 public Set getDependencyArtifacts()
1749 {
1750 return dependencyArtifacts;
1751 }
1752
1753
1754
1755
1756
1757
1758 public void setDependencyArtifacts( Set set )
1759 {
1760 this.dependencyArtifacts = set;
1761 }
1762
1763
1764
1765
1766
1767
1768 public void setReleaseArtifactRepository( ArtifactRepository artifactRepository )
1769 {
1770
1771 }
1772
1773
1774
1775
1776
1777
1778 public void setSnapshotArtifactRepository( ArtifactRepository artifactRepository )
1779 {
1780
1781 }
1782
1783
1784
1785
1786
1787
1788 public void setOriginalModel( Model model )
1789 {
1790 this.originalModel = model;
1791 }
1792
1793
1794
1795
1796
1797
1798 public Model getOriginalModel()
1799 {
1800 return originalModel;
1801 }
1802
1803
1804
1805
1806
1807
1808 public List getBuildExtensions()
1809 {
1810 return Collections.singletonList( "" );
1811 }
1812
1813
1814
1815
1816
1817
1818
1819 public Set createArtifacts( ArtifactFactory artifactFactory, String string, ArtifactFilter artifactFilter )
1820 throws InvalidDependencyVersionException
1821 {
1822 return Collections.EMPTY_SET;
1823 }
1824
1825
1826
1827
1828
1829
1830 public void addProjectReference( MavenProject mavenProject )
1831 {
1832
1833 }
1834
1835
1836
1837
1838
1839
1840 public void attachArtifact( String string, String string1, File theFile )
1841 {
1842
1843 }
1844
1845
1846
1847
1848
1849
1850 public Properties getProperties()
1851 {
1852 return this.properties;
1853 }
1854
1855
1856
1857
1858
1859
1860
1861 public void setProperty( String key, String value )
1862 {
1863 properties.setProperty( key, value );
1864 }
1865
1866
1867
1868
1869
1870
1871 public List getFilters()
1872 {
1873 return Collections.singletonList( "" );
1874 }
1875
1876
1877
1878
1879
1880
1881 public Map getProjectReferences()
1882 {
1883 return Collections.singletonMap( "", "" );
1884 }
1885
1886
1887
1888
1889
1890
1891 public boolean isExecutionRoot()
1892 {
1893 return executionRoot;
1894 }
1895
1896
1897
1898
1899
1900
1901 public void setExecutionRoot( boolean b )
1902 {
1903 this.executionRoot = b;
1904 }
1905
1906
1907
1908
1909
1910
1911 public String getDefaultGoal()
1912 {
1913 return defaultGoal;
1914 }
1915
1916
1917
1918
1919
1920
1921 public Artifact replaceWithActiveArtifact( Artifact theArtifact )
1922 {
1923 return null;
1924 }
1925 }