Skip to content

Instantly share code, notes, and snippets.

@khmarbaise
Created May 3, 2011 18:34
Show Gist options
  • Save khmarbaise/953915 to your computer and use it in GitHub Desktop.
Save khmarbaise/953915 to your computer and use it in GitHub Desktop.
Test For modello configuration - xdoc of the mdo
<plugin>
<groupId>org.codehaus.modello</groupId>
<artifactId>modello-maven-plugin</artifactId>
<version>1.4.1</version>
<configuration>
<version>${mdoVersion}</version>
<models>
<model>src/main/mdo/licenses.mdo</model>
</models>
</configuration>
<executions>
<execution>
<id>mdo</id>
<phase>generate-sources</phase>
<goals>
<goal>xpp3-reader</goal>
<goal>xpp3-writer</goal>
<goal>java</goal>
<goal>xsd</goal>
</goals>
<configuration>
<useJava5>true</useJava5>
</configuration>
</execution>
<execution>
<id>mdo-site</id>
<phase>pre-site</phase>
<goals>
<goal>xsd</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/generated-site/resources/xsd</outputDirectory>
</configuration>
</execution>
<execution>
<id>xdoc-site</id>
<phase>pre-site</phase>
<goals>
<goal>xdoc</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/src/site/xdoc/</outputDirectory>
<xdocFileName>licenses-modello.xml</xdocFileName>
</configuration>
</execution>
</executions>
</plugin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment