Build Status Coverage Status

Accurate REST Maven Plugin

Converting Accurest GroovyDSL into WireMock stub mappings:

mvn io.codearte.accurest:accurest-maven-plugin:convert

Sample usage

<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
                <goal>generateSpecs</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Project default directories

contractsDir - contract definitions:

/src/test/accurest

generatedTestSourcesDir - Generated accurest specifications:

/target/generated-test-sources/accurest

Publishing wiremock stubs jar

Project configuration

<plugin>
    <groupId>io.codearte.accurest</groupId>
    <artifactId>accurest-maven-plugin</artifactId>
    <version>${accurest.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>generateStubs</goal>
            </goals>
        </execution>
    </executions>
</plugin>
<plugin>
    <artifactId>maven-assembly-plugin</artifactId>
    <version>2.6</version>
    <dependencies>
        <dependency>
            <groupId>io.codearte.accurest</groupId>
            <artifactId>stubs-assembly-descriptor</artifactId>
            <version>1.1</version>
        </dependency>
    </dependencies>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>single</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <descriptorRefs>
            <descriptorRef>stubs</descriptorRef>
        </descriptorRefs>
    </configuration>
</plugin>

Deploy to artifact repository using mvn deploy

Description
No description provided
Readme Apache-2.0 146 MiB
Languages
Groovy 62.4%
Java 35.6%
CSS 1.5%
Shell 0.3%
Dockerfile 0.1%