This project has moved to be a sub-project of Framework Libraries and is located here
Pull requests against this project have been disabled. Please contact one of the project owners for emergency bug fixes on this version
This project contains a plugin for using RAML documents within Maven projects. Currently, it has two purposes:
- Code generation - the plugin can be configured with arbitrary code generation modules to generate custom code from RAML documents
- RAML syntax checking - for validating the syntax of RAML documents and imported JSON schemas
For example, to generate code using a generator class ExampleGenerator
using RAML from an external
Maven dependency:
<build>
<plugins>
<plugin>
<artifactId>raml-maven-plugin</artifactId>
<groupId>uk.gov.justice.maven</groupId>
<version>1.1.1</version>
<executions>
<execution>
<configuration>
<generatorName>
uk.gov.justice.raml.maven.test.ExampleGenerator
</generatorName>
<basePackageName>uk.gov.justice.api</basePackageName>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
<sourceDirectory>CLASSPATH</sourceDirectory>
<includes>
<include>**/*external-*.raml</include>
</includes>
<excludes>
<exclude>**/*external-ignore.raml</exclude>
</excludes>
</configuration>
<goals>
<goal>generate</goal>
</goals>
<phase>generate-sources</phase>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>uk.gov.justice.maven</groupId>
<artifactId>raml-for-testing-io</artifactId>
<version>${project.version}</version>
<classifier>raml</classifier>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>