Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Code generation for multiple RAML files - using maven plugin #315

Closed
vijayrcse opened this issue Oct 23, 2017 · 3 comments
Closed

Code generation for multiple RAML files - using maven plugin #315

vijayrcse opened this issue Oct 23, 2017 · 3 comments

Comments

@vijayrcse
Copy link

vijayrcse commented Oct 23, 2017

Hi

I have multiple RAML files in by maven project. How to configure the maven plugin such that code generation happens for all the RAML

Currently I have something like below. How to change below so I can provide multiple RAML files references

<plugin> 
<groupId>org.raml.jaxrs</groupId> 
<artifactId>raml-to-jaxrs-maven-plugin</artifactId> 
<version>${project.version}</version> 
<configuration> 
  **<ramlFile>${project.build.resources[0].directory}/types_user_defined.raml</ramlFile>** 
  <resourcePackage>example.resources</resourcePackage> 
  <modelPackage>example.model</modelPackage> 
  <resourcePackage>example.types</resourcePackage> 
  <supportPackage>example.support</supportPackage> 
  <generateTypesWith> 
    <value>jackson</value> 
  </generateTypesWith> 
</configuration> 
</plugin>
@jpbelang
Copy link
Contributor

I'm trying to configure the mojo for multiple executions, but for some reason, configuration-per-execution isn't working. I can't figure out why this is failing. I have some questions pending.

@jpbelang
Copy link
Contributor

jpbelang commented Nov 6, 2017

I've added an example of multiple files in one of the examples(I've actually changed the plugin)

raml-to-jaxrs/examples/maven-examples/raml-defined-example/pom.xml

If the ramlFile is a directory, the the includes and excludes kick in. We do a recursive search for files.

@vijayrcse
Copy link
Author

thanks for looking into this. I shall take a look at the example

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants