Hi All again, Finally I made it work by using Pico Container.
Clean project is now available @: https://github.com/kowalcj0/soapy Cheers, J On 16 April 2012 23:00, Janusz Kowalczyk <[email protected]> wrote: > OK, thanks guys! > > I'll try that tomorrow :) > > > Cheers, > J > > On 16 April 2012 22:34, Alexander Lehmann <[email protected]> wrote: > >> It seems that the maven embedder cannot be a groovy file, since that is >> not found, if you change it to a java file, it is found at least. >> >> If you rename the file, loading the embedder fails however since the >> Runner class doesn't implement Embeddable, you probably need to use another >> class as in the example generated by the maven archetype. >> >> >> >> >> On 16.04.2012 19:23, Janusz Kowalczyk wrote: >> >>> Hi All, >>> >>> >>> I'm trying to use Maven 3 to run some jBehave tests written in Groovy. >>> Test are running perfectly fine once executed from IDE (Intellij Idea >>> 11.1.1) but whenever I'm trying to run them from a command line they are >>> never executed. >>> >>> Here's an excerpt from maven's log: >>> >>> [INFO] --- jbehave-maven-plugin:3.6.1:run-stories-as-embeddables >>> (embeddable-stories) @ soapy --- >>> [INFO] Running stories as embeddables using embedder >>> >>> Embedder[storyMapper=StoryMapper,storyRunner=StoryRunner,embedderMonitor=MavenEmbedderMonitor,classLoader=EmbedderClassLoader[urls=[/home/jk/git/soapyclean/target/classes/, >>> jbehave-groovy-3.6.1.jar, jbehave-core-3.6.1.jar, groovy-all-1.8.6.jar, >>> junit-dep-4.8.2.jar, hamcrest-core-1.1.jar, hamcrest-library-1.1.jar, >>> hamcrest-integration-1.1.jar, commons-collections-3.2.1.jar, >>> commons-io-1.4.jar, commons-lang-2.5.jar, plexus-utils-2.0.5.jar, >>> freemarker-2.3.16.jar, paranamer-2.4.jar, xstream-1.3.1.jar, >>> xpp3_min-1.1.4c.jar, json-simple-1.1.jar, log4j-1.2.16.jar, >>> sshj-0.7.0.jar, slf4j-api-1.6.1.jar, joda-time-2.1.jar, >>> >>> commons-codec-1.6.jar],parent=ClassRealm[plugin>org.jbehave:jbehave-maven-plugin:3.6.1, >>> parent: >>> sun.misc.Launcher$AppClassLoader@1ef6a746 >>> ]],embedderControls=UnmodifiableEmbedderControls[EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs=300,threads=1]],embedderFailureStrategy=org.jbehave.core.embedder.Embedder$ThrowingRunningStoriesFailed@57cae5b7 >>> ,configuration=org.jbehave.core.configuration.MostUsefulConfiguration@49af7e68 >>> ,candidateSteps=[],stepsFactory=<null>,metaFilters=[],systemProperties={},executorService=<null>,executorServiceCreated=false,storyManager=<null>] >>> [INFO] Found class names: [] >>> [INFO] Using controls >>> >>> UnmodifiableEmbedderControls[EmbedderControls[batch=false,skip=false,generateViewAfterStories=true,ignoreFailureInStories=true,ignoreFailureInView=false,verboseFailures=false,verboseFiltering=false,storyTimeoutInSecs=300,threads=1]] >>> [INFO] >>> >>> >>> Whole code is available @ git: >>> https://github.com/kowalcj0/soapy-clean >>> >>> >>> I'd be grateful if anyone could help me with that. >>> >>> >>> Cheers, >>> JK >>> >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > -- Zapraszam na swojego foto-bloga: http://na100procentchyba.wordpress.com/ Autopodpis: Staraj się używać pola Ukryty do Wiadomości (UDW) przy wysyłaniu wiadomości do wielu odbiorców, ograniczysz przez to rozprzestrzenianie się spamu! Autosignature: Try to use field BCC (blind carbon copy) when sending message to many recepients, it will restrain spread of spam!
