如何解决 cucumberOutput 的 Inteliji Maven 配置错误?
How to resolve Inteliji Maven Configuration error for cucumberOutput?
Inteliji 在 pom.xml 中有一个错误,同样 pom.xml 在 Eclipse 中工作正常,
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>5.6.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>Automation</projectName>
<outputDirectory>${project.build.directory}/cucumber-report-html</outputDirectory>
<cucumberOutput>${project.build.directory}cucumber/cucumber.json</cucumberOutput>
</configuration>
</execution>
</executions>
</plugin>
错误在 <cucumberOutput>${project.build.directory}cucumber/cucumber.json</cucumberOutput>
错误信息:
此处不允许元素 cucumberOutput
版本 5.6.0 不再使用 配置的 <cucumberOutput>
标签。
已替换为:
<inputDirectory>${project.build.directory}</inputDirectory> <!-- this is where the cucumber.json files is saved -->
<jsonFiles>
<param>cucumber.json</param> <!-- the name/regex of the cucumber report json file -->
</jsonFiles>
这是我的配置示例:
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>5.6.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>App-Under-Test</projectName>
<outputDirectory>${project.build.directory}</outputDirectory>
<inputDirectory>${project.build.directory}</inputDirectory>
<jsonFiles>
<param>cucumber-*.json</param>
</jsonFiles>
<mergeFeaturesById>false</mergeFeaturesById>
<mergeFeaturesWithRetest>false</mergeFeaturesWithRetest>
<checkBuildResult>false</checkBuildResult>
<buildNumber>1</buildNumber>
</configuration>
</execution>
</executions>
</plugin>
Inteliji 在 pom.xml 中有一个错误,同样 pom.xml 在 Eclipse 中工作正常,
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>5.6.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>Automation</projectName>
<outputDirectory>${project.build.directory}/cucumber-report-html</outputDirectory>
<cucumberOutput>${project.build.directory}cucumber/cucumber.json</cucumberOutput>
</configuration>
</execution>
</executions>
</plugin>
错误在 <cucumberOutput>${project.build.directory}cucumber/cucumber.json</cucumberOutput>
错误信息:
此处不允许元素 cucumberOutput
版本 5.6.0 不再使用 配置的 <cucumberOutput>
标签。
已替换为:
<inputDirectory>${project.build.directory}</inputDirectory> <!-- this is where the cucumber.json files is saved -->
<jsonFiles>
<param>cucumber.json</param> <!-- the name/regex of the cucumber report json file -->
</jsonFiles>
这是我的配置示例:
<plugin>
<groupId>net.masterthought</groupId>
<artifactId>maven-cucumber-reporting</artifactId>
<version>5.6.0</version>
<executions>
<execution>
<id>execution</id>
<phase>verify</phase>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<projectName>App-Under-Test</projectName>
<outputDirectory>${project.build.directory}</outputDirectory>
<inputDirectory>${project.build.directory}</inputDirectory>
<jsonFiles>
<param>cucumber-*.json</param>
</jsonFiles>
<mergeFeaturesById>false</mergeFeaturesById>
<mergeFeaturesWithRetest>false</mergeFeaturesWithRetest>
<checkBuildResult>false</checkBuildResult>
<buildNumber>1</buildNumber>
</configuration>
</execution>
</executions>
</plugin>