hello First Thanks for sample code .
i'm reading jenkins definitive guide ,
my env is windows7 and jdk1.6
i cloned the code and mvn package is successsful
but failed to run mvn install (both jenkins and command line )
please look at the log and help me
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] gameoflife
[INFO] gameoflife-build
[INFO] gameoflife-core
[INFO] gameoflife-webservice
[INFO] gameoflife-web
[INFO] gameoflife-cli
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\pom.xml to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife\0.7.49-SNAPSHOT\gameoflife-0.7.49-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-build
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] No sources to compile
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-build\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-build\target\surefire-reports
T E S T S
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-build\target\gameoflife-build-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-build\0.7.49-SNAPSHOT\gameoflife-build-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-core
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-core\src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-core\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-core\target\surefire-reports
T E S T S
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.domain.WhenYouReadAGridFromAString
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.052 sec
Running com.wakaleo.gameoflife.domain.WhenYouPrintAGrid
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateANewUniverse
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
Running com.wakaleo.gameoflife.hamcrest.WhenIUseMyCustomHamcrestMatchers
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec
Running com.wakaleo.gameoflife.domain.WhenYouPlayTheGameOfLife
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateACell
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.051 sec
Running com.wakaleo.gameoflife.domain.WhenYouCreateAGrid
Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.048 sec
Results :
Tests run: 51, Failures: 0, Errors: 0, Skipped: 0
[INFO] [easyb:test {execution: default}]
[INFO] Using easyb dependency org.easyb:easyb-core:jar:1.2:compile
[INFO] Using easyb dependency org.codehaus.groovy:groovy-all:jar:1.7.10:compile
[INFO] Using easyb dependency commons-cli:commons-cli:jar:1.2:compile
[INFO] Using easyb dependency commons-lang:commons-lang:jar:2.5:compile
[INFO] Using easyb dependency ant:ant:jar:1.6.5:compile
[java] Running addition by example story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\AdditionByExample.story)
[java] Scenarios run: 10, Failures: 0, Pending: 0, Time elapsed: 0.789 sec
[java] Running universe spawns next generation story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGeneration.story)
[java] Scenarios run: 2, Failures: 0, Pending: 0, Time elapsed: 0.071 sec
[java] Running universe spawns next generation by example story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGenerationByExample.story)
[java] Scenarios run: 3, Failures: 0, Pending: 0, Time elapsed: 0.039 sec
[java] Running universe spawns next generation repeatedly story (D:\git\wakaleo\game-of-life\gameoflife-core\src\test\easyb\com\wakaleo\gameoflife\domain\UniverseSpawnsNextGenerationRepeatedly.story)
[java] Scenarios run: 2, Failures: 0, Pending: 2, Time elapsed: 0.033 sec
[java] 17 total behaviors ran with no failures
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.AdditionByExample.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.AdditionByExample.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGeneration.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGeneration.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationByExample.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationByExample.xml
[java] Writing JUnit report to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationRepeatedly.xml
[java] JUnit report written to D:\git\wakaleo\game-of-life\gameoflife-core\target/surefire-reports/TEST-behavior.UniverseSpawnsNextGenerationRepeatedly.xml
[INFO] [jar:jar {execution: default-jar}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-core\target\gameoflife-core-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-core\0.7.49-SNAPSHOT\gameoflife-core-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-webservice
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-webservice\src\main\resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-webservice\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-webservice\target\surefire-reports
T E S T S
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Results :
Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
[INFO] [jar:jar {execution: default-jar}]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [install:install {execution: default-install}]
[INFO] Installing D:\git\wakaleo\game-of-life\gameoflife-webservice\target\gameoflife-webservice-0.7.49-SNAPSHOT.jar to C:\Users\bumjin.m2\repository\com\wakaleo\gameoflife\gameoflife-webservice\0.7.49-SNAPSHOT\gameoflife-webservice-0.7.49-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [surefire:test {execution: unit-tests}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports
T E S T S
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.web.controllers.WhenDisplayingTheHomePage
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.02 sec
Running com.wakaleo.gameoflife.web.controllers.WhenCreatingANewGame
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.286 sec
Results :
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp [gameoflife-web] in [D:\git\wakaleo\game-of-life\gameoflife-web\target\gameoflife]
[INFO] Processing war project
[INFO] Copying webapp resources [D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp]
[INFO] Webapp assembled in [143 msecs]
[INFO] Building war: D:\git\wakaleo\game-of-life\gameoflife-web\target\gameoflife.war
[WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored
(webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true')
[INFO] Preparing jetty:run
[WARNING] Removing: run from forked lifecycle, to prevent recursive invocation.
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [jetty:run {execution: start-jetty}]
[INFO] Configuring Jetty for project: gameoflife-web
[INFO] webAppSourceDirectory D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp does not exist. Defaulting to D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = D:\git\wakaleo\game-of-life\gameoflife-web\target\classes
[INFO] Context path = /
[INFO] Tmp directory = D:\git\wakaleo\game-of-life\gameoflife-web\target\tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = file:/D:/git/wakaleo/game-of-life/gameoflife-web/src/main/webapp/WEB-INF/web.xml
[INFO] Webapp directory = D:\git\wakaleo\game-of-life\gameoflife-web\src\main\webapp
[INFO] Starting jetty 7.1.0.v20100505 ...
[INFO] Started Jetty Server
[INFO] [surefire:test {execution: integration-tests}]
[INFO] Surefire report directory: D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports
T E S T S
Concurrency config is parallel='classes', perCoreThreadCount=true, threadCount=4, useUnlimitedThreads=false
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Testing against URL:http://localhost:9090
Tests run: 8, Failures: 0, Errors: 7, Skipped: 0, Time elapsed: 6.622 sec <<< FAILURE!
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserGoesToTheHomePage
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.085 sec
Running com.wakaleo.gameoflife.web.webtests.WhenTheUserEntersAnInitialGrid
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.254 sec
Results :
Tests in error:
anEmptyGridShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aGridWithOneCellShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aGridWithTwoCellsShouldProduceAnEmptyGrid(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aStableCellSetShouldProduceTheSameSetOfCells(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aRotatingCellSetShouldProduceTheExpectedNewSetOfCells(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: grid
aRotatingCellSetShouldProduceTheOriginalSetOfCellsAfterTwoGenerations(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: submit
aRotatingCellSetShouldProduceTheOriginalSetOfCellsAfterThreeGenerations(com.wakaleo.gameoflife.web.webtests.WhenTheUserSpawnsTheNextGenerationOfCells): Unable to locate element with ID: submit
Tests run: 15, Failures: 0, Errors: 7, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
Please refer to D:\git\wakaleo\game-of-life\gameoflife-web\target\surefire-reports for the individual test results.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23 seconds
[INFO] Finished at: Mon Oct 17 16:44:44 KST 2011
[INFO] Final Memory: 39M/63M
[INFO] ------------------------------------------------------------------------