Hi,
by default, compile-scope dependencies are used. If you want
test-scoped, you need to specify in your plugin <configuration> element :
<scope>test</scope>
Cheers
On 01/03/2013 22:25, Senthil Kumar T wrote:
Hi,
I have mockito dependency with test scope (inherited from parent pom).
When I run mvn clean install. The jbehave-maven-plugin runs my
stories. I configured "run-stories-as-embeddables" goal to run.
But I got classNotFoundExcepiton for mockito classes.
mockito library is supposed to be used only tests, and I am running
integration-tests. Why those dependencies are not passed to
EmbeederClassLoader.
If I change the scope as runtime/compiletime, then those jars being
passed as classpath elements, and everything working fine.
I am just curious about this issue. Any help is appreciated
Thanks & Regards
Senthil