Mven plugin can't identify Scenario classes in src/test/java
------------------------------------------------------------
Key: JBEHAVE-155
URL: http://jira.codehaus.org/browse/JBEHAVE-155
Project: JBehave
Issue Type: Bug
Components: Maven Plugin
Affects Versions: 2.1
Environment: Maven 2.0.9, Java 1.5.0_16
Reporter: Binil Thomas
Attachments: jbehave-bug-report.tar.gz
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]]
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email