Usage
To use the reqstool Maven Plugin, add the following configuration to your Maven project’s pom.xml:
Basic Usage
<build>
<plugins>
<plugin>
<groupId>io.github.reqstool</groupId>
<artifactId>reqstool-maven-plugin</artifactId>
<version>1.0.4</version>
<executions>
<execution>
<goals>
<goal>assemble-and-attach-zip-artifact</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
The plugin will automatically integrate with the standard Maven build lifecycle.
Annotation Dependency
To use @Requirements and @SVCs annotations in your code, add the annotations dependency:
<dependencies>
<dependency>
<groupId>io.github.reqstool</groupId>
<artifactId>reqstool-java-annotations</artifactId>
<version>1.0.4</version>
</dependency>
</dependencies>
Default Lifecycle
The plugin automatically integrates into the standard Maven build:
-
Plugin is configured with an execution binding
-
The
assemble-and-attach-zip-artifactgoal runs duringverifyphase -
Goal runs after all tests complete (Surefire and Failsafe)
-
ZIP artifact is created in
target/reqstool/ -
Artifact is attached for deployment to Maven repositories
The ZIP artifact will be published with classifier reqstool (e.g., my-app-1.0.0-reqstool.zip).