Maven编译失败错误

时间:2018-03-21 14:14:54

标签: maven maven-plugin

当我在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]

1 个答案:

答案 0 :(得分:0)

错误表示编译时缺少jbehave核心。将jbehave-core添加到pom.xml中作为新的maven依赖项。

请参阅https://mvnrepository.com/artifact/org.jbehave/jbehave-core

相关问题