View Javadoc

1   package org.scala_tools.maven.model;
2   
3   import java.io.File;
4   import java.io.IOException;
5   import java.io.Writer;
6   import java.util.List;
7   import java.util.Map;
8   import java.util.Properties;
9   import java.util.Set;
10  
11  import org.apache.maven.artifact.Artifact;
12  import org.apache.maven.artifact.DependencyResolutionRequiredException;
13  import org.apache.maven.artifact.factory.ArtifactFactory;
14  import org.apache.maven.artifact.repository.ArtifactRepository;
15  import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
16  import org.apache.maven.model.Build;
17  import org.apache.maven.model.CiManagement;
18  import org.apache.maven.model.Contributor;
19  import org.apache.maven.model.Dependency;
20  import org.apache.maven.model.DependencyManagement;
21  import org.apache.maven.model.Developer;
22  import org.apache.maven.model.DistributionManagement;
23  import org.apache.maven.model.IssueManagement;
24  import org.apache.maven.model.License;
25  import org.apache.maven.model.MailingList;
26  import org.apache.maven.model.Model;
27  import org.apache.maven.model.Organization;
28  import org.apache.maven.model.Plugin;
29  import org.apache.maven.model.PluginManagement;
30  import org.apache.maven.model.Prerequisites;
31  import org.apache.maven.model.Profile;
32  import org.apache.maven.model.Reporting;
33  import org.apache.maven.model.Repository;
34  import org.apache.maven.model.Resource;
35  import org.apache.maven.model.Scm;
36  import org.apache.maven.project.MavenProject;
37  import org.apache.maven.project.artifact.InvalidDependencyVersionException;
38  import org.codehaus.plexus.util.xml.Xpp3Dom;
39  
40  public class MavenProjectAdapter {
41  
42  	final MavenProject wrapped;
43  
44  	public MavenProjectAdapter(MavenProject project) {
45  		this.wrapped = project;
46  	}
47  
48  	@SuppressWarnings("unchecked")
49  	public List<Profile> getActiveProfiles() {
50  		return wrapped.getActiveProfiles();
51  	}
52  
53  	@SuppressWarnings("unchecked")
54  	public Map<String, Artifact> getArtifactMap() {
55  		return wrapped.getArtifactMap();
56  	}
57  
58  	@SuppressWarnings("unchecked")
59  	public Set<Artifact> getArtifacts() {
60  		return wrapped.getArtifacts();
61  	}
62  
63  	@SuppressWarnings("unchecked")
64  	public List<Artifact> getAttachedArtifacts() {
65  		return wrapped.getAttachedArtifacts();
66  	}
67  
68  	@SuppressWarnings("unchecked")
69  	public List<Plugin> getBuildPlugins() {
70  		return wrapped.getBuildPlugins();
71  	}
72  
73  	@SuppressWarnings("unchecked")
74  	public List<MavenProject> getCollectedProjects() {
75  		// TODO Auto-generated method stub
76  		return wrapped.getCollectedProjects();
77  	}
78  
79  	@SuppressWarnings("unchecked")
80  	public List<Artifact> getCompileArtifacts() {
81  		return wrapped.getCompileArtifacts();
82  	}
83  
84  	@SuppressWarnings("unchecked")
85  	public List<String> getCompileClasspathElements()
86  			throws DependencyResolutionRequiredException {
87  		return wrapped.getCompileClasspathElements();
88  	}
89  
90  	@SuppressWarnings("unchecked")
91  	public List<Dependency> getCompileDependencies() {
92  		return wrapped.getCompileDependencies();
93  	}
94  
95  	@SuppressWarnings("unchecked")
96  	public List<String> getCompileSourceRoots() {
97  		return wrapped.getCompileSourceRoots();
98  	}
99  
100 	@SuppressWarnings("unchecked")
101 	public List<Contributor> getContributors() {
102 		return wrapped.getContributors();
103 	}
104 
105 	@SuppressWarnings("unchecked")
106 	public List<Dependency> getDependencies() {
107 		return wrapped.getDependencies();
108 	}
109 
110 	@SuppressWarnings("unchecked")
111 	public Set<Artifact> getDependencyArtifacts() {
112 		return wrapped.getDependencyArtifacts();
113 	}
114 
115 	@SuppressWarnings("unchecked")
116 	public List<Developer> getDevelopers() {
117 		return wrapped.getDevelopers();
118 	}
119 
120 	@SuppressWarnings("unchecked")
121 	public Map<String, Artifact> getExtensionArtifactMap() {
122 		return wrapped.getExtensionArtifactMap();
123 	}
124 
125 	@SuppressWarnings("unchecked")
126 	public Set<Artifact> getExtensionArtifacts() {
127 		return wrapped.getExtensionArtifacts();
128 	}
129 
130 	@SuppressWarnings("unchecked")
131 	public List<String> getFilters() {
132 		return wrapped.getFilters();
133 	}
134 
135 	@SuppressWarnings("unchecked")
136 	public List<License> getLicenses() {
137 		return wrapped.getLicenses();
138 	}
139 
140 	@SuppressWarnings("unchecked")
141 	public List<MailingList> getMailingLists() {
142 		return wrapped.getMailingLists();
143 	}
144 
145 	@SuppressWarnings("unchecked")
146 	public Map getManagedVersionMap() {
147 		// TODO Figure out what is here
148 		return wrapped.getManagedVersionMap();
149 	}
150 
151 	@SuppressWarnings("unchecked")
152 	public List<String> getModules() {
153 		return wrapped.getModules();
154 	}
155 
156 	@SuppressWarnings("unchecked")
157 	public Map<String, Artifact> getPluginArtifactMap() {
158 		return wrapped.getPluginArtifactMap();
159 	}
160 
161 	@SuppressWarnings("unchecked")
162 	public List<ArtifactRepository> getPluginArtifactRepositories() {
163 		return wrapped.getPluginArtifactRepositories();
164 	}
165 
166 	@SuppressWarnings("unchecked")
167 	public Set<Artifact> getPluginArtifacts() {
168 		return wrapped.getPluginArtifacts();
169 	}
170 
171 	@SuppressWarnings("unchecked")
172 	public List<Repository> getPluginRepositories() {
173 		return wrapped.getPluginRepositories();
174 	}
175 
176 	@SuppressWarnings("unchecked")
177 	public Map<String, MavenProject> getProjectReferences() {
178 		return wrapped.getProjectReferences();
179 	}
180 
181 	@SuppressWarnings("unchecked")
182 	public List<ArtifactRepository> getRemoteArtifactRepositories() {
183 		return wrapped.getRemoteArtifactRepositories();
184 	}
185 
186 	@SuppressWarnings("unchecked")
187 	public Map<String, Artifact> getReportArtifactMap() {
188 		return wrapped.getReportArtifactMap();
189 	}
190 
191 	@SuppressWarnings("unchecked")
192 	public Set<Artifact> getReportArtifacts() {
193 		return wrapped.getReportArtifacts();
194 	}
195 
196 	@SuppressWarnings("unchecked")
197 	public List<Plugin> getReportPlugins() {
198 		return wrapped.getReportPlugins();
199 	}
200 
201 	@SuppressWarnings("unchecked")
202 	public List<Repository> getRepositories() {
203 		return wrapped.getRepositories();
204 	}
205 
206 	@SuppressWarnings("unchecked")
207 	public List<Resource> getResources() {
208 		return wrapped.getResources();
209 	}
210 
211 	@SuppressWarnings("unchecked")
212 	public List<Artifact> getRuntimeArtifacts() {
213 		return wrapped.getRuntimeArtifacts();
214 	}
215 
216 	@SuppressWarnings("unchecked")
217 	public List<String> getRuntimeClasspathElements()
218 			throws DependencyResolutionRequiredException {
219 		return wrapped.getRuntimeClasspathElements();
220 	}
221 
222 	@SuppressWarnings("unchecked")
223 	public List<Dependency> getRuntimeDependencies() {
224 		return wrapped.getRuntimeDependencies();
225 	}
226 
227 	@SuppressWarnings("unchecked")
228 	public List<String> getScriptSourceRoots() {
229 		return wrapped.getScriptSourceRoots();
230 	}
231 
232 	@SuppressWarnings("unchecked")
233 	public List<Artifact> getSystemArtifacts() {
234 		return wrapped.getSystemArtifacts();
235 	}
236 
237 	@SuppressWarnings("unchecked")
238 	public List<String> getSystemClasspathElements()
239 			throws DependencyResolutionRequiredException {
240 		return wrapped.getSystemClasspathElements();
241 	}
242 
243 	@SuppressWarnings("unchecked")
244 	public List<Dependency> getSystemDependencies() {
245 		return wrapped.getSystemDependencies();
246 	}
247 
248 	@SuppressWarnings("unchecked")
249 	public List<Artifact> getTestArtifacts() {
250 		return wrapped.getTestArtifacts();
251 	}
252 
253 	@SuppressWarnings("unchecked")
254 	public List<String> getTestClasspathElements()
255 			throws DependencyResolutionRequiredException {
256 		return wrapped.getTestClasspathElements();
257 	}
258 
259 	@SuppressWarnings("unchecked")
260 	public List<String> getTestCompileSourceRoots() {
261 		return wrapped.getTestCompileSourceRoots();
262 	}
263 
264 	@SuppressWarnings("unchecked")
265 	public List<Dependency> getTestDependencies() {
266 		return wrapped.getTestDependencies();
267 	}
268 
269 	@SuppressWarnings("unchecked")
270 	public List<Resource> getTestResources() {
271 		return wrapped.getTestResources();
272 	}
273 
274 	/**
275 	 * Returns the property identified by the string. Multiple objects are
276 	 * checked to resolve the property:
277 	 * <ol>
278 	 * <li>The system properties (System.getProperty(key))</li>
279 	 * <li>The environment properties (System.getenv(key))</li>
280 	 * <li>The project properties (project.getProperty(key))</li>
281 	 * <li>
282 	 * The "standard" properties that one can reference in the pom. IE
283 	 * artifactId, build.directory, etc... Note: If the variable starts with
284 	 * project it may be dropped It is recommended that instead of using this
285 	 * method that you use get... (getArtifactId(),
286 	 * getBuild().getBuildDirectory)</li>
287 	 * </ol>
288 	 * first checked, then Environment variables, then the Project properties
289 	 * 
290 	 * @param key
291 	 * @return
292 	 */
293 	public String apply(String key) {
294 		if (key == null) {
295 			return null;
296 		}
297 		if (System.getProperty(key) != null) {
298 			return System.getProperty(key);
299 		}
300 		if (System.getenv(key) != null) {
301 			return System.getenv(key);
302 		}
303 		if (key.equals("build.directory")
304 				|| key.equals("project.build.directory")
305 				|| key.equals("buildDirectory")
306 				|| key.equals("project.buildDirectory")) {
307 			return getBuild().getDirectory();
308 		}
309 		if (key.equals("outputDirectory")
310 				|| key.equals("project.outputDirectory")
311 				|| key.equals("output.directory")
312 				|| key.equals("project.output.directory"))
313 			return getBuild().getOutputDirectory();
314 
315 		if (key.equals("artifactId") || key.equals("project.artifactId")) {
316 			return getArtifactId();
317 		}
318 
319 		if (key.equals("basedir") || key.equals("project.basedir"))
320 			return getBasedir().getAbsolutePath();
321 
322 		if (key.equals("defaultGoal") || key.equals("project.defaultGoal"))
323 			return getBuild().getDefaultGoal();
324 
325 		if (key.equals("finalName") || key.equals("project.finalName"))
326 			return getBuild().getFinalName();
327 		if (key.equals("scriptSourceDirectory")
328 				|| key.equals("project.scriptSourceDirectory")
329 				|| key.equals("script.source.directory")
330 				|| key.equals("project.script.source.directory"))
331 			return getBuild().getScriptSourceDirectory();
332 		if (key.equals("source.directory")
333 				|| key.equals("project.source.directory")
334 				|| key.equals("sourceDirectory")
335 				|| key.equals("project.sourceDirectory"))
336 			return getBuild().getSourceDirectory();
337 		if (key.equals("test.output.directory")
338 				|| key.equals("project.test.output.directory")
339 				|| key.equals("testOutputDirectory")
340 				|| key.equals("project.testOutputDirectory"))
341 			return getBuild().getTestOutputDirectory();
342 		if (key.equals("test.source.directory")
343 				|| key.equals("project.test.source.directory")
344 				|| key.equals("testSourceDirectory")
345 				|| key.equals("project.testSourceDirectory"))
346 			return getBuild().getTestSourceDirectory();
347 		if (key.equals("directory") || key.equals("project.directory"))
348 			return getDescription();
349 		if (key.equals("pom"))
350 			return getFile().getAbsolutePath();
351 		if (key.equals("groupId") || key.equals("project.groupId"))
352 			return getGroupId();
353 		if (key.equals("id") || key.equals("project.id"))
354 			return getId();
355 		if (key.equals("inception") || key.equals("project.inception")
356 				|| key.equals("inceptionYear")
357 				|| key.equals("project.inceptionYear")
358 				|| key.equals("inception.year")
359 				|| key.equals("project.inception.year"))
360 			return getInceptionYear();
361 		if (key.equals("name") || key.equals("project.name"))
362 			return getName();
363 		if (key.equals("packaging") || key.equals("project.packaging"))
364 			return getModel().getPackaging();
365 		if (key.equals("url") || key.equals("project.url"))
366 			return getModel().getUrl();
367 		if (key.equals("version") || key.equals("project.version"))
368 			return getModel().getVersion();
369 
370 		return wrapped.getProperties().getProperty(key);
371 	}
372 
373 	public String apply(String key, String defaultValue) {
374 		String result = apply(key);
375 		if (result == null) {
376 			return defaultValue;
377 		} else {
378 			return result;
379 		}
380 	}
381 
382 	public void update(String key, String value) {
383 		if (key.equals("build.directory")
384 				|| key.equals("project.build.directory")
385 				|| key.equals("buildDirectory")
386 				|| key.equals("project.buildDirectory")) {
387 			getBuild().setDirectory(value);
388 		} else if (key.equals("outputDirectory")
389 				|| key.equals("project.outputDirectory")
390 				|| key.equals("output.directory")
391 				|| key.equals("project.output.directory")) {
392 			getBuild().setOutputDirectory(value);
393 		} else if (key.equals("artifactId") || key.equals("project.artifactId")) {
394 			setArtifactId(value);
395 		} else if (key.equals("defaultGoal")
396 				|| key.equals("project.defaultGoal")) {
397 			getBuild().setDefaultGoal(value);
398 		} else if (key.equals("finalName") || key.equals("project.finalName")) {
399 			getBuild().setFinalName(value);
400 		} else if (key.equals("scriptSourceDirectory")
401 				|| key.equals("project.scriptSourceDirectory")
402 				|| key.equals("script.source.directory")
403 				|| key.equals("project.script.source.directory")) {
404 			getBuild().setScriptSourceDirectory(value);
405 		} else if (key.equals("source.directory")
406 				|| key.equals("project.source.directory")
407 				|| key.equals("sourceDirectory")
408 				|| key.equals("project.sourceDirectory")) {
409 			getBuild().setSourceDirectory(value);
410 		} else if (key.equals("test.output.directory")
411 				|| key.equals("project.test.output.directory")
412 				|| key.equals("testOutputDirectory")
413 				|| key.equals("project.testOutputDirectory")) {
414 			getBuild().setTestOutputDirectory(value);
415 		} else if (key.equals("test.source.directory")
416 				|| key.equals("project.test.source.directory")
417 				|| key.equals("testSourceDirectory")
418 				|| key.equals("project.testSourceDirectory")) {
419 			getBuild().setTestSourceDirectory(value);
420 		} else if (key.equals("directory") || key.equals("project.directory")) {
421 			setDescription(value);
422 		} else if (key.equals("pom")) {
423 			setFile(new File(value));
424 		} else if (key.equals("groupId") || key.equals("project.groupId")) {
425 			setGroupId(value);
426 		} else if (key.equals("inception") || key.equals("project.inception")
427 				|| key.equals("inceptionYear")
428 				|| key.equals("project.inceptionYear")
429 				|| key.equals("inception.year")
430 				|| key.equals("project.inception.year")) {
431 			setInceptionYear(value);
432 		} else if (key.equals("name") || key.equals("project.name")) {
433 			setName(value);
434 		} else if (key.equals("packaging") || key.equals("project.packaging")) {
435 			getModel().setPackaging(value);
436 		} else if (key.equals("url") || key.equals("project.url")) {
437 			getModel().setUrl(value);
438 		} else if (key.equals("version") || key.equals("project.version")) {
439 			getModel().setVersion(value);
440 		} else {
441 			wrapped.getProperties().setProperty(key, value);
442 		}
443 	}
444 
445 	public void update(String key, int value) {
446 		update(key, String.valueOf(value));
447 	}
448 
449 	public void update(String key, boolean value) {
450 		update(key, String.valueOf(value));
451 	}
452 
453 	public void update(String key, double value) {
454 		update(key, String.valueOf(value));
455 	}
456 
457 	public void update(String key, long value) {
458 		update(key, String.valueOf(value));
459 	}
460 
461 	public void update(String key, char value) {
462 		update(key, String.valueOf(value));
463 	}
464 
465 	public void update(String key, float value) {
466 		update(key, String.valueOf(value));
467 	}
468 
469 	public void update(String key, byte value) {
470 		update(key, String.valueOf(value));
471 	}
472 
473 	public void addAttachedArtifact(Artifact artifact) {
474 		wrapped.addAttachedArtifact(artifact);
475 	}
476 
477 	public void addCompileSourceRoot(String path) {
478 		wrapped.addCompileSourceRoot(path);
479 	}
480 
481 	public void addContributor(Contributor contributor) {
482 		wrapped.addContributor(contributor);
483 	}
484 
485 	public void addDeveloper(Developer developer) {
486 		wrapped.addDeveloper(developer);
487 	}
488 
489 	public void addLicense(License license) {
490 		wrapped.addLicense(license);
491 	}
492 
493 	public void addMailingList(MailingList mailingList) {
494 		wrapped.addMailingList(mailingList);
495 	}
496 
497 	public void addPlugin(Plugin plugin) {
498 		wrapped.addPlugin(plugin);
499 	}
500 
501 	public void addProjectReference(MavenProject project) {
502 		wrapped.addProjectReference(project);
503 	}
504 
505 	public void addResource(Resource resource) {
506 		wrapped.addResource(resource);
507 	}
508 
509 	public void addScriptSourceRoot(String path) {
510 		wrapped.addScriptSourceRoot(path);
511 	}
512 
513 	public void addTestCompileSourceRoot(String path) {
514 		wrapped.addTestCompileSourceRoot(path);
515 	}
516 
517 	public void addTestResource(Resource testResource) {
518 		wrapped.addTestResource(testResource);
519 	}
520 
521 	@SuppressWarnings("unchecked")
522 	public Set<Artifact> createArtifacts(ArtifactFactory artifactFactory,
523 			String inheritedScope, ArtifactFilter dependencyFilter)
524 			throws InvalidDependencyVersionException {
525 		return wrapped.createArtifacts(artifactFactory, inheritedScope,
526 				dependencyFilter);
527 	}
528 
529 	public boolean equals(Object arg0) {
530 		return wrapped.equals(arg0);
531 	}
532 
533 	public Artifact getArtifact() {
534 		return wrapped.getArtifact();
535 	}
536 
537 	public String getArtifactId() {
538 		return wrapped.getArtifactId();
539 	}
540 
541 	public File getBasedir() {
542 		return wrapped.getBasedir();
543 	}
544 
545 	public Build getBuild() {
546 		return wrapped.getBuild();
547 	}
548 
549 	public List getBuildExtensions() {
550 		return wrapped.getBuildExtensions();
551 	}
552 
553 	public CiManagement getCiManagement() {
554 		return wrapped.getCiManagement();
555 	}
556 
557 	public String getDefaultGoal() {
558 		return wrapped.getDefaultGoal();
559 	}
560 
561 	public DependencyManagement getDependencyManagement() {
562 		return wrapped.getDependencyManagement();
563 	}
564 
565 	public String getDescription() {
566 		return wrapped.getDescription();
567 	}
568 
569 	public DistributionManagement getDistributionManagement() {
570 		return wrapped.getDistributionManagement();
571 	}
572 
573 	public ArtifactRepository getDistributionManagementArtifactRepository() {
574 		return wrapped.getDistributionManagementArtifactRepository();
575 	}
576 
577 	public MavenProject getExecutionProject() {
578 		return wrapped.getExecutionProject();
579 	}
580 
581 	public File getFile() {
582 		return wrapped.getFile();
583 	}
584 
585 	public Xpp3Dom getGoalConfiguration(String arg0, String arg1, String arg2,
586 			String arg3) {
587 		return wrapped.getGoalConfiguration(arg0, arg1, arg2, arg3);
588 	}
589 
590 	public String getGroupId() {
591 		return wrapped.getGroupId();
592 	}
593 
594 	public String getId() {
595 		return wrapped.getId();
596 	}
597 
598 	public String getInceptionYear() {
599 		return wrapped.getInceptionYear();
600 	}
601 
602 	public IssueManagement getIssueManagement() {
603 		return wrapped.getIssueManagement();
604 	}
605 
606 	public Model getModel() {
607 		return wrapped.getModel();
608 	}
609 
610 	public String getModelVersion() {
611 		return wrapped.getModelVersion();
612 	}
613 
614 	public String getModulePathAdjustment(MavenProject arg0) throws IOException {
615 		return wrapped.getModulePathAdjustment(arg0);
616 	}
617 
618 	public String getName() {
619 		return wrapped.getName();
620 	}
621 
622 	public Organization getOrganization() {
623 		return wrapped.getOrganization();
624 	}
625 
626 	public Model getOriginalModel() {
627 		return wrapped.getOriginalModel();
628 	}
629 
630 	public String getPackaging() {
631 		return wrapped.getPackaging();
632 	}
633 
634 	public MavenProject getParent() {
635 		return wrapped.getParent();
636 	}
637 
638 	public Artifact getParentArtifact() {
639 		return wrapped.getParentArtifact();
640 	}
641 
642 	public PluginManagement getPluginManagement() {
643 		return wrapped.getPluginManagement();
644 	}
645 
646 	public Prerequisites getPrerequisites() {
647 		return wrapped.getPrerequisites();
648 	}
649 
650 	public Properties getProperties() {
651 		return wrapped.getProperties();
652 	}
653 
654 	public Xpp3Dom getReportConfiguration(String arg0, String arg1, String arg2) {
655 		return wrapped.getReportConfiguration(arg0, arg1, arg2);
656 	}
657 
658 	public Reporting getReporting() {
659 		return wrapped.getReporting();
660 	}
661 
662 	public Scm getScm() {
663 		return wrapped.getScm();
664 	}
665 
666 	public String getUrl() {
667 		return wrapped.getUrl();
668 	}
669 
670 	public String getVersion() {
671 		return wrapped.getVersion();
672 	}
673 
674 	public int hashCode() {
675 		return wrapped.hashCode();
676 	}
677 
678 	public boolean hasParent() {
679 		return wrapped.hasParent();
680 	}
681 
682 	public void injectPluginManagementInfo(Plugin arg0) {
683 		wrapped.injectPluginManagementInfo(arg0);
684 	}
685 
686 	public boolean isExecutionRoot() {
687 		return wrapped.isExecutionRoot();
688 	}
689 
690 	public Artifact replaceWithActiveArtifact(Artifact arg0) {
691 		return wrapped.replaceWithActiveArtifact(arg0);
692 	}
693 
694 	public void setActiveProfiles(List<Profile> activeProfiles) {
695 		wrapped.setActiveProfiles(activeProfiles);
696 	}
697 
698 	public void setArtifact(Artifact artifact) {
699 		wrapped.setArtifact(artifact);
700 	}
701 
702 	public void setArtifactId(String artifactId) {
703 		wrapped.setArtifactId(artifactId);
704 	}
705 
706 	public void setArtifacts(Set<Artifact> artifacts) {
707 		wrapped.setArtifacts(artifacts);
708 	}
709 
710 	public void setBuild(Build build) {
711 		wrapped.setBuild(build);
712 	}
713 
714 	public void setCiManagement(CiManagement ciManagement) {
715 		wrapped.setCiManagement(ciManagement);
716 	}
717 
718 	public void setCollectedProjects(List<MavenProject> collectedProjects) {
719 		wrapped.setCollectedProjects(collectedProjects);
720 	}
721 
722 	public void setContributors(List<Contributor> contributors) {
723 		wrapped.setContributors(contributors);
724 	}
725 
726 	public void setDependencies(List dependencies) {
727 		wrapped.setDependencies(dependencies);
728 	}
729 
730 	public void setDependencyArtifacts(Set dependencyArtifacts) {
731 		wrapped.setDependencyArtifacts(dependencyArtifacts);
732 	}
733 
734 	public void setDescription(String description) {
735 		wrapped.setDescription(description);
736 	}
737 
738 	public void setDevelopers(List developers) {
739 		wrapped.setDevelopers(developers);
740 	}
741 
742 	public void setDistributionManagement(
743 			DistributionManagement distributionManagement) {
744 		wrapped.setDistributionManagement(distributionManagement);
745 	}
746 
747 	public void setExecutionProject(MavenProject executionProject) {
748 		wrapped.setExecutionProject(executionProject);
749 	}
750 
751 	public void setExecutionRoot(boolean executionRoot) {
752 		wrapped.setExecutionRoot(executionRoot);
753 	}
754 
755 	public void setExtensionArtifacts(Set extensionArtifacts) {
756 		wrapped.setExtensionArtifacts(extensionArtifacts);
757 	}
758 
759 	public void setFile(File file) {
760 		wrapped.setFile(file);
761 	}
762 
763 	public void setGroupId(String groupId) {
764 		wrapped.setGroupId(groupId);
765 	}
766 
767 	public void setInceptionYear(String inceptionYear) {
768 		wrapped.setInceptionYear(inceptionYear);
769 	}
770 
771 	public void setIssueManagement(IssueManagement issueManagement) {
772 		wrapped.setIssueManagement(issueManagement);
773 	}
774 
775 	public void setLicenses(List licenses) {
776 		wrapped.setLicenses(licenses);
777 	}
778 
779 	public void setMailingLists(List mailingLists) {
780 		wrapped.setMailingLists(mailingLists);
781 	}
782 
783 	public void setManagedVersionMap(Map map) {
784 		wrapped.setManagedVersionMap(map);
785 	}
786 
787 	public void setModelVersion(String pomVersion) {
788 		wrapped.setModelVersion(pomVersion);
789 	}
790 
791 	public void setName(String name) {
792 		wrapped.setName(name);
793 	}
794 
795 	public void setOrganization(Organization organization) {
796 		wrapped.setOrganization(organization);
797 	}
798 
799 	public void setOriginalModel(Model originalModel) {
800 		wrapped.setOriginalModel(originalModel);
801 	}
802 
803 	public void setPackaging(String packaging) {
804 		wrapped.setPackaging(packaging);
805 	}
806 
807 	public void setParent(MavenProject parent) {
808 		wrapped.setParent(parent);
809 	}
810 
811 	public void setParentArtifact(Artifact parentArtifact) {
812 		wrapped.setParentArtifact(parentArtifact);
813 	}
814 
815 	public void setPluginArtifactRepositories(List pluginArtifactRepositories) {
816 		wrapped.setPluginArtifactRepositories(pluginArtifactRepositories);
817 	}
818 
819 	public void setPluginArtifacts(Set pluginArtifacts) {
820 		wrapped.setPluginArtifacts(pluginArtifacts);
821 	}
822 
823 	public void setReleaseArtifactRepository(
824 			ArtifactRepository releaseArtifactRepository) {
825 		wrapped.setReleaseArtifactRepository(releaseArtifactRepository);
826 	}
827 
828 	public void setRemoteArtifactRepositories(List remoteArtifactRepositories) {
829 		wrapped.setRemoteArtifactRepositories(remoteArtifactRepositories);
830 	}
831 
832 	public void setReportArtifacts(Set reportArtifacts) {
833 		wrapped.setReportArtifacts(reportArtifacts);
834 	}
835 
836 	public void setReporting(Reporting reporting) {
837 		wrapped.setReporting(reporting);
838 	}
839 
840 	public void setScm(Scm scm) {
841 		wrapped.setScm(scm);
842 	}
843 
844 	public void setSnapshotArtifactRepository(
845 			ArtifactRepository snapshotArtifactRepository) {
846 		wrapped.setSnapshotArtifactRepository(snapshotArtifactRepository);
847 	}
848 
849 	public void setUrl(String url) {
850 		wrapped.setUrl(url);
851 	}
852 
853 	public void setVersion(String version) {
854 		wrapped.setVersion(version);
855 	}
856 
857 	public String toString() {
858 		return wrapped.toString();
859 	}
860 
861 	public void writeModel(Writer writer) throws IOException {
862 		wrapped.writeModel(writer);
863 	}
864 
865 	public void writeOriginalModel(Writer writer) throws IOException {
866 		wrapped.writeOriginalModel(writer);
867 	}
868 
869 	public MavenProject getWrapped() {
870 		return wrapped;
871 	}
872 
873 }