This Maven plugin is designed to generate a service's RAML specifications during the build process of the application.
<dependency>
<groupId>net.ozwolf</groupId>
<artifactId>dropwizard-raml-maven-plugin</artifactId>
<version>2.1.0</version>
</dependency>
compile 'net.ozwolf:dropwizard-raml-maven-plugin:2.1.0'
generate
(default tocompile
phase)- Generate the RAML specification for the service.
The RAML plugin takes three configuration properties:
basePackage
- the base package of your applicationversion
(optional, default${project.version}
) - the application version the RAML specification will be built againstoutputFile
(optional, default${basedir}/target/classes/apidocs/apidocs.raml
) - the file that will be created. If this is changed to be outside of thetarget/classes
path, obviously it won't be considered part of the compiled application.
<plugin>
<groupId>net.ozwolf</groupId>
<artifactId>dropwizard-raml-maven-plugin</artifactId>
<version>2.1.0</version>
<configuration>
<basePackage>net.ozwolf.raml.example</basePackage>
</configuration>
</plugin>