将参数传递给 jbehave 执行

pass an argument to jbehave execution

我想将一些参数传递给 jbehave 测试作为它执行的先决条件

例如

mvn clean install myArgument

我能做些什么吗?

谢谢

 <plugin>
                <groupId>org.jbehave</groupId>
                <artifactId>jbehave-maven-plugin</artifactId>
                <version>4.0.1</version>
                <executions>
                    <execution>
                        <id>run-stories</id>
                        <phase>integration-test</phase>
                        <configuration>
                            <storyTimeoutInSecs>600</storyTimeoutInSecs>
                            <systemProperties>
                                <property>
                                    <name>fileName</name>
                                    <value>${fileName}}</value>
                                </property>
                            </systemProperties>
                            <includes>
                                <include>**/${fileName}</include>
                            </includes>
                            <scope>test</scope>
                        </configuration>
                        <goals>
                            <goal>run-stories-as-embeddables</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

和 maven 命令:

mvn clean install -DfileName="argument"