Stubby Maven Plugin

A plugin for Stubby

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.testingsyndicate
ArtifactId

ArtifactId

stubby-maven-plugin
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Stubby Maven Plugin
A plugin for Stubby
Project URL

Project URL

https://github.com/goughy000/stubby-maven-plugin
Source Code Management

Source Code Management

https://github.com/goughy000/stubby-maven-plugin.git

Download stubby-maven-plugin

How to add to project

<plugin>
    <groupId>com.testingsyndicate</groupId>
    <artifactId>stubby-maven-plugin</artifactId>
    <version>1.0.3</version>
</plugin>

Dependencies

runtime (3)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5
io.github.azagniotov : stubby4j jar 5.0.1

Project Modules

There are no modules declared in this project.

stubby-maven-plugin

Maven plugin to start and stop stubby4j as part of the maven build lifecycle

This can be useful when you are spinning up an application for integration testing and it needs to connect to another HTTP service. Combine with a port finder plugin for concurrent usage on build servers

You can find configuration info for the stubs.yaml file itself on the Stubby4J project page

Configuration

Default values for configuration shown

<build>
<plugins>
  <plugin>
    <groupId>com.testingsyndicate</groupId>
    <artifactId>stubby-maven-plugin</artifactId>
    <version>1.0.1</version>
    <executions>
      <execution>
        <goals>
          <goal>start</goal>
          <goal>stop</goal>
        </goals>
        <configuration>
          <configFile>src/test/resources/stubs.yaml</configFile>
          <httpPort>8882</httpPort>
          <mute>true</mute>
          <httpsPort />
          <adminPort />
        </configuration>
      </execution>
    </executions>
  </plugin>
</plugins>
</build>

You can also quickly start stubby to manually validate your stubs file

mvn stubby:run -DconfigFile=path/to/stubs.yaml

Versions

Version
1.0.3
1.0.2
1.0.1
1.0.0