This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from CJSCommonPlatform/minor-fixes
Minor fixes
- Loading branch information
Showing
5 changed files
with
97 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file, which follows the guidelines | ||
on [Keep a CHANGELOG](http://keepachangelog.com/). This project adheres to | ||
[Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased] | ||
|
||
### Changed | ||
|
||
- Minor fixes to log messages | ||
|
||
## [1.1.1] - 2016-05-12 | ||
|
||
### Added | ||
|
||
- RAML and JSON schema validation mojo for syntax checking without generation | ||
- Add source paths to generator configuration | ||
- Add an option to look for RAML files in the classpath, allowing generation to be done on Maven dependencies not just local files | ||
|
||
### Changed | ||
|
||
- Skip directory cleaning before generation | ||
|
||
## [1.1.0] - 2016-04-18 | ||
|
||
### Added | ||
|
||
- Support for passing custom properties to plugin configuration | ||
|
||
## [1.0.0] - 2016-03-15 | ||
|
||
### Added | ||
|
||
- Initial release with basic code generation support |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,56 @@ | ||
# raml-jaxrs | ||
# RAML Maven Plugin | ||
[![Build Status](https://travis-ci.org/CJSCommonPlatform/raml-maven.svg?branch=master)](https://travis-ci.org/CJSCommonPlatform/raml-maven) | ||
[![Coverage Status](https://coveralls.io/repos/github/CJSCommonPlatform/raml-maven/badge.svg?branch=master)](https://coveralls.io/github/CJSCommonPlatform/raml-maven?branch=master) | ||
|
||
RAML to JAXR generator | ||
This project contains a plugin for using [RAML](http://raml.org/) 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 | ||
|
||
## Usage | ||
|
||
For example, to generate code using a generator class `ExampleGenerator` using RAML from an external | ||
Maven dependency: | ||
|
||
```xml | ||
<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> | ||
``` |
This file contains 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
This file contains 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
This file contains 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