Maven plugin for generate junit story stubs and scenario-steps from jbehave story files.
mvn clean install
To use it add to your pom.xml build section with goal generate-sources and define project.junit.stories.package(where to put generated stubs) in properties section.
<properties>
...
<project.junit.stories.package>com.your.package</project.junit.stories.package>
...
</properties>
<plugin>
<groupId>net.thucydides.maven.plugin</groupId>
<artifactId>maven-thucydides-jbehave-plugin</artifactId>
<version>0.9.223</version>
<executions>
<execution>
<goals>
<goal>generate-sources</goal>
</goals>
</execution>
</executions>
</plugin>
To use it add to your pom.xml build section with goal generate-steps.
<plugin>
<groupId>net.thucydides.maven.plugin</groupId>
<artifactId>maven-thucydides-jbehave-plugin</artifactId>
<version>0.9.223</version>
<executions>
<execution>
<goals>
<goal>generate-steps</goal>
</goals>
</execution>
</executions>
</plugin>