Maven plugin can't identify Scenario classes in src/test/java

Description

I have the JBehave Maven plugin configured with test scope. In 2.0.1, the plugin was able to pick up the Scenario classes from src/test/java, but in 2.1 it fails to. Please try running the attached maven project with different -Djbehave.version settings to reproduce the error.

$ mvn -Djbehave.version=2.0.1 clean integration-test
...
[INFO] [jbehave:run-scenarios {execution: run-scenarios-listed}]
[INFO] Running scenario binil.scenarios.MyScenario
...

$ mvn -Djbehave.version=2.1 clean integration-test
...
[INFO] [jbehave:run-scenarios {execution: run-scenarios-listed}]
[INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------ [INFO] Failed to instantiate scenario 'binil.scenarios.MyScenario'

Embedded error: The scenario 'binil.scenarios.MyScenario' could not be instantiated with class loader: [org.jbehave.scenario.ScenarioClassLoader urls=/Users/binil/work/jbehave-bug-report/target/classes]

Assignee

Mauro Talevi

Reporter

Binil Thomas

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure