当我用java编译我的bdd框架时,会犯以下编译错误,我是新手。
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
2:compile (default-compile) on project workflows.automation: Compilation
failure: Compilation failure:
[ERROR] /C:/OFFICIAL/BDDFramework/workflows.automation/src/main/java/bdd
/automation/pages/LoginPage.java:[23,1] package org.jbehave.core
.annotations does not exist
[ERROR] /C:/OFFICIAL/BDDFramework/workflows.automation/src/main/java/bdd
/automation/pages/LoginPage.java:[31,11] cannot find symbol
[ERROR] symbol: class BeforeStory
[ERROR] location: class bdd.automation.pages.LoginPage
[ERROR] -> [Help 1]发布于 2018-03-21 14:30:59
错误说jbehave核心在编译时丢失了。作为一个新的maven依赖项,向您的pom.xml中添加jbehave。
请参阅https://mvnrepository.com/artifact/org.jbehave/jbehave-core
https://stackoverflow.com/questions/49408703
复制相似问题