如何将内部版本号传递给 maven-cucumber-reporting 插件

Vit*_*nov 1 cucumber maven cucumber-jvm

我使用此配置运行 maven-cucumber-reporting 插件,结果报告页面上的内部版本号始终等于 1。

        <plugin>
            <groupId>net.masterthought</groupId>
            <artifactId>maven-cucumber-reporting</artifactId>
            <version>0.0.6</version>
            <executions>
                <execution>
                    <id>execution</id>
                    <phase>verify</phase>
                    <goals>
                        <goal>generate</goal>
                    </goals>
                    <configuration>
                         <projectName>${project.name}</projectName>
                         <outputDirectory>${project.build.directory}/cucumber-html-reports</outputDirectory>
                            <cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
                        <enableFlashCharts>false</enableFlashCharts>
                    </configuration>
                </execution>
            </executions>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

如何传递内部版本号,例如从 Maven?

Vit*_*nov 5

在 0.0.6 版本的插件版本号 1 中是硬编码的。此提交修复了问题,现在从 ${build.number} 属性或插件参数接收版本号。