diff --git a/maven-site/notes.txt b/maven-site/notes.txt index aed532556c..7c270448ab 100644 --- a/maven-site/notes.txt +++ b/maven-site/notes.txt @@ -29,3 +29,10 @@ Brett Porter wrote: - plugin expressions (look at bob allison's work) - overriding the central repository (use central) - description of what packagings are available and how they work +- creating upload bundles +- modello example +- changing the snapshot policy frequency +- overriding central repo +- using POM info in applications: the POM is packaged so there is acccess + continuum example to get the version. +- quick description of scm,wagon,continuum diff --git a/maven-site/src/site/apt/guides/index.apt b/maven-site/src/site/apt/guides/index.apt index 6d106dddfd..1377499f08 100644 --- a/maven-site/src/site/apt/guides/index.apt +++ b/maven-site/src/site/apt/guides/index.apt @@ -70,6 +70,8 @@ Documentation * {{{mini/guide-using-extensions.html}Guide to using Extensions}} + * {{{mini/guide-using-modello.htmlt}Guide to using Modello}} + * {{{mini/guide-webapp.html}Guide to Webapps}} diff --git a/maven-site/src/site/apt/guides/mini/guide-using-modello.apt b/maven-site/src/site/apt/guides/mini/guide-using-modello.apt new file mode 100644 index 0000000000..510f7c39ee --- /dev/null +++ b/maven-site/src/site/apt/guides/mini/guide-using-modello.apt @@ -0,0 +1,66 @@ + ------ + Guide to using Modello + ------ + Jason van Zyl + ------ + 12 October 2005 + ------ + +Guide to using Modello + + Modello is a tool for generating resources from a simple model. From a simple model you can generate + things like: + + * Java sources + + * XML serialization code for the model + + * XML deserialization code for model + + * Model documentation + + * XSD + + * JDO bindings + + [] + + A typical modello model looks like the following: + +%{snippet|id=modello-model|url=http://svn.apache.org/repos/asf/maven/components/trunk/maven-archetype/maven-archetype-core/src/main/mdo/archetype.mdo} + + To utilize Modello you would configure the <<>> something like the following where you want + to generate the Java sources for the model, the xpp3 serialization code and the xpp3 deserialization code: + ++----+ + + + ... + + + + org.codehaus.modello + modello-maven-plugin + + + + + xpp3-reader + + xpp3-writer + + java + + + + + src/main/mdo/descriptor.mdo + 1.0.0 + + + + + ... + + ++----+ \ No newline at end of file