Jenkins 2.0 and the game of life

477 views
Skip to first unread message

Sarah Baker

unread,
Apr 28, 2016, 12:04:28 AM4/28/16
to Jenkins Users
Greetings,
I'm working thru the book 'Jenkins, The Definitive Guide'

Jenkins 2.0, Java 8 update 92, Maven 3.3.9 on Windows.
Jenkins is installed, game of life built fine.
This problem relates to the section  "More Reporting - Displaying Javadocs".
The maven target javadoc:javadoc fails with issues (see below).  
I am not familiar enough with Maven to understand the source of the problem. 
I suspect Jenkins, or some configuration inside Jenkins.
I had at first assumed it was something wrong with my maven install, but
I removed it completely, allowing jenkins to install it (option in the Global Tool Configuration for Maven), the same problem occurred.  
When I run the mvn command outside of jenkins at the command line in the same directory, it builds without any errors.
I cannot find a similar problem posted anywhere thusfar.  
Thank you for any clues.

C:\Users\Sarah\.jenkins\jobs\gameoflife-default\workspace>"C:\Program Files\Apache\Maven\bin\\mvn.cmd" javadoc:javadoc -o 
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] gameoflife
[INFO] gameoflife-build
[INFO] gameoflife-core
[INFO] gameoflife-web
[WARNING] The POM for org.apache.maven.plugins:maven-release-plugin:jar:2.5 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.5: Plugin org.apache.maven.plugins:maven-release-plugin:2.5 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-release-plugin:jar:2.5 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-deploy-plugin:jar:2.8.2 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-deploy-plugin:2.8.2: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.8.2 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-deploy-plugin:jar:2.8.2 has not been downloaded from it before.
[WARNING] The POM for com.jelastic:jelastic-maven-plugin:jar:1.6 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for com.jelastic:jelastic-maven-plugin:1.6: Plugin com.jelastic:jelastic-maven-plugin:1.6 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact com.jelastic:jelastic-maven-plugin:jar:1.6 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-site-plugin:jar:3.3 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-site-plugin:3.3: Plugin org.apache.maven.plugins:maven-site-plugin:3.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-site-plugin:jar:3.3 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-install-plugin:jar:2.4 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-install-plugin:jar:2.4 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-antrun-plugin:jar:1.3 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5: Plugin org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-dependency-plugin:2.8: Plugin org.apache.maven.plugins:maven-dependency-plugin:2.8 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-dependency-plugin:jar:2.8 has not been downloaded from it before.
[WARNING] The POM for org.apache.maven.plugins:maven-release-plugin:jar:2.3.2 is missing, no dependency information available
[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-release-plugin:2.3.2: Plugin org.apache.maven.plugins:maven-release-plugin:2.3.2 or one of its dependencies could not be resolved: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.apache.maven.plugins:maven-release-plugin:jar:2.3.2 has not been downloaded from it before.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] gameoflife ......................................... SKIPPED
[INFO] gameoflife-build ................................... SKIPPED
[INFO] gameoflife-core .................................... SKIPPED
[INFO] gameoflife-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.238 s
[INFO] Finished at: 2016-04-27T19:54:34-07:00
[INFO] Final Memory: 10M/111M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'javadoc' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\windows\system32\config\systemprofile\.m2\repository), 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:
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Recording test results
Publishing Javadoc
Finished: FAILURE
© 2016 Microsoft Terms Privacy & cookies Developers English (United States)


Daniel Beck

unread,
Apr 28, 2016, 3:48:13 AM4/28/16
to jenkins...@googlegroups.com

> On 28.04.2016, at 06:04, Sarah Baker <sab...@gmail.com> wrote:
>
> I suspect Jenkins, or some configuration inside Jenkins.
> I had at first assumed it was something wrong with my maven install, but
> I removed it completely, allowing jenkins to install it (option in the Global Tool Configuration for Maven), the same problem occurred.
> When I run the mvn command outside of jenkins at the command line in the same directory, it builds without any errors.
> I cannot find a similar problem posted anywhere thusfar.
> Thank you for any clues.

You tell Maven to work offline (-o), i.e. don't contact remote repositories, and then it cannot download anything, telling you…

> Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact … has not been downloaded from it before.

Sarah Baker

unread,
Apr 28, 2016, 11:37:13 PM4/28/16
to Jenkins Users
Thank you, that makes sense. It's not something I'm introducing in the build line that I enter into jenkins for maven.
I don't know how it's getting introduced.  Is there some global setting I should look for, the global configs say simply default for maven,
or should I look somewhere in the POM?  What should I look for?

Daniel Beck

unread,
Apr 29, 2016, 4:32:45 AM4/29/16
to jenkins...@googlegroups.com

> On 29.04.2016, at 05:37, Sarah Baker <sab...@gmail.com> wrote:
>
> It's not something I'm introducing in the build line that I enter into jenkins for maven.
> I don't know how it's getting introduced.

To clarify, you did not enter the values as shown on figure 2-24 on page 34, where the 'Goals' text field contains the text below?

> javadoc:javadoc -o


Because that's what makes Maven work offline.

Sarah Baker

unread,
May 1, 2016, 8:02:04 PM5/1/16
to Jenkins Users, m...@beckweb.net
Yes, I've tried both with and without the -o exactly as it indicates in the book. 
Entered with javadoc:javadoc -o  the error is
...
[INFO] --- maven-install-plugin:2.4:install (default-install) @ gameoflife ---
[WARNING] The POM for org.codehaus.plexus:plexus-utils:jar:3.0.5 is missing, no dependency information available
[WARNING] The POM for org.codehaus.plexus:plexus-digest:jar:1.0 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] gameoflife ......................................... FAILURE [ 12.519 s]
[INFO] gameoflife-build ................................... SKIPPED
[INFO] gameoflife-core .................................... SKIPPED
[INFO] gameoflife-web ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.514 s
[INFO] Finished at: 2016-05-01T16:55:16-07:00
[INFO] Final Memory: 17M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-install) on project gameoflife: Execution default-install of goal org.apache.maven.plugins:maven-install-plugin:2.4:install failed: Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.codehaus.plexus:plexus-utils:jar:3.0.5, org.codehaus.plexus:plexus-digest:jar:1.0: Cannot access central (https://repo.maven.apache.org/maven2) in offline mode and the artifact org.codehaus.plexus:plexus-utils:jar:3.0.5 has not been downloaded from it before. -> [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
Build step 'Invoke top-level Maven targets' marked build as failure
Archiving artifacts
Recording test results
ERROR: Step ‘Publish JUnit test result report’ failed: Test reports were found but none of them are new. Did tests run? 
For example, C:\Users\Sarah\.jenkins\jobs\gameoflife-default\workspace\gameoflife-acceptance-tests\pom.xml is 7 days 1 hr old

Finished: FAILURE

Richard Bywater

unread,
May 1, 2016, 8:10:52 PM5/1/16
to jenkins...@googlegroups.com
What error is received when NOT using the -o flag?

Richard.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bd606c62-4876-4a36-988d-15b4fa98364e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sarah Baker

unread,
May 1, 2016, 10:41:01 PM5/1/16
to Jenkins Users
From book, figure 2-25.  
Entering
Goals install clean
Goals javadoc:javadoc 
without -o on either build goal
it built this time.

Why? Unclear, I've been playing with a bunch of settings in jenkins. 
I found one issue with my setup that 'archive the artifacts' was **/.jar and not  **/target/*.jar  and fixed that.
I had jenkins download a preferred JDK 8u77 and not the one I had 8u92 based on some suggestions for problems which sourced to pointing to a JRE and not JDK.

Onwards... :)
Reply all
Reply to author
Forward
0 new messages