View Javadoc

1   /*
2    * Copyright 2012 smartics, Kronseder & Reiner GmbH
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package de.smartics.maven.issue.util; // NOPMD
17  
18  import java.io.File;
19  import java.io.IOException;
20  import java.io.Writer;
21  import java.util.List;
22  import java.util.Map;
23  import java.util.Properties;
24  import java.util.Set;
25  
26  import org.apache.maven.artifact.Artifact;
27  import org.apache.maven.artifact.DependencyResolutionRequiredException;
28  import org.apache.maven.artifact.factory.ArtifactFactory;
29  import org.apache.maven.artifact.repository.ArtifactRepository;
30  import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
31  import org.apache.maven.model.Build;
32  import org.apache.maven.model.CiManagement;
33  import org.apache.maven.model.Contributor;
34  import org.apache.maven.model.DependencyManagement;
35  import org.apache.maven.model.Developer;
36  import org.apache.maven.model.DistributionManagement;
37  import org.apache.maven.model.IssueManagement;
38  import org.apache.maven.model.License;
39  import org.apache.maven.model.MailingList;
40  import org.apache.maven.model.Model;
41  import org.apache.maven.model.Organization;
42  import org.apache.maven.model.Plugin;
43  import org.apache.maven.model.PluginManagement;
44  import org.apache.maven.model.Prerequisites;
45  import org.apache.maven.model.Reporting;
46  import org.apache.maven.model.Resource;
47  import org.apache.maven.model.Scm;
48  import org.apache.maven.project.MavenProject;
49  import org.apache.maven.project.ProjectBuilderConfiguration;
50  import org.apache.maven.project.artifact.InvalidDependencyVersionException;
51  import org.codehaus.plexus.logging.Logger;
52  import org.codehaus.plexus.util.xml.Xpp3Dom;
53  
54  import de.smartics.util.lang.StringFunction;
55  
56  /**
57   * A helper to normalize the description value.
58   */
59  public final class MavenProjectWrapper extends MavenProject
60  { // NOPMD
61    // ********************************* Fields *********************************
62  
63    // --- constants ------------------------------------------------------------
64  
65    // --- members --------------------------------------------------------------
66  
67    /**
68     * The Maven project being wrapped and fixed by this instance.
69     */
70    private final MavenProject wrapped;
71  
72    // ****************************** Initializer *******************************
73  
74    // ****************************** Constructors ******************************
75  
76    /**
77     * Constructor.
78     *
79     * @param wrapped the Maven project being wrapped and fixed by this instance.
80     */
81    public MavenProjectWrapper(final MavenProject wrapped)
82    {
83      this.wrapped = wrapped;
84    }
85  
86    // ****************************** Inner Classes *****************************
87  
88    // ********************************* Methods ********************************
89  
90    // --- init -----------------------------------------------------------------
91  
92    // --- get&set --------------------------------------------------------------
93  
94    // --- business -------------------------------------------------------------
95  
96    /**
97     * Returns the project description.
98     *
99     * @return the project description or <code>null</code> if a description is
100    *         not present.
101    */
102   /** {@inheritDoc} */
103   @Override
104   public String getDescription()
105   {
106     final String description = wrapped.getDescription();
107     final String normalizedDescription = StringFunction.strip(description);
108     return normalizedDescription;
109   }
110 
111   // CHECKSTYLE:OFF
112 
113   /** {@inheritDoc} */
114   @Override
115   public String getName()
116   {
117     return wrapped.getName();
118   }
119 
120   /**
121    * {@inheritDoc}
122    *
123    * @see org.apache.maven.project.MavenProject#getModulePathAdjustment(org.apache.maven.project.MavenProject)
124    */
125   @Override
126   public String getModulePathAdjustment(final MavenProject moduleProject)
127     throws IOException
128   {
129     return wrapped.getModulePathAdjustment(moduleProject);
130   }
131 
132   /**
133    * {@inheritDoc}
134    *
135    * @see org.apache.maven.project.MavenProject#getArtifact()
136    */
137   @Override
138   public Artifact getArtifact()
139   {
140     return wrapped.getArtifact();
141   }
142 
143   /**
144    * {@inheritDoc}
145    *
146    * @see org.apache.maven.project.MavenProject#setArtifact(org.apache.maven.artifact.Artifact)
147    */
148   @Override
149   public void setArtifact(final Artifact artifact)
150   {
151     wrapped.setArtifact(artifact);
152   }
153 
154   /** {@inheritDoc} */
155   @Override
156   public Model getModel()
157   {
158     return wrapped.getModel();
159   }
160 
161   /** {@inheritDoc} */
162   @Override
163   public MavenProject getParent()
164   {
165     return wrapped.getParent();
166   }
167 
168   /** {@inheritDoc} */
169   @Override
170   public void setParent(final MavenProject parent)
171   {
172     wrapped.setParent(parent);
173   }
174 
175   /** {@inheritDoc} */
176   @Override
177   @SuppressWarnings("rawtypes") // NOPMD
178   public void setRemoteArtifactRepositories(
179       final List remoteArtifactRepositories)
180   {
181     wrapped.setRemoteArtifactRepositories(remoteArtifactRepositories);
182   }
183 
184   /** {@inheritDoc} */
185   public List<?> getRemoteArtifactRepositories()
186   {
187     return wrapped.getRemoteArtifactRepositories();
188   }
189 
190   /** {@inheritDoc} */
191   @Override
192   public boolean hasParent()
193   {
194     return wrapped.hasParent();
195   }
196 
197   /** {@inheritDoc} */
198   @Override
199   public File getFile()
200   {
201     return wrapped.getFile();
202   }
203 
204   /** {@inheritDoc} */
205   @Override
206   public void setFile(final File file)
207   {
208     wrapped.setFile(file);
209   }
210 
211   /** {@inheritDoc} */
212   @Override
213   public void setBasedir(final File basedir)
214   {
215     wrapped.setBasedir(basedir);
216   }
217 
218   /** {@inheritDoc} */
219   @Override
220   public File getBasedir()
221   {
222     return wrapped.getBasedir();
223   }
224 
225   /** {@inheritDoc} */
226   @Override
227   @SuppressWarnings("rawtypes")
228   public void setDependencies(final List dependencies)
229   {
230     wrapped.setDependencies(dependencies);
231   }
232 
233   /** {@inheritDoc} */
234   @Override
235   public List<?> getDependencies()
236   {
237     return wrapped.getDependencies();
238   }
239 
240   /** {@inheritDoc} */
241   @Override
242   public DependencyManagement getDependencyManagement()
243   {
244     return wrapped.getDependencyManagement();
245   }
246 
247   /** {@inheritDoc} */
248   @Override
249   public void addCompileSourceRoot(final String path)
250   {
251     wrapped.addCompileSourceRoot(path);
252   }
253 
254   /** {@inheritDoc} */
255   @Override
256   public void addScriptSourceRoot(final String path)
257   {
258     wrapped.addScriptSourceRoot(path);
259   }
260 
261   /** {@inheritDoc} */
262   @Override
263   public void addTestCompileSourceRoot(final String path)
264   {
265     wrapped.addTestCompileSourceRoot(path);
266   }
267 
268   /** {@inheritDoc} */
269   @Override
270   public List<?> getCompileSourceRoots()
271   {
272     return wrapped.getCompileSourceRoots();
273   }
274 
275   /** {@inheritDoc} */
276   @Override
277   public List<?> getScriptSourceRoots()
278   {
279     return wrapped.getScriptSourceRoots();
280   }
281 
282   /** {@inheritDoc} */
283   @Override
284   public List<?> getTestCompileSourceRoots()
285   {
286     return wrapped.getTestCompileSourceRoots();
287   }
288 
289   /** {@inheritDoc} */
290   @Override
291   public List<?> getCompileClasspathElements()
292     throws DependencyResolutionRequiredException
293   {
294     return wrapped.getCompileClasspathElements();
295   }
296 
297   /** {@inheritDoc} */
298   @Override
299   public List<?> getCompileArtifacts()
300   {
301     return wrapped.getCompileArtifacts();
302   }
303 
304   /** {@inheritDoc} */
305   @Override
306   public List<?> getCompileDependencies()
307   {
308     return wrapped.getCompileDependencies();
309   }
310 
311   /** {@inheritDoc} */
312   @Override
313   public List<?> getTestClasspathElements()
314     throws DependencyResolutionRequiredException
315   {
316     return wrapped.getTestClasspathElements();
317   }
318 
319   /** {@inheritDoc} */
320   @Override
321   public List<?> getTestArtifacts()
322   {
323     return wrapped.getTestArtifacts();
324   }
325 
326   /** {@inheritDoc} */
327   @Override
328   public List<?> getTestDependencies()
329   {
330     return wrapped.getTestDependencies();
331   }
332 
333   /** {@inheritDoc} */
334   @Override
335   public List<?> getRuntimeClasspathElements()
336     throws DependencyResolutionRequiredException
337   {
338     return wrapped.getRuntimeClasspathElements();
339   }
340 
341   /** {@inheritDoc} */
342   @Override
343   public List<?> getRuntimeArtifacts()
344   {
345     return wrapped.getRuntimeArtifacts();
346   }
347 
348   /** {@inheritDoc} */
349   @Override
350   public List<?> getRuntimeDependencies()
351   {
352     return wrapped.getRuntimeDependencies();
353   }
354 
355   /** {@inheritDoc} */
356   @Override
357   public List<?> getSystemClasspathElements()
358     throws DependencyResolutionRequiredException
359   {
360     return wrapped.getSystemClasspathElements();
361   }
362 
363   /** {@inheritDoc} */
364   @Override
365   public List<?> getSystemArtifacts()
366   {
367     return wrapped.getSystemArtifacts();
368   }
369 
370   /** {@inheritDoc} */
371   @Override
372   public List<?> getSystemDependencies()
373   {
374     return wrapped.getSystemDependencies();
375   }
376 
377   /** {@inheritDoc} */
378   @Override
379   public void setModelVersion(final String pomVersion)
380   {
381     wrapped.setModelVersion(pomVersion);
382   }
383 
384   /** {@inheritDoc} */
385   @Override
386   public String getModelVersion()
387   {
388     return wrapped.getModelVersion();
389   }
390 
391   /** {@inheritDoc} */
392   @Override
393   public String getId()
394   {
395     return wrapped.getId();
396   }
397 
398   /** {@inheritDoc} */
399   @Override
400   public void setGroupId(final String groupId)
401   {
402     wrapped.setGroupId(groupId);
403   }
404 
405   /** {@inheritDoc} */
406   @Override
407   public String getGroupId()
408   {
409     return wrapped.getGroupId();
410   }
411 
412   /** {@inheritDoc} */
413   @Override
414   public void setArtifactId(final String artifactId)
415   {
416     wrapped.setArtifactId(artifactId);
417   }
418 
419   /** {@inheritDoc} */
420   @Override
421   public String getArtifactId()
422   {
423     return wrapped.getArtifactId();
424   }
425 
426   /** {@inheritDoc} */
427   @Override
428   public void setName(final String name)
429   {
430     wrapped.setName(name);
431   }
432 
433   /** {@inheritDoc} */
434   @Override
435   public void setVersion(final String version)
436   {
437     wrapped.setVersion(version);
438   }
439 
440   /** {@inheritDoc} */
441   @Override
442   public String getVersion()
443   {
444     return wrapped.getVersion();
445   }
446 
447   /** {@inheritDoc} */
448   @Override
449   public String getPackaging()
450   {
451     return wrapped.getPackaging();
452   }
453 
454   /** {@inheritDoc} */
455   @Override
456   public void setPackaging(final String packaging)
457   {
458     wrapped.setPackaging(packaging);
459   }
460 
461   /** {@inheritDoc} */
462   @Override
463   public void setInceptionYear(final String inceptionYear)
464   {
465     wrapped.setInceptionYear(inceptionYear);
466   }
467 
468   /** {@inheritDoc} */
469   @Override
470   public String getInceptionYear()
471   {
472     return wrapped.getInceptionYear();
473   }
474 
475   /** {@inheritDoc} */
476   @Override
477   public void setUrl(final String url)
478   {
479     wrapped.setUrl(url);
480   }
481 
482   /** {@inheritDoc} */
483   @Override
484   public String getUrl()
485   {
486     return wrapped.getUrl();
487   }
488 
489   /** {@inheritDoc} */
490   @Override
491   public Prerequisites getPrerequisites()
492   {
493     return wrapped.getPrerequisites();
494   }
495 
496   /** {@inheritDoc} */
497   @Override
498   public void setIssueManagement(final IssueManagement issueManagement)
499   {
500     wrapped.setIssueManagement(issueManagement);
501   }
502 
503   /** {@inheritDoc} */
504   @Override
505   public CiManagement getCiManagement()
506   {
507     return wrapped.getCiManagement();
508   }
509 
510   /** {@inheritDoc} */
511   @Override
512   public void setCiManagement(final CiManagement ciManagement)
513   {
514     wrapped.setCiManagement(ciManagement);
515   }
516 
517   /** {@inheritDoc} */
518   @Override
519   public IssueManagement getIssueManagement()
520   {
521     return wrapped.getIssueManagement();
522   }
523 
524   /** {@inheritDoc} */
525   @Override
526   public void setDistributionManagement(
527       final DistributionManagement distributionManagement)
528   {
529     wrapped.setDistributionManagement(distributionManagement);
530   }
531 
532   /** {@inheritDoc} */
533   @Override
534   public DistributionManagement getDistributionManagement()
535   {
536     return wrapped.getDistributionManagement();
537   }
538 
539   /** {@inheritDoc} */
540   @Override
541   public void setDescription(final String description)
542   {
543     wrapped.setDescription(description);
544   }
545 
546   /** {@inheritDoc} */
547   @Override
548   public void setOrganization(final Organization organization)
549   {
550     wrapped.setOrganization(organization);
551   }
552 
553   /** {@inheritDoc} */
554   @Override
555   public Organization getOrganization()
556   {
557     return wrapped.getOrganization();
558   }
559 
560   /** {@inheritDoc} */
561   @Override
562   public void setScm(final Scm scm)
563   {
564     wrapped.setScm(scm);
565   }
566 
567   /** {@inheritDoc} */
568   @Override
569   public Scm getScm()
570   {
571     return wrapped.getScm();
572   }
573 
574   /** {@inheritDoc} */
575   @Override
576   @SuppressWarnings("rawtypes")
577   public void setMailingLists(final List mailingLists)
578   {
579     wrapped.setMailingLists(mailingLists);
580   }
581 
582   /** {@inheritDoc} */
583   @Override
584   public List<?> getMailingLists()
585   {
586     return wrapped.getMailingLists();
587   }
588 
589   /** {@inheritDoc} */
590   @Override
591   public void addMailingList(final MailingList mailingList)
592   {
593     wrapped.addMailingList(mailingList);
594   }
595 
596   /** {@inheritDoc} */
597   @Override
598   @SuppressWarnings("rawtypes")
599   public void setDevelopers(final List developers)
600   {
601     wrapped.setDevelopers(developers);
602   }
603 
604   /** {@inheritDoc} */
605   @Override
606   public List<?> getDevelopers()
607   {
608     return wrapped.getDevelopers();
609   }
610 
611   /** {@inheritDoc} */
612   @Override
613   public void addDeveloper(final Developer developer)
614   {
615     wrapped.addDeveloper(developer);
616   }
617 
618   /** {@inheritDoc} */
619   @Override
620   @SuppressWarnings("rawtypes")
621   public void setContributors(final List contributors)
622   {
623     wrapped.setContributors(contributors);
624   }
625 
626   /** {@inheritDoc} */
627   @Override
628   public List<?> getContributors()
629   {
630     return wrapped.getContributors();
631   }
632 
633   /** {@inheritDoc} */
634   @Override
635   public void addContributor(final Contributor contributor)
636   {
637     wrapped.addContributor(contributor);
638   }
639 
640   /** {@inheritDoc} */
641   @Override
642   public void setBuild(final Build build)
643   {
644     wrapped.setBuild(build);
645   }
646 
647   /** {@inheritDoc} */
648   @Override
649   public Build getBuild()
650   {
651     return wrapped.getBuild();
652   }
653 
654   /** {@inheritDoc} */
655   @Override
656   public List<?> getResources()
657   {
658     return wrapped.getResources();
659   }
660 
661   /** {@inheritDoc} */
662   @Override
663   public List<?> getTestResources()
664   {
665     return wrapped.getTestResources();
666   }
667 
668   /** {@inheritDoc} */
669   @Override
670   public void addResource(final Resource resource)
671   {
672     wrapped.addResource(resource);
673   }
674 
675   /** {@inheritDoc} */
676   @Override
677   public void addTestResource(final Resource testResource)
678   {
679     wrapped.addTestResource(testResource);
680   }
681 
682   /** {@inheritDoc} */
683   @Override
684   public void setReporting(final Reporting reporting)
685   {
686     wrapped.setReporting(reporting);
687   }
688 
689   /** {@inheritDoc} */
690   @Override
691   public Reporting getReporting()
692   {
693     return wrapped.getReporting();
694   }
695 
696   /** {@inheritDoc} */
697   @Override
698   @SuppressWarnings("rawtypes")
699   public void setLicenses(final List licenses)
700   {
701     wrapped.setLicenses(licenses);
702   }
703 
704   /** {@inheritDoc} */
705   @Override
706   public List<?> getLicenses()
707   {
708     return wrapped.getLicenses();
709   }
710 
711   /** {@inheritDoc} */
712   @Override
713   public void addLicense(final License license)
714   {
715     wrapped.addLicense(license);
716   }
717 
718   /** {@inheritDoc} */
719   @Override
720   @SuppressWarnings("rawtypes")
721   public void setArtifacts(final Set artifacts)
722   {
723     wrapped.setArtifacts(artifacts);
724   }
725 
726   /** {@inheritDoc} */
727   @Override
728   @SuppressWarnings("rawtypes")
729   public Set getArtifacts()
730   {
731     return wrapped.getArtifacts();
732   }
733 
734   /** {@inheritDoc} */
735   @Override
736   @SuppressWarnings("rawtypes")
737   public Map getArtifactMap()
738   {
739     return wrapped.getArtifactMap();
740   }
741 
742   /** {@inheritDoc} */
743   @Override
744   @SuppressWarnings("rawtypes")
745   public void setPluginArtifacts(final Set pluginArtifacts)
746   {
747     wrapped.setPluginArtifacts(pluginArtifacts);
748   }
749 
750   /** {@inheritDoc} */
751   @Override
752   @SuppressWarnings("rawtypes")
753   public Set getPluginArtifacts()
754   {
755     return wrapped.getPluginArtifacts();
756   }
757 
758   /** {@inheritDoc} */
759   @Override
760   @SuppressWarnings("rawtypes")
761   public Map getPluginArtifactMap()
762   {
763     return wrapped.getPluginArtifactMap();
764   }
765 
766   /** {@inheritDoc} */
767   @Override
768   @SuppressWarnings("rawtypes")
769   public void setReportArtifacts(final Set reportArtifacts)
770   {
771     wrapped.setReportArtifacts(reportArtifacts);
772   }
773 
774   /** {@inheritDoc} */
775   @Override
776   @SuppressWarnings("rawtypes")
777   public Set getReportArtifacts()
778   {
779     return wrapped.getReportArtifacts();
780   }
781 
782   /** {@inheritDoc} */
783   @Override
784   @SuppressWarnings("rawtypes")
785   public Map getReportArtifactMap()
786   {
787     return wrapped.getReportArtifactMap();
788   }
789 
790   /** {@inheritDoc} */
791   @Override
792   @SuppressWarnings("rawtypes")
793   public void setExtensionArtifacts(final Set extensionArtifacts)
794   {
795     wrapped.setExtensionArtifacts(extensionArtifacts);
796   }
797 
798   /** {@inheritDoc} */
799   @Override
800   @SuppressWarnings("rawtypes")
801   public Set getExtensionArtifacts()
802   {
803     return wrapped.getExtensionArtifacts();
804   }
805 
806   /** {@inheritDoc} */
807   @Override
808   @SuppressWarnings("rawtypes")
809   public Map getExtensionArtifactMap()
810   {
811     return wrapped.getExtensionArtifactMap();
812   }
813 
814   /** {@inheritDoc} */
815   @Override
816   public void setParentArtifact(final Artifact parentArtifact)
817   {
818     wrapped.setParentArtifact(parentArtifact);
819   }
820 
821   /** {@inheritDoc} */
822   @Override
823   public Artifact getParentArtifact()
824   {
825     return wrapped.getParentArtifact();
826   }
827 
828   /** {@inheritDoc} */
829   @Override
830   public List<?> getRepositories()
831   {
832     return wrapped.getRepositories();
833   }
834 
835   /** {@inheritDoc} */
836   @Override
837   public List<?> getReportPlugins()
838   {
839     return wrapped.getReportPlugins();
840   }
841 
842   /** {@inheritDoc} */
843   @Override
844   public List<?> getBuildPlugins()
845   {
846     return wrapped.getBuildPlugins();
847   }
848 
849   /** {@inheritDoc} */
850   @Override
851   public List<?> getModules()
852   {
853     return wrapped.getModules();
854   }
855 
856   /** {@inheritDoc} */
857   @Override
858   public PluginManagement getPluginManagement()
859   {
860     return wrapped.getPluginManagement();
861   }
862 
863   /** {@inheritDoc} */
864   @Override
865   public void addPlugin(final Plugin plugin)
866   {
867     wrapped.addPlugin(plugin);
868   }
869 
870   /** {@inheritDoc} */
871   @Override
872   public void injectPluginManagementInfo(final Plugin plugin)
873   {
874     wrapped.injectPluginManagementInfo(plugin);
875   }
876 
877   /** {@inheritDoc} */
878   @Override
879   public List<?> getCollectedProjects()
880   {
881     return wrapped.getCollectedProjects();
882   }
883 
884   /** {@inheritDoc} */
885   @Override
886   @SuppressWarnings("rawtypes")
887   public void setCollectedProjects(final List collectedProjects)
888   {
889     wrapped.setCollectedProjects(collectedProjects);
890   }
891 
892   /** {@inheritDoc} */
893   @Override
894   @SuppressWarnings("rawtypes")
895   public void setPluginArtifactRepositories(
896       final List pluginArtifactRepositories)
897   {
898     wrapped.setPluginArtifactRepositories(pluginArtifactRepositories);
899   }
900 
901   /** {@inheritDoc} */
902   @Override
903   public List<?> getPluginArtifactRepositories()
904   {
905     return wrapped.getPluginArtifactRepositories();
906   }
907 
908   /** {@inheritDoc} */
909   @Override
910   public ArtifactRepository getDistributionManagementArtifactRepository()
911   {
912     return wrapped.getDistributionManagementArtifactRepository();
913   }
914 
915   /** {@inheritDoc} */
916   @Override
917   public List<?> getPluginRepositories()
918   {
919     return wrapped.getPluginRepositories();
920   }
921 
922   /** {@inheritDoc} */
923   @Override
924   @SuppressWarnings("rawtypes")
925   public void setActiveProfiles(final List activeProfiles)
926   {
927     wrapped.setActiveProfiles(activeProfiles);
928   }
929 
930   /** {@inheritDoc} */
931   @Override
932   public List<?> getActiveProfiles()
933   {
934     return wrapped.getActiveProfiles();
935   }
936 
937   /** {@inheritDoc} */
938   @Override
939   public void addAttachedArtifact(final Artifact artifact)
940   {
941     wrapped.addAttachedArtifact(artifact);
942   }
943 
944   /** {@inheritDoc} */
945   @Override
946   public List<?> getAttachedArtifacts()
947   {
948     return wrapped.getAttachedArtifacts();
949   }
950 
951   /** {@inheritDoc} */
952   @Override
953   public Xpp3Dom getGoalConfiguration(final String pluginGroupId,
954       final String pluginArtifactId, final String executionId,
955       final String goalId)
956   {
957     return wrapped.getGoalConfiguration(pluginGroupId, pluginArtifactId,
958         executionId, goalId);
959   }
960 
961   /** {@inheritDoc} */
962   @Override
963   public Xpp3Dom getReportConfiguration(final String pluginGroupId,
964       final String pluginArtifactId, final String reportSetId)
965   {
966     return wrapped.getReportConfiguration(pluginGroupId, pluginArtifactId,
967         reportSetId);
968   }
969 
970   /** {@inheritDoc} */
971   @Override
972   public MavenProject getExecutionProject()
973   {
974     return wrapped.getExecutionProject();
975   }
976 
977   /** {@inheritDoc} */
978   @Override
979   public void setExecutionProject(final MavenProject executionProject)
980   {
981     wrapped.setExecutionProject(executionProject);
982   }
983 
984   /** {@inheritDoc} */
985   @Override
986   public void writeModel(final Writer writer) throws IOException
987   {
988     wrapped.writeModel(writer);
989   }
990 
991   /** {@inheritDoc} */
992   @Override
993   public void writeOriginalModel(final Writer writer) throws IOException
994   {
995     wrapped.writeOriginalModel(writer);
996   }
997 
998   /** {@inheritDoc} */
999   @Override
1000   @SuppressWarnings("rawtypes")
1001   public Set getDependencyArtifacts()
1002   {
1003     return wrapped.getDependencyArtifacts();
1004   }
1005 
1006   /** {@inheritDoc} */
1007   @Override
1008   @SuppressWarnings("rawtypes")
1009   public void setDependencyArtifacts(final Set dependencyArtifacts)
1010   {
1011     wrapped.setDependencyArtifacts(dependencyArtifacts);
1012   }
1013 
1014   /** {@inheritDoc} */
1015   @Override
1016   public void setReleaseArtifactRepository(
1017       final ArtifactRepository releaseArtifactRepository)
1018   {
1019     wrapped.setReleaseArtifactRepository(releaseArtifactRepository);
1020   }
1021 
1022   /** {@inheritDoc} */
1023   @Override
1024   public void setSnapshotArtifactRepository(
1025       final ArtifactRepository snapshotArtifactRepository)
1026   {
1027     wrapped.setSnapshotArtifactRepository(snapshotArtifactRepository);
1028   }
1029 
1030   /** {@inheritDoc} */
1031   @Override
1032   public void setOriginalModel(final Model originalModel)
1033   {
1034     wrapped.setOriginalModel(originalModel);
1035   }
1036 
1037   /** {@inheritDoc} */
1038   @Override
1039   public Model getOriginalModel()
1040   {
1041     return wrapped.getOriginalModel();
1042   }
1043 
1044   /** {@inheritDoc} */
1045   @Override
1046   @SuppressWarnings("rawtypes")
1047   public void setManagedVersionMap(final Map map)
1048   {
1049     wrapped.setManagedVersionMap(map);
1050   }
1051 
1052   /** {@inheritDoc} */
1053   @Override
1054   @SuppressWarnings("rawtypes")
1055   public Map getManagedVersionMap()
1056   {
1057     return wrapped.getManagedVersionMap();
1058   }
1059 
1060   /** {@inheritDoc} */
1061   @Override
1062   public boolean equals(final Object other)
1063   {
1064     return wrapped.equals(other);
1065   }
1066 
1067   /** {@inheritDoc} */
1068   @Override
1069   public int hashCode()
1070   {
1071     return wrapped.hashCode();
1072   }
1073 
1074   /** {@inheritDoc} */
1075   @Override
1076   public List<?> getBuildExtensions()
1077   {
1078     return wrapped.getBuildExtensions();
1079   }
1080 
1081   /** {@inheritDoc} */
1082   @Override
1083   @SuppressWarnings("rawtypes")
1084   public Set createArtifacts(final ArtifactFactory artifactFactory,
1085       final String inheritedScope, final ArtifactFilter dependencyFilter)
1086     throws InvalidDependencyVersionException
1087   {
1088     return wrapped.createArtifacts(artifactFactory, inheritedScope,
1089         dependencyFilter);
1090   }
1091 
1092   /** {@inheritDoc} */
1093   @Override
1094   public void addProjectReference(final MavenProject project)
1095   {
1096     wrapped.addProjectReference(project);
1097   }
1098 
1099   /** {@inheritDoc} */
1100   @Override
1101   @Deprecated
1102   public void attachArtifact(final String type, final String classifier,
1103       final File file)
1104   {
1105     wrapped.attachArtifact(type, classifier, file);
1106   }
1107 
1108   /** {@inheritDoc} */
1109   @Override
1110   public Properties getProperties()
1111   {
1112     return wrapped.getProperties();
1113   }
1114 
1115   /** {@inheritDoc} */
1116   @Override
1117   public List<?> getFilters()
1118   {
1119     return wrapped.getFilters();
1120   }
1121 
1122   /** {@inheritDoc} */
1123   @Override
1124   @SuppressWarnings("rawtypes")
1125   public Map getProjectReferences()
1126   {
1127     return wrapped.getProjectReferences();
1128   }
1129 
1130   /** {@inheritDoc} */
1131   @Override
1132   public boolean isExecutionRoot()
1133   {
1134     return wrapped.isExecutionRoot();
1135   }
1136 
1137   /** {@inheritDoc} */
1138   @Override
1139   public void setExecutionRoot(final boolean executionRoot)
1140   {
1141     wrapped.setExecutionRoot(executionRoot);
1142   }
1143 
1144   /** {@inheritDoc} */
1145   @Override
1146   public String getDefaultGoal()
1147   {
1148     return wrapped.getDefaultGoal();
1149   }
1150 
1151   /** {@inheritDoc} */
1152   @Override
1153   public void resolveActiveArtifacts()
1154   {
1155     wrapped.resolveActiveArtifacts();
1156   }
1157 
1158   /** {@inheritDoc} */
1159   @Override
1160   public Artifact replaceWithActiveArtifact(final Artifact pluginArtifact)
1161   {
1162     return wrapped.replaceWithActiveArtifact(pluginArtifact);
1163   }
1164 
1165   /** {@inheritDoc} */
1166   @Override
1167   public String toString()
1168   {
1169     return wrapped.toString();
1170   }
1171 
1172   /** {@inheritDoc} */
1173   @Override
1174   public boolean isConcrete()
1175   {
1176     return wrapped.isConcrete();
1177   }
1178 
1179   /** {@inheritDoc} */
1180   @Override
1181   public void setConcrete(final boolean concrete)
1182   {
1183     wrapped.setConcrete(concrete);
1184   }
1185 
1186   /** {@inheritDoc} */
1187   @Override
1188   public Build getDynamicBuild()
1189   {
1190     return wrapped.getDynamicBuild();
1191   }
1192 
1193   /** {@inheritDoc} */
1194   @Override
1195   public Build getOriginalInterpolatedBuild()
1196   {
1197     return wrapped.getOriginalInterpolatedBuild();
1198   }
1199 
1200   /** {@inheritDoc} */
1201   public List<?> getDynamicCompileSourceRoots()
1202   {
1203     return wrapped.getDynamicCompileSourceRoots();
1204   }
1205 
1206   /** {@inheritDoc} */
1207   @Override
1208   public List<?> getOriginalInterpolatedCompileSourceRoots()
1209   {
1210     return wrapped.getOriginalInterpolatedCompileSourceRoots();
1211   }
1212 
1213   /** {@inheritDoc} */
1214   @Override
1215   public List<?> getDynamicTestCompileSourceRoots()
1216   {
1217     return wrapped.getDynamicTestCompileSourceRoots();
1218   }
1219 
1220   /** {@inheritDoc} */
1221   @Override
1222   public List<?> getOriginalInterpolatedTestCompileSourceRoots()
1223   {
1224     return wrapped.getOriginalInterpolatedTestCompileSourceRoots();
1225   }
1226 
1227   /** {@inheritDoc} */
1228   @Override
1229   public List<?> getDynamicScriptSourceRoots()
1230   {
1231     return wrapped.getDynamicScriptSourceRoots();
1232   }
1233 
1234   /**
1235    * {@inheritDoc}
1236    */
1237   /** {@inheritDoc} */
1238   @Override
1239   public List<?> getOriginalInterpolatedScriptSourceRoots()
1240   {
1241     return wrapped.getOriginalInterpolatedScriptSourceRoots();
1242   }
1243 
1244   /**
1245    * {@inheritDoc}
1246    */
1247   /** {@inheritDoc} */
1248   @Override
1249   public void clearRestorableRoots()
1250   {
1251     wrapped.clearRestorableRoots();
1252   }
1253 
1254   /**
1255    * {@inheritDoc}
1256    */
1257   /** {@inheritDoc} */
1258   @Override
1259   public void clearRestorableBuild()
1260   {
1261     wrapped.clearRestorableBuild();
1262   }
1263 
1264   /**
1265    * {@inheritDoc}
1266    */
1267   /** {@inheritDoc} */
1268   @Override
1269   @SuppressWarnings("rawtypes")
1270   public void preserveCompileSourceRoots(
1271       final List originalInterpolatedCompileSourceRoots) // NOPMD
1272   {
1273     wrapped.preserveCompileSourceRoots(originalInterpolatedCompileSourceRoots);
1274   }
1275 
1276   /** {@inheritDoc} */
1277   @Override
1278   @SuppressWarnings("rawtypes")
1279   public void preserveTestCompileSourceRoots(
1280       final List originalInterpolatedTestCompileSourceRoots)
1281   {
1282     wrapped
1283         .preserveTestCompileSourceRoots(originalInterpolatedTestCompileSourceRoots);
1284   }
1285 
1286   /** {@inheritDoc} */
1287   @Override
1288   @SuppressWarnings("rawtypes")
1289   public void preserveScriptSourceRoots(
1290       final List originalInterpolatedScriptSourceRoots) // NOPMD
1291   {
1292     wrapped.preserveScriptSourceRoots(originalInterpolatedScriptSourceRoots);
1293   }
1294 
1295   /** {@inheritDoc} */
1296   @Override
1297   public void preserveBuild(final Build originalInterpolatedBuild)
1298   {
1299     wrapped.preserveBuild(originalInterpolatedBuild);
1300   }
1301 
1302   /** {@inheritDoc} */
1303   @Override
1304   public Properties getPreservedProperties()
1305   {
1306     return wrapped.getPreservedProperties();
1307   }
1308 
1309   /** {@inheritDoc} */
1310   @Override
1311   public void preserveProperties()
1312   {
1313     wrapped.preserveProperties();
1314   }
1315 
1316   /** {@inheritDoc} */
1317   @Override
1318   public File getPreservedBasedir()
1319   {
1320     return wrapped.getPreservedBasedir();
1321   }
1322 
1323   /** {@inheritDoc} */
1324   @Override
1325   public void preserveBasedir()
1326   {
1327     wrapped.preserveBasedir();
1328   }
1329 
1330   /** {@inheritDoc} */
1331   @Override
1332   public void setLogger(final Logger logger)
1333   {
1334     wrapped.setLogger(logger);
1335   }
1336 
1337   /** {@inheritDoc} */
1338   @Override
1339   public ProjectBuilderConfiguration getProjectBuilderConfiguration()
1340   {
1341     return wrapped.getProjectBuilderConfiguration();
1342   }
1343 
1344   /** {@inheritDoc} */
1345   @Override
1346   public void setProjectBuilderConfiguration(
1347       final ProjectBuilderConfiguration projectBuilderConfiguration)
1348   {
1349     wrapped.setProjectBuilderConfiguration(projectBuilderConfiguration);
1350   }
1351 
1352   // CHECKSTYLE:ON
1353 
1354   // --- object basics --------------------------------------------------------
1355 
1356 }