mirror of https://github.com/apache/maven.git
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@326641 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
659e47aa36
commit
d38035b558
|
@ -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
|
||||
|
|
|
@ -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}}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
+----+
|
Loading…
Reference in New Issue