{"action":"created","issue":{"url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/72","labels_url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/72/comments","events_url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/72/events","html_url":"https://github.com/mulesoft/raml-for-jax-rs/issues/72","id":69976871,"number":72,"title":"RAML inclusions are unusable in RAML -> JAX-RS","user":{"login":"ddossot","id":119028,"avatar_url":"https://avatars.githubusercontent.com/u/119028?v=3","gravatar_id":"","url":"https://api.github.com/users/ddossot","html_url":"https://github.com/ddossot","followers_url":"https://api.github.com/users/ddossot/followers","following_url":"https://api.github.com/users/ddossot/following{/other_user}","gists_url":"https://api.github.com/users/ddossot/gists{/gist_id}","starred_url":"https://api.github.com/users/ddossot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddossot/subscriptions","organizations_url":"https://api.github.com/users/ddossot/orgs","repos_url":"https://api.github.com/users/ddossot/repos","events_url":"https://api.github.com/users/ddossot/events{/privacy}","received_events_url":"https://api.github.com/users/ddossot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-21T23:24:12Z","updated_at":"2015-04-22T16:32:47Z","closed_at":null,"body":"I can't find a way to use use RAML inclusions, like for example for including common resource types.\r\n\r\nUsing [this sample RAML file](https://github.com/raml-org/raml-java-parser/blob/master/src/test/resources/org/raml/include/include-resource-type-sequence.yaml) (and its related included file) as a sample, I can't find a way for the `raml-jaxrs-maven-plugin` to work.\r\n\r\n# Both RAML files in the same directory\r\n\r\n* If the Maven plugin is configured with `sourceDirectory` pointing to the directory containing both RAML files, execution dies with:\r\n\r\n        resource-type-sequence.yaml: Invalid RAML definition: [ERROR] ERROR Invalid RAML\r\n\r\n  which makes sense because the `resource-type-sequence.yaml` file is designed to be included, not to be loaded standalone.\r\n\r\n* If the Maven plugin is configured with `sourcePaths` pointing to the parent RAML file (`include-resource-type-sequence.yaml`) then the execution dies with:\r\n\r\n      ERROR Include cannot be resolved resource-type-sequence.yaml\r\n\r\n  which does not make sense because the file is in the same directory (probably related to issue #61).\r\n\r\n# Included RAML file in sub-directory\r\n\r\n* If the Maven plugin is configured with `sourceDirectory` pointing to the directory containing the parent RAML files, execution dies with:\r\n\r\n        resource-type-sequence.yaml: Invalid RAML definition: [ERROR] ERROR Invalid RAML\r\n\r\n  This does not make sense because the included RAML file is now in a sub-directory: it should not be loaded directly by the plugin. Why is the plugin exploring sub-directories for other RAML files?\r\n\r\n* If the Maven plugin is configured with `sourcePaths` pointing to the parent RAML file (`include-resource-type-sequence.yaml`) then the execution dies with:\r\n\r\n      ERROR Include cannot be resolved includes/resource-type-sequence.yaml\r\n\r\n  which does not make sense because the exists in the `includes` sub directory (probably related to issue #61).\r\n\r\nSo basically no way to use this feature :crying_cat_face: "},"comment":{"url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/comments/95256609","html_url":"https://github.com/mulesoft/raml-for-jax-rs/issues/72#issuecomment-95256609","issue_url":"https://api.github.com/repos/mulesoft/raml-for-jax-rs/issues/72","id":95256609,"user":{"login":"ddossot","id":119028,"avatar_url":"https://avatars.githubusercontent.com/u/119028?v=3","gravatar_id":"","url":"https://api.github.com/users/ddossot","html_url":"https://github.com/ddossot","followers_url":"https://api.github.com/users/ddossot/followers","following_url":"https://api.github.com/users/ddossot/following{/other_user}","gists_url":"https://api.github.com/users/ddossot/gists{/gist_id}","starred_url":"https://api.github.com/users/ddossot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ddossot/subscriptions","organizations_url":"https://api.github.com/users/ddossot/orgs","repos_url":"https://api.github.com/users/ddossot/repos","events_url":"https://api.github.com/users/ddossot/events{/privacy}","received_events_url":"https://api.github.com/users/ddossot/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T16:32:47Z","updated_at":"2015-04-22T16:32:47Z","body":"So the issue that using `sourceDirectory` actually loads the RAML files in it **and its subdirectories** is covered by #61 ?"}}