Details
-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1
-
Component/s: Maven Plugin
-
Labels:None
-
Environment:Maven 2.0.9, Java 1.5.0_16
-
Testcase included:yes
-
Number of attachments :
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
]
[INFO] Running scenario binil.scenarios.MyScenario
...
$ mvn -Djbehave.version=2.1 clean integration-test
...
[INFO] [jbehave:run-scenarios
]
[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]]
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] |
Summary | Mven plugin can't identify Scenario classes in src/test/java | Maven plugin can't identify Scenario classes in src/test/java |
Fix Version/s | 2.1.1 [ 14933 ] |
Fix Version/s | 2.2 [ 14670 ] |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Resolved [ 5 ] |
Thanks Binil - I'll try to reproduce it.