The problem is that the failure in the unit test blocked the install phase of the components needed for the example.
As a workaround, you can build skipping tests mvn clean install -Pexamples -Dmaven.test.skip=true generally not recommended, but will get you over the hump. I'm puzzled as to the failure. Can you provide more details (OS, Java version) and a stacktrace? I can't reproduce the failure locally (both OS X and Windows) but I can see in Bamboo (http://builds.codehaus.org/browse/JBEHAVE-WEB16) Cheers On 23/02/2010 01:25, qa tester wrote: > Thank you for your reply. > > I did the following: > > 1. Build the examples > svn co https://svn.codehaus.org/jbehave/trunk/web > <https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/> > cd web > mvn clean install -Pexamples > > 2. > then run the example webapp interactively: > > cd examples/trader-web > mvn jetty:run > > > *After 1, some tests are failing*: > ------------------------------------------------------- > T E S T S > ------------------------------------------------------- > Running org.jbehave.web.io.ResourceFinderTest > Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.173 sec > Running org.jbehave.web.io.ArchivingFileManagerTest > Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 sec > Running org.jbehave.web.io.ZipFileArchiverTest > Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.078 > sec <<< FAILURE! > > Results : > > Tests in error: > canUnarchiveZip(org.jbehave.web.io.ZipFileArchiverTest) > canListFileContentOfUnarchiveZip(org.jbehave.web.io.ZipFileArchiverTest) > > > *I continued to #2 anyways and go the following errors: * > > Embedded error: Unable to download the artifact from any repository > > Try downloading the file manually from the project website. > > Then, install it using the command: > mvn install:install-file -DgroupId=org.jbehave.web > -DartifactId=jbehave-web-runner -Dversion=2.2-SNAPSHOT -Dpackaging=jar > -Dfile=/path/to/file > > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=org.jbehave.web > -DartifactId=jbehave-web-runner -Dversion=2.2-SNAPSHOT -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > > > I am new to maven so I am not sure which parameters to supply for > Dfile or to Durl or to DrepositoryId. > > Did I have to build the core components before running #1? > > Thanks for your help. > > > > > On Mon, Feb 22, 2010 at 3:38 PM, Mauro Talevi > <[email protected] <mailto:[email protected]>> wrote: > > On 23/02/2010 00:24, qa tester wrote: >> >> it looks like the checkout and examples install are no longer >> throwing an error. however, i still have to run the examples to >> verify. >> > The "install" phase implicitly run the "integration-test" phase, > which is where the scenarios are run. > >> In regards to trader-web example, i did the following >> >> 1. svn co >> https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/ >> 2. mvn clean install > > you need to first to build the components (including the example > modules): > > > svn co https://svn.codehaus.org/jbehave/trunk/web > <https://svn.codehaus.org/jbehave/trunk/web/examples/trader-web/> > cd web > mvn clean install -Pexamples > > then run the example webapp interactively: > > cd examples/trader-web > mvn jetty:run > > Cheers > >
