Code Monkey home page Code Monkey logo

game-of-life's Introduction

This is a simple demonstration application used in the Jenkins: The Definitive Guide book.

Building the project

The project is a simple multi-module Maven project. To build the whole project, just run mvn install from the root directory.

Running the game

The application is a very simple online version of Conway's 'game of life'. To see what the game does, run mvn install as described above, then go to the gameoflife-web directory and run mvn jetty:run. The application will be running on http://localhost:9090.

Running the acceptance tests

The acceptance tests are written using Webdriver and Serenity (previously known as 'Thucydides'). They are designed to run against a running server. Run the jetty instance as described about, then, in another window, go to the gameoflife-acceptance-tests directory and run mvn clean verify. The test reports will be generated in the target/site/thucydides directory.

The book

Streamline software development with Jenkins, the popular Java-based open source tool that has revolutionized the way teams think about Continuous Integration (CI). This complete guide shows you how to automate your build, integration, release, and deployment processes with Jenkins—and demonstrates how CI can save you time, money, and many headaches.

Ideal for developers, software architects, and project managers, Jenkins: The Definitive Guide is both a CI tutorial and a comprehensive Jenkins reference. Through its wealth of best practices and real-world tips, you'll discover how easy it is to set up a CI service with Jenkins.

  • Learn how to install, configure, and secure your Jenkins server
  • Organize and monitor general-purpose build jobs
  • Integrate automated tests to verify builds, and set up code quality reporting
  • Establish effective team notification strategies and techniques
  • Configure build pipelines, parameterized jobs, matrix builds, and other advanced jobs
  • Manage a farm of Jenkins servers to run distributed builds
  • Implement automated deployment and continuous delivery

The author

John is an experienced consultant and trainer specialising in Enterprise Java, Web Development, and Open Source technologies, based in Sydney, Australia. Well known in the Java community for his many published articles, and as author of Java Power Tools, John helps organisations around the world to optimize their Java development processes and infrastructures and provides training and mentoring in open source technologies, SDLC tools, and agile development processes. John is CEO of Wakaleo Consulting, a company that provides consulting, training and mentoring services in Enterprise Java and Agile Development. He is also part of the founding team of Test Automation, a service that automates the manual regression tests conducted during the integration and acceptance testing stages of a web site release.

game-of-life's People

Contributors

axiomsofchoice avatar geraldscott avatar luukhang avatar schottsfired avatar visionmaverick avatar wakaleo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

game-of-life's Issues

Unable to execute "mvn jetty:run"

I tried to run the application using "mvn jetty:run" but got this error:

No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/geraldo/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

I am using openjdk-8 and maven 3 on Debian Jessie.

I resolved it by editing the gameoflife-web/pom.xml to replace

<groupId>org.mortbay.jetty</groupId>

with

<groupId>org.eclipse.jetty</groupId>

I also had to add org.eclipse.jetty as new pluginGroup in my Maven settings.xml.

The maven target executed after that.

PS I opened an issue even though I resolved it in case someone else hit the same problem.

org.apache.jasper.JasperException: PWC6033: Unable to compile class for JSP

I have had a problem accessing the site http://localhost:9090 after running mvn jetty:run in the gameoflife-web directory. I get the exception below. I have tried running this project on a windows 7 machine and on an ubuntu/ mint 17.2 vm. I get the same problem in both environments. Any help would be appreciated.

Jetty starts up with
[INFO] Started [email protected]:9090
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.

when I access http://localhost:9090 I get the following:

[WARNING] Compilation error
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.(ClassFileReader.java:372)
at org.apache.jasper.compiler.JDTJavaCompiler$1.findType(JDTJavaCompiler.java:367)
at org.apache.jasper.compiler.JDTJavaCompiler$1.findType(JDTJavaCompiler.java:324)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:102)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1188)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:317)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:640)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:619)
at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:295)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:107)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.getTypeFromTypeSignature(LookupEnvironment.java:1188)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.createFields(BinaryTypeBinding.java:355)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.cachePartsFrom(BinaryTypeBinding.java:326)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:640)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createBinaryTypeFrom(LookupEnvironment.java:619)
at org.eclipse.jdt.internal.compiler.Compiler.accept(Compiler.java:295)
at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:107)
at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.resolve(UnresolvedReferenceBinding.java:49)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:122)
at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.resolve(ParameterizedTypeBinding.java:851)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveType(BinaryTypeBinding.java:100)
at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.superclass(BinaryTypeBinding.java:1062)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1256)
at org.eclipse.jdt.internal.compiler.lookup.Scope.findMethod(Scope.java:1181)
at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2237)
at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(MessageSend.java:401)
at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.java:913)
at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Block.java:103)
at org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(TryStatement.java:809)
at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:90)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.resolve(IfStatement.java:257)
at org.eclipse.jdt.internal.compiler.ast.Block.resolveUsing(Block.java:103)
at org.eclipse.jdt.internal.compiler.ast.TryStatement.resolve(TryStatement.java:809)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolveStatements(AbstractMethodDeclaration.java:447)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatements(MethodDeclaration.java:189)
at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resolve(AbstractMethodDeclaration.java:406)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1131)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDeclaration.java:1219)
at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.resolve(CompilationUnitDeclaration.java:528)
at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:759)
at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:464)
at org.apache.jasper.compiler.JDTJavaCompiler.compile(JDTJavaCompiler.java:503)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:368)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:437)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:608)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:360)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:423)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:346)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:527)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:423)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:493)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:924)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:358)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:860)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:245)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113)
at org.eclipse.jetty.server.Server.handle(Server.java:335)
at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:588)
at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1029)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:549)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:211)
at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:418)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:476)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436)
at java.lang.Thread.run(Thread.java:745)

com.wakaleo.gameoflife:gameoflife-web unable to resolve dependencies.

I am getting below error while trying to build Static Code Analysis

[INFO] --- maven-checkstyle-plugin:2.17:checkstyle (default-cli) @ gameoflife-core ---
[INFO] There are 111 errors reported by Checkstyle 6.11.2 with sun_checks.xml ruleset.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ......................................... SUCCESS [ 2.318 s]
[INFO] gameoflife-build ................................... SUCCESS [ 2.185 s]
[INFO] gameoflife-core .................................... SUCCESS [ 1.416 s]
[INFO] gameoflife-web ..................................... FAILURE [ 0.307 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.778 s
[INFO] Finished at: 2017-05-09T02:07:44+00:00
[INFO] Final Memory: 19M/47M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gameoflife-web
Build step 'Invoke top-level Maven targets' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
Finished: FAILURE

Tests failing after switch from Thucydides to Serenity

I've been using this repo as part of Jenkins training, so it gets built a lot.

Jenkins: 2.46.1 (and 2.92)
JDK: 8u152
Maven: 3.3.9 (also tried 3.5.2 despite previously seeing issues with 3.5.0)

All of the above runs within a Docker container on the excellent Katacoda training platform.

Full Jenkins console log at this gist, but here are the highlights:

###First warning

-------------------------------------------------------
 T E S T S
-------------------------------------------------------

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results[INFO] 
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:report (jacoco-site) @ gameoflife-web ---
[INFO] Analyzed bundle 'gameoflife-web' with 2 classes

[INFO] 
[INFO] --- serenity-maven-plugin:1.8.3:aggregate (serenity-reports) @ gameoflife-web ---
[INFO] Downloading: https://repo.maven.apache.org/maven2/net/serenity-bdd/serenity-core/1.8.3/serenity-core-1.8.3.pom
[WARNING] The POM for net.serenity-bdd:serenity-core:jar:1.8.3 is missing, no dependency information available
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/maven-core/3.5.0/maven-core-3.5.0.pom

Second warning

[WARNING] Failed to getClass for net.serenitybdd.maven.plugins.SerenityAggregatorMojo
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] gameoflife ......................................... SUCCESS [ 25.745 s]
[INFO] gameoflife-build ................................... SUCCESS [  8.837 s]
[INFO] gameoflife-core .................................... SUCCESS [ 16.027 s]
[INFO] gameoflife-web ..................................... FAILURE [ 12.775 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:08 min
[INFO] Finished at: 2017-12-13T19:50:16+00:00
[INFO] Final Memory: 35M/85M
[INFO] ------------------------------------------------------------------------

Error

Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3:aggregate (serenity-reports) on project gameoflife-web: Execution serenity-reports of goal net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3:aggregate failed: Plugin net.serenity-bdd.maven.plugins:serenity-maven-plugin:1.8.3 or one of its dependencies could not be resolved: Could not find artifact net.serenity-bdd:serenity-core:jar:1.8.3 in central (https://repo.maven.apache.org/maven2) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :gameoflife-web
JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-build/pom.xml to com.wakaleo.gameoflife/gameoflife-build/1.0-SNAPSHOT/gameoflife-build-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-build/target/gameoflife-build-1.0-SNAPSHOT.jar to com.wakaleo.gameoflife/gameoflife-build/1.0-SNAPSHOT/gameoflife-build-1.0-SNAPSHOT.jar
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/pom.xml to com.wakaleo.gameoflife/gameoflife/1.0-SNAPSHOT/gameoflife-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-core/pom.xml to com.wakaleo.gameoflife/gameoflife-core/1.0-SNAPSHOT/gameoflife-core-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-core/target/gameoflife-core-1.0-SNAPSHOT.jar to com.wakaleo.gameoflife/gameoflife-core/1.0-SNAPSHOT/gameoflife-core-1.0-SNAPSHOT.jar
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-web/pom.xml to com.wakaleo.gameoflife/gameoflife-web/1.0-SNAPSHOT/gameoflife-web-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/jenkins_home/workspace/GameOfLife/gameoflife-web/target/gameoflife.war to com.wakaleo.gameoflife/gameoflife-web/1.0-SNAPSHOT/gameoflife-web-1.0-SNAPSHOT.war
channel stopped
Archiving artifacts
Finished: FAILURE

I'm going to try backing up to before the Updated dependencies commit from 4 Dec 2017, but I'm pretty sure that will fix it as everything's been fine before.

Can this be run on Bluemix Cloud foundry?

Can this be run on Bluemix Cloud foundry? I could do a maven build using the Delivery Pipeline. But deployment fails. How may I run it there?

For deploying, I did cf push gameoflife-web

Painkiller

Can you please update this so its not so painful to work with? all I get is this.

Started by user ian kelly
Building in workspace /var/lib/jenkins/workspace/game-of-life-default
Cloning the remote Git repository
Cloning repository https://github.com/eyekelly/game-of-life.git

git init /var/lib/jenkins/workspace/game-of-life-default # timeout=10
Fetching upstream changes from https://github.com/eyekelly/game-of-life.git
git --version # timeout=10
git fetch --tags --progress https://github.com/eyekelly/game-of-life.git +refs/heads/:refs/remotes/origin/
git config remote.origin.url https://github.com/eyekelly/game-of-life.git # timeout=10
git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
git config remote.origin.url https://github.com/eyekelly/game-of-life.git # timeout=10
Fetching upstream changes from https://github.com/eyekelly/game-of-life.git
git fetch --tags --progress https://github.com/eyekelly/game-of-life.git +refs/heads/:refs/remotes/origin/
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision d97e493 (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f d97e493
Commit message: "Merge pull request #2 from eyekelly/revert-1-surefire-version2201"
git rev-list d97e493 # timeout=10
[game-of-life-default] $ /usr/local/apache-maven-3.5.2/bin/mvn clean package
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-build:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife:pom:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter. @ line 302, column 40
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gameoflife
[INFO] gameoflife-build
[INFO] gameoflife-core
[INFO] gameoflife-web
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (jacoco-initialize) @ gameoflife ---
[INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/var/lib/jenkins/workspace/game-of-life-default/target/jacoco.exec
[INFO]
[INFO] --- maven-surefire-plugin:2.11:test (unit-tests) @ gameoflife ---
[INFO] No tests to run.
[INFO] Surefire report directory: /var/lib/jenkins/workspace/game-of-life-default/target/surefire-reports


T E S T S

Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:500)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:512)
Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
at org.jacoco.agent.rt.internal_e6e56f0.PreMain.createRuntime(PreMain.java:55)
at org.jacoco.agent.rt.internal_e6e56f0.PreMain.premain(PreMain.java:47)
... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
at java.base/java.lang.Class.getField(Class.java:1956)
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
... 9 more
FATAL ERROR in native method: processing of -javaagent failed
/bin/sh: line 1: 3316 Aborted (core dumped) /var/lib/jenkins/tools/hudson.model.JDK/java/bin/java -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/var/lib/jenkins/workspace/game-of-life-default/target/jacoco.exec -jar /var/lib/jenkins/workspace/game-of-life-default/target/surefire/surefirebooter5661336041227364955.jar /var/lib/jenkins/workspace/game-of-life-default/target/surefire/surefire17921956382707181233tmp /var/lib/jenkins/workspace/game-of-life-default/target/surefire/surefire10751138448148473142tmp

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ......................................... FAILURE [ 2.704 s]
[INFO] gameoflife-build ................................... SKIPPED
[INFO] gameoflife-core .................................... SKIPPED
[INFO] gameoflife-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.429 s
[INFO] Finished at: 2017-12-04T15:54:50Z
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (unit-tests) on project gameoflife: Error occured in starting fork, check output in log -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: No test report files were found. Configuration error?
Finished: FAILURE

Failed to execute goal on project gameoflife-web

I am getting this when attempt to build it:
Building in workspace /var/lib/jenkins/workspace/DEVELOPER_CODE_REVIEW

git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
git config remote.origin.url https://github.com/wakaleo/game-of-life.git # timeout=10
Fetching upstream changes from https://github.com/wakaleo/game-of-life.git
git --version # timeout=10
using GIT_ASKPASS to set credentials
git fetch --tags --progress https://github.com/wakaleo/game-of-life.git +refs/heads/:refs/remotes/origin/
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision c3f5796 (refs/remotes/origin/master)
git config core.sparsecheckout # timeout=10
git checkout -f c3f5796
First time build. Skipping changelog.
[DEVELOPER_CODE_REVIEW] $ /usr/local/maven/bin/mvn -P metrics pmd:pmd
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gameoflife
[INFO] gameoflife-build
[INFO] gameoflife-core
[INFO] gameoflife-web
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-pmd-plugin:3.2:pmd (default-cli) @ gameoflife ---
[WARNING] Unable to locate Source XRef to link to - DISABLED
[WARNING] Unable to locate Source XRef to link to - DISABLED
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-build 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-pmd-plugin:3.2:pmd (default-cli) @ gameoflife-build ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-core 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-pmd-plugin:3.2:pmd (default-cli) @ gameoflife-core ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ......................................... SUCCESS [ 1.264 s]
[INFO] gameoflife-build ................................... SUCCESS [ 0.005 s]
[INFO] gameoflife-core .................................... SUCCESS [ 0.003 s]
[INFO] gameoflife-web ..................................... FAILURE [ 0.043 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.592 s
[INFO] Finished at: 2017-04-15T02:32:53+05:30
[INFO] Final Memory: 17M/185M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gameoflife-web
Build step 'Invoke top-level Maven targets' marked build as failure
[PMD] Skipping publisher since build result is FAILURE
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

Failed to execute goal

Hi,
I'm following the book, but its not working for me, I did have it working on a previous build of jenkins, but its not working now.

I'm getting warnings, but it ends with this error.

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test

Any ideas how I can resolve this, I'm sure, as I had it working once that its not an error in the code, but more likely configuration.

Im running jenkins on centos in AWS ec2.

Jenkins and MAVEN: Some problems were encountered while processing the POMs:

I have the game of life cloned to my own project and configured it according to the book Jenkins The definitive Guide and when building getting this error.
What can be the problem, I'm not familiar with POMS

[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/wagon/wagon-webdav-jackrabbit/2.2/wagon-webdav-jackrabbit-2.2.pom

[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav-jackrabbit:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:2.2 @
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]

[ERROR] The project com.wakaleo.gameoflife:gameoflife:1.0-SNAPSHOT (/var/lib/jenkins/workspace/Allen-GameOfLife-Default/pom.xml) has 1 error
[ERROR] Unresolveable build extension: Plugin org.apache.maven.wagon:wagon-webdav-jackrabbit:2.2 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.wagon:wagon-webdav-jackrabbit:jar:2.2: Could not transfer artifact org.apache.maven.wagon:wagon-webdav-jackrabbit:pom:2.2 from/to central (https://repo.maven.apache.org/maven2): java.security.ProviderException: java.security.KeyException -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

failed to build war for game-of-life


T E S T S

OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007f92a48ab000, 262144, 0) failed; error='Cannot allocate memory' (errno=12)

There is insufficient memory for the Java Runtime Environment to continue.

Native memory allocation (mmap) failed to map 262144 bytes for committing reserved memory.

An error report file with more information is saved as:

/var/lib/jenkins/workspace/game-of-life/hs_err_pid6694.log

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[JENKINS] Recording test results
[WARNING] Attempt to (de-)serialize anonymous class org.jfrog.hudson.maven2.MavenDependenciesRecorder$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for gameoflife 1.0-SNAPSHOT:
[INFO]
[INFO] gameoflife ......................................... FAILURE [ 9.705 s]
[INFO] gameoflife-build ................................... SKIPPED
[INFO] gameoflife-core .................................... SKIPPED
[INFO] gameoflife-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.863 s
[INFO] Finished at: 2019-09-06T09:09:38Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (unit-tests) on project gameoflife: Error occured in starting fork, check output in log -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[JENKINS] Archiving /var/lib/jenkins/workspace/game-of-life/gameoflife-build/pom.xml to com.wakaleo.gameoflife/gameoflife-build/1.0-SNAPSHOT/gameoflife-build-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/lib/jenkins/workspace/game-of-life/pom.xml to com.wakaleo.gameoflife/gameoflife/1.0-SNAPSHOT/gameoflife-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/lib/jenkins/workspace/game-of-life/gameoflife-core/pom.xml to com.wakaleo.gameoflife/gameoflife-core/1.0-SNAPSHOT/gameoflife-core-1.0-SNAPSHOT.pom
[JENKINS] Archiving /var/lib/jenkins/workspace/game-of-life/gameoflife-web/pom.xml to com.wakaleo.gameoflife/gameoflife-web/1.0-SNAPSHOT/gameoflife-web-1.0-SNAPSHOT.pom
channel stopped
[DeployPublisher][INFO] Build failed, project not deployed
Finished: FAILURE

dependency issue for gamaoflife-web

#mvn -version
Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.10.0-33-generic", arch: "amd64", family: "unix"

getting the below error when running code review. I tried the solutions given earlier. But nothing is working. Please suggest the possible corrective action or any configuration i am missing.

[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :gameoflife-web

Coverage report not there

I'm trying to follow the book. Maven version 3.0.4.
I'm getting the following warnings:

[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-core:jar:0.9.67-SNAPSHOT
[WARNING] 'reporting.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 16, column 21

and

[WARNING] The POM for org.easyb:maven-easyb-plugin:jar:1.5 is missing, no dependency information available

but the following is very strange.

Cobertura: Loaded information on 2 classes.
Report time: 174ms

[INFO] Cobertura Report generation was successful.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS [4.259s]
[INFO] gameoflife-build .................................. SUCCESS [0.833s]
[INFO] gameoflife-core ................................... SUCCESS [3.581s]
[INFO] gameoflife-web .................................... SUCCESS [2.567s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.657s
[INFO] Finished at: Wed Dec 19 05:11:59 CET 2012
[INFO] Final Memory: 18M/45M
[INFO] ------------------------------------------------------------------------
Publishing Javadoc
Recording test results
CodeCover: looking for coverage reports in the provided path: **/target/site/cobertura/coverage.xml
CodeCover: no coverage files found in workspace. Was any report generated?
Build step 'Record CodeCover coverage report' changed build result to FAILURE

Any ideas?

How to add findbugs related errors in this project?

Thanks for this Jenkins Sample project, it really helped me to learn a lot about Jenkins.

I'm not a JAVA Guy, so now I want to show some warnings/errors, that has been found by Findbugs in Jenkins demo. Is it possible to add it in this project or share some code?

It always show 0 warning!!
FindBugs: 0 warnings.

No warnings since build 15.
New zero warnings highscore: no warnings since yesterday!

I also want to add selenium and Jmeter demo in jenkins, so do you have selenium and Jmeter test cases of this demo project to integrate with Jenkins?

Thanks
--Pankaj

Java Doc generation failing

Hi,

I followed the instructions on page 33-34 to generate Javadocs. The Javadocs for gameoflife-core are generated, but now the buildflow fails due to an error with gameoflife-web. Any hints on what the problem could be?

[INFO] --- maven-war-plugin:2.1.1:war (default-war) @ gameoflife-web ---
[INFO] Packaging webapp
[INFO] Assembling webapp [gameoflife-web] in [C:\Program Files (x86)\Jenkins\workspace\gameoflife-default\gameoflife-web\target\gameoflife]
[INFO] Processing war project
[INFO] Copying webapp resources [C:\Program Files (x86)\Jenkins\workspace\gameoflife-default\gameoflife-web\src\main\webapp]
[INFO] Webapp assembled in [604 msecs]
[INFO] Building war: C:\Program Files (x86)\Jenkins\workspace\gameoflife-default\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] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ......................................... SUCCESS [ 3.782 s]
[INFO] gameoflife-build ................................... SUCCESS [ 1.830 s]
[INFO] gameoflife-core .................................... SUCCESS [ 8.026 s]
[INFO] gameoflife-web ..................................... SUCCESS [ 5.022 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.200 s
[INFO] Finished at: 2015-02-17T16:30:10+01:00
[INFO] Final Memory: 26M/309M
[INFO] ------------------------------------------------------------------------
[gameoflife-default] $ mvn.bat javadoc:javadoc
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: Cannot run program "mvn.bat" (in directory "C:\Program Files (x86)\Jenkins\workspace\gameoflife-default"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:803)
at hudson.Launcher$ProcStarter.start(Launcher.java:381)
at hudson.Launcher$ProcStarter.join(Launcher.java:388)
at hudson.tasks.Maven.perform(Maven.java:328)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
at hudson.model.Build$BuildExecution.build(Build.java:199)
at hudson.model.Build$BuildExecution.doRun(Build.java:160)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
at hudson.model.Run.execute(Run.java:1718)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 16 more
Build step 'Invoke top-level Maven targets' marked build as failure
Recording test results
Publishing Javadoc
Archiving artifacts
Finished: FAILURE

BR Daniel

Jelastic plugin issue

I started reading jenkins definitive guide. I have tried to follow chapter 2 but my initial build failed which I think I've done exactly as described in the book.
It said:

Reason: POM 'com.jelastic:jelastic-maven-plugin' not found in repository: Unable to download the artifact from any repository
com.jelastic:jelastic-maven-plugin:pom:1.6
from the specified remote repositories: central (http://repo1.maven.org/maven2) for project com.jelastic:jelastic-maven-plugin

So I added plugin repo in the pom.xml like here
Then I hit an error indicating that I should use maven 3.

[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] [enforcer:enforce {execution: enforce-versions}]
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 2.2.1 is not in the allowed range [3.0,).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR

Is there anything obvious I'm missing?

Game of life not building in Jenkins, (error occured in starting fork)

T E S T S

Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
at org.jacoco.agent.rt.internal_e6e56f0.PreMain.createRuntime(PreMain.java:55)
at org.jacoco.agent.rt.internal_e6e56f0.PreMain.premain(PreMain.java:47)
... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
at java.base/java.lang.Class.getField(Class.java:1999)
at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
... 9 more
FATAL ERROR in native method: processing of -javaagent failed

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.11:test (unit-tests) on project gameoflife: Error occured in starting fork, check output in log -> [Help 1]

Download & question

Hi

thanks for this great guide!

i just wanted to get the latest version and I register on your page - but the download link you provided just leads to an empty page?

The second question if I start to generate the project i get this issue:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (freemarker.cache).
log4j:WARN Please initialize the log4j system properly.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] null
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.NullPointerException
at net.thucydides.core.reports.history.TestHistory.close(TestHistory.java:90)
at net.thucydides.core.reports.history.TestHistory.save(TestHistory.java:83)
at net.thucydides.core.reports.history.TestHistory.updateData(TestHistory.java:69)
at net.thucydides.core.reports.html.HtmlAggregateStoryReporter.updateHistoryFor(HtmlAggregateStoryReporter.java:190)
at net.thucydides.core.reports.html.HtmlAggregateStoryReporter.generateHistoryReportFor(HtmlAggregateStoryReporter.java:194)
at net.thucydides.core.reports.html.HtmlAggregateStoryReporter.generateReportsForTestResultsFrom(HtmlAggregateStoryReporter.java:84)
at net.thucydides.maven.plugins.ThucydidesAggregatorMojo.generateHtmlStoryReports(ThucydidesAggregatorMojo.java:118)
at net.thucydides.maven.plugins.ThucydidesAggregatorMojo.execute(ThucydidesAggregatorMojo.java:92)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------

the full build output you can get here: http://pastebin.com/fruTpj5C

i already tried to search for a solution but I couldn't find any. Do you have some hints?

Thanks for the fish, sCHween

easyb plugin breaks build

I get the following when building with Maven 2.2.1:

[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: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-build
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory C:\Documents and Settings\axiomsofchoice\My Documents\game-of-life\gameoflife-build\target
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-core
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-webservice
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] ------------------------------------------------------------------------
[INFO] Building gameoflife-web
[INFO] task-segment: [clean]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/easyb/maven-easyb-plugin/1.2.1/maven-easyb-plugin-1.2.1.jar
[INFO] Unable to find resource 'org.easyb:maven-easyb-plugin:maven-plugin:1.2.1' in repository central (http://repo1.maven.org/maven2)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that the goal name is correct: 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.easyb -DartifactId=maven-easyb-plugin -Dversion=1.2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.easyb -DartifactId=maven-easyb-plugin -Dversion=1.2.1 -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

org.easyb:maven-easyb-plugin:maven-plugin:1.2.1

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

org.easyb:maven-easyb-plugin:maven-plugin:1.2.1

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Wed Aug 24 15:52:30 BST 2011
[INFO] Final Memory: 10M/24M
[INFO] ------------------------------------------------------------------------

Provisioning a VM with Jenkins running this example

If you run a Mac with VirtualBox or VMWare you can get a fully configured buildserver running this example on Jenkins connected to a Nexus proxy, storing the artifact in Artifactory. It also has Sonar. A second VM with Tomcat is disposable for testing.

https://github.com/bbaassssiiee/buildserver

maven install fail

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] ------------------------------------------------------------------------

[ERROR] SLF4J: Class path contains multiple SLF4J bindings.

Hello,

I am getting the following error after trying to use Corbertura:

SLF4J: Found binding in [jar:file:/C:/Users/usr1/.jenkins/workspace/game-of-life-default/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/usr1/.jenkins/workspace/game-of-life-default/org/slf4j/slf4j-simple/1.6.1/slf4j-simple-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]

I know that this problem has been discussed earlier. but I could not figure out where exactly to place the 'exclusion' tags(http://www.slf4j.org/codes.html#multiple_bindings). Any help to solve this problem will be appreciated.

Thank you.

Sonar plugin

Tried to run sonar plugin against game-of-life and it gives this error:

[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [21:45:39.300] Execute org.codehaus.mojo:cobertura-maven-plugin:2.5.1:cobertura done: 457 ms
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Can not execute Sonar

Embedded error: Unable to execute maven plugin

Missing:

  1. com.wakaleo.gameoflife:gameoflife-webservice:jar:0.9.65-SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.wakaleo.gameoflife -DartifactId=gameoflife-webservice -Dversion=0.9.65-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=com.wakaleo.gameoflife -DartifactId=gameoflife-webservice -Dversion=0.9.65-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.wakaleo.gameoflife:gameoflife-web:war:0.9.65-SNAPSHOT
2) com.wakaleo.gameoflife:gameoflife-webservice:jar:0.9.65-SNAPSHOT


1 required artifact is missing.

for artifact:
com.wakaleo.gameoflife:gameoflife-web:war:0.9.65-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

game-of-life maven script not working - dependency failures

I am trying to go through chapter 2 of the Jenkins Definitive Guide book, but I am getting errors with the maven build. First, I am using java 1.6.0_22 and maven 3.0.3 on Ubuntu Linux. The maven builds fail both in Jenkins and when I run it on the command line directly. I have encountered two errors, one I worked around and another that I don't know how to fix. Currently, it is breaking when I run the javadoc:javadoc target. I don't know much about maven, so I'm needing help to progress with the book.

First problem - maven dependency errors for "clean package"

I won't copy the full error message as it is similar to the second problem, but it couldn't resolve dependencies having to do with com.wakaleo.gameoflife. When I looked at where it was trying to pull from, it looked like maybe you had changed the wakaleo maven url, so changing the pom.xml file to the text below fixed it ("mvn clean package" finally worked and all tests passed, etc.) .

<repositories>
  <repository>
    <id>wakaleo-releases</id>
    <name>Wakaleo Releases</name>
    <url>http://www.wakaleo.com/maven/repos/</url>
  </repository>
 <repository>
    <id>wakaleo-releases-2</id>
    <name>Wakaleo Releases 2</name>
    <url>http://maven.wakaleo.com/releases/</url>
 </repository>
</repositories>

Second problem - maven dependency errors for "javadoc:javadoc"

Using the same pom.xml above, I now cannot get the javadoc:javadoc target to build. Here is the error message:
[INFO] >>> maven-javadoc-plugin:2.8:javadoc (default-cli) @ gameoflife-webservice >>>
[INFO]
[INFO] <<< maven-javadoc-plugin:2.8:javadoc (default-cli) @ gameoflife-webservice <<<
[DEBUG] Could not find metadata com.wakaleo.gameoflife:gameoflife-core:0.7.47-SNAPSHOT/maven-metadata.xml in local (/home/midpeter444/.m2/repository)
[DEBUG] com.wakaleo.gameoflife:gameoflife-webservice:jar:0.7.47-SNAPSHOT
[DEBUG] com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT:compile
[DEBUG] commons-lang:commons-lang:jar:2.5:compile
[DEBUG] junit:junit:jar:4.8.2:test
[DEBUG] org.hamcrest:hamcrest-all:jar:1.1:test
[DEBUG] Could not find metadata com.wakaleo.gameoflife:gameoflife-core:0.7.47-SNAPSHOT/maven-metadata.xml in local (/home/midpeter444/.m2/repository)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] gameoflife ........................................ SUCCESS [2.517s]
[INFO] gameoflife-build .................................. SUCCESS [1.411s]
[INFO] gameoflife-core ................................... SUCCESS [3.590s]
[INFO] gameoflife-webservice ............................. FAILURE [1.391s]
[INFO] gameoflife-web .................................... SKIPPED
[INFO] gameoflife-cli .................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.799s
[INFO] Finished at: Fri Sep 09 18:33:04 EDT 2011
[INFO] Final Memory: 10M/125M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project gameoflife-webservice: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-webservice:jar:0.7.47-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project gameoflife-webservice: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-webservice:jar:0.7.47-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:108)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-webservice:jar:0.7.47-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:170)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:171)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:412)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:164)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:541)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:220)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:395)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.7.47-SNAPSHOT
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:531)
... 26 more
[ERROR]

Gameoflife project is unable to build in Maven 3.5 under Jenkins 2.6 under Mavens Project.

It seems if this project needs to run under Mavens3.5 with Maven project.. needs to Maven wrapper to add the project. If you have time, kindly add this Mavens wrapper in this project.

Executing Maven: -B -f [...]/pom.xml install
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
at hudson.remoting.UserRequest.perform(UserRequest.java:153)
at hudson.remoting.UserRequest.perform(UserRequest.java:50)
at hudson.remoting.Request$2.run(Request.java:336)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NoSuchFieldError: DEFAULT_USER_SETTINGS_FILE
at

Jenkins having problems building ( probably with maven configuration )

Hi All, I have been using Jenkins 2.110 on CentOS to build this project. I have been following the Jenkins - A definitive guide instructions in setting up the project, unfortunately I am continuously bombarded with the same error every time I try to run the build.

I have been using maven 3.5.3 regarding the same. Someone mentioned to use "clean install" instead of "clean package" , which didnt help me either. I am absolutely zero in maven. So, can someone help me please?

Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-build:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife:pom:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter. @ line 302, column 40
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gameoflife [pom]
[INFO] gameoflife-build [jar]
[INFO] gameoflife-core [jar]
[INFO] gameoflife-web [war]
[INFO]
[INFO] -----------------< com.wakaleo.gameoflife:gameoflife >------------------
[INFO] Building gameoflife 1.0-SNAPSHOT [1/4]

jenkins issue

Hi All,
below is the issue i am facing while executing the WAKALEO project could anyone please help me.

Building in workspace C:\ProgramData\Jenkins.jenkins\workspace\wakaleo
The recommended git tool is: NONE
No credentials specified

git.exe rev-parse --resolve-git-dir C:\ProgramData\Jenkins.jenkins\workspace\wakaleo.git # timeout=10
Fetching changes from the remote Git repository
git.exe config remote.origin.url https://github.com/kameshchalasani/wakaleo-game-of-life.git # timeout=10
Fetching upstream changes from https://github.com/kameshchalasani/wakaleo-game-of-life.git
git.exe --version # timeout=10
git --version # 'git version 2.41.0.windows.1'
git.exe fetch --tags --force --progress -- https://github.com/kameshchalasani/wakaleo-game-of-life.git +refs/heads/:refs/remotes/origin/ # timeout=10
git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
Checking out Revision 18411548f702a967379dd171ee82b9bbc77cd532 (refs/remotes/origin/master)
git.exe config core.sparsecheckout # timeout=10
git.exe checkout -f 18411548f702a967379dd171ee82b9bbc77cd532 # timeout=10
Commit message: "Create kameshtest"
git.exe rev-list --no-walk 18411548f702a967379dd171ee82b9bbc77cd532 # timeout=10
[wakaleo] $ cmd.exe /C "C:\ProgramData\Jenkins.jenkins\tools\hudson.tasks.Maven_MavenInstallation\Maven3\bin\mvn.cmd clean compile && exit %%ERRORLEVEL%%"
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-build:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-core:jar:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife-web:war:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter.
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.wakaleo.gameoflife:gameoflife:pom:1.0-SNAPSHOT
[WARNING] Reporting configuration should be done in section, not in maven-site-plugin as reportPlugins parameter. @ line 302, column 40
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] gameoflife [pom]
[INFO] gameoflife-build [jar]
[INFO] gameoflife-core [jar]
[INFO] gameoflife-web [war]
[INFO]
[INFO] -----------------< com.wakaleo.gameoflife:gameoflife >------------------
[INFO] Building gameoflife 1.0-SNAPSHOT [1/4]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife ---
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (jacoco-initialize) @ gameoflife ---
[INFO] argLine set to -javaagent:C:\WINDOWS\system32\config\systemprofile\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\ProgramData\Jenkins\.jenkins\workspace\wakaleo\target\jacoco.exec
[INFO]
[INFO] --------------< com.wakaleo.gameoflife:gameoflife-build >---------------
[INFO] Building gameoflife-build 1.0-SNAPSHOT [2/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-build ---
[INFO] Deleting C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-build\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife-build ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gameoflife-build ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (jacoco-initialize) @ gameoflife-build ---
[INFO] argLine set to -javaagent:C:\WINDOWS\system32\config\systemprofile\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\ProgramData\Jenkins\.jenkins\workspace\wakaleo\gameoflife-build\target\jacoco.exec
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gameoflife-build ---
[INFO] No sources to compile
[INFO]
[INFO] ---------------< com.wakaleo.gameoflife:gameoflife-core >---------------
[INFO] Building gameoflife-core 1.0-SNAPSHOT [3/4]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-core ---
[INFO] Deleting C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-core\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife-core ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gameoflife-core ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-core\src\main\resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (jacoco-initialize) @ gameoflife-core ---
[INFO] argLine set to -javaagent:C:\WINDOWS\system32\config\systemprofile\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\ProgramData\Jenkins\.jenkins\workspace\wakaleo\gameoflife-core\target\jacoco.exec
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gameoflife-core ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-core\target\classes
[INFO]
[INFO] ---------------< com.wakaleo.gameoflife:gameoflife-web >----------------
[INFO] Building gameoflife-web 1.0-SNAPSHOT [4/4]
[INFO] --------------------------------[ war ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ gameoflife-web ---
[INFO] Deleting C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-web\target
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-versions) @ gameoflife-web ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ gameoflife-web ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (jacoco-initialize) @ gameoflife-web ---
[INFO] argLine set to -javaagent:C:\WINDOWS\system32\config\systemprofile\.m2\repository\org\jacoco\org.jacoco.agent\0.7.2.201409121644\org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=C:\ProgramData\Jenkins\.jenkins\workspace\wakaleo\gameoflife-web\target\jacoco.exec
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ gameoflife-web ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to C:\ProgramData\Jenkins.jenkins\workspace\wakaleo\gameoflife-web\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for gameoflife 1.0-SNAPSHOT:
[INFO]
[INFO] gameoflife ......................................... SUCCESS [ 3.757 s]
[INFO] gameoflife-build ................................... SUCCESS [ 1.962 s]
[INFO] gameoflife-core .................................... SUCCESS [ 0.604 s]
[INFO] gameoflife-web ..................................... SUCCESS [ 0.581 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.883 s
[INFO] Finished at: 2023-07-10T14:29:21+05:30
[INFO] ------------------------------------------------------------------------
[wakaleo] $ cmd /c call C:\WINDOWS\TEMP\jenkins355362382058990048.bat

C:\ProgramData\Jenkins.jenkins\workspace\wakaleo>mvn install
'mvn' is not recognized as an internal or external command,
operable program or batch file.

C:\ProgramData\Jenkins.jenkins\workspace\wakaleo>mvn jetty:run
'mvn' is not recognized as an internal or external command,
operable program or batch file.

C:\ProgramData\Jenkins.jenkins\workspace\wakaleo>exit 9009
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.