Last active
June 9, 2016 16:28
-
-
Save arthurfnsc/59b09086de23b2ac4b31641d32c25570 to your computer and use it in GitHub Desktop.
RAML 2 JAX-RS Maven plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<groupId>org.raml.plugins</groupId> | |
<artifactId>raml-jaxrs-maven-plugin</artifactId> | |
<version>1.3.5-SNAPSHOT</version> | |
<configuration> | |
<!-- Use sourcePaths if you want to provide a single RAML file or | |
a list of RAML files --> | |
<sourceDirectory>${basedir}/raml</sourceDirectory> | |
<!-- Optionally configure outputDirectory if you don't like the default | |
value: ${project.build.directory}/generated-sources/raml-JAX-RS --> | |
<!-- Replace with your package name --> | |
<basePackageName>com.acme.api</basePackageName> | |
<useSourceHierarchyInPackageName>true</useSourceHierarchyInPackageName> | |
<!-- Valid values: 1.1 2.0 --> | |
<jaxrsVersion>2.0</jaxrsVersion> | |
<useJsr303Annotations>false</useJsr303Annotations> | |
<!-- Valid values: jackson1 jackson2 gson none --> | |
<jsonMapper>jackson2</jsonMapper> | |
<removeOldOutput>true</removeOldOutput> | |
<!-- Optionally set extensions to a list of fully qualified names | |
of classes that implement org.raml.jaxrs.codegen.core.ext.GeneratorExtension --> | |
<!-- for example: <extensions> <param>com.abc.AuthorizationAnnotationExtension</param> | |
<param>com.abc.ParameterFilterExtension</param> </extensions> Custom annotator | |
for json schema to pojo convertor <customAnnotator>com.abc.MyCustomAnnotator</customAnnotator> --> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>generate</goal> | |
</goals> | |
<phase>generate-sources</phase> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment