This commit is contained in:
Jason van Zyl 2005-10-19 18:40:25 +00:00
parent 659e47aa36
commit d38035b558
3 changed files with 75 additions and 0 deletions

View File

@ -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

View File

@ -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}}

View File

@ -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 <<<maven-modello-plugin>>> something like the following where you want
to generate the Java sources for the model, the xpp3 serialization code and the xpp3 deserialization code:
+----+
<project>
...
<build>
<plugins>
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<!-- Generate the xpp3 reader code -->
<goal>xpp3-reader</goal>
<!-- Generate the xpp3 writer code -->
<goal>xpp3-writer</goal>
<!-- Generate the Java sources for the model itself -->
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<model>src/main/mdo/descriptor.mdo</model>
<version>1.0.0</version>
</configuration>
</plugin>
</plugins>
</build>
...
</project>
+----+