Module dev.metaschema.maven.plugin
Package dev.metaschema.maven.plugin
package dev.metaschema.maven.plugin
Provides Maven plugin goals for Metaschema-based code and schema generation.
This package contains Maven plugin Mojos that integrate Metaschema processing into Maven builds. The plugin supports generating Java binding classes and schema files (XSD and JSON Schema) from Metaschema module definitions.
Available goals:
generate-sources- Generates Java source files from Metaschema modules, bound to thegenerate-sourceslifecycle phasegenerate-schemas- Generates XML Schema (XSD) and/or JSON Schema files from Metaschema modules, bound to thegenerate-resourceslifecycle phase
Key classes:
AbstractMetaschemaMojo- Base class providing common functionality for module loading, constraint handling, and incremental build supportGenerateSourcesMojo- Generates Java binding classes from Metaschema modulesGenerateSchemaMojo- Generates schema files from Metaschema modules
Example plugin configuration:
<plugin>
<groupId>dev.metaschema</groupId>
<artifactId>metaschema-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate-sources</goal>
</goals>
</execution>
</executions>
</plugin>
- See Also:
-
ClassDescriptionAbstract base class for Metaschema Maven plugin goals.Goal which generates XML and JSON schemas for a given set of Metaschema modules.Supported schema output formats for generation.Goal which generates Java source files for a given set of Metaschema modules.