jenkins-the-definitive-guide-book icon indicating copy to clipboard operation
jenkins-the-definitive-guide-book copied to clipboard

Chapter 1: javadoc:javadoc

Open headcrashing opened this issue 12 years ago • 4 comments

The book wants the user to configure javadoc:javadoc in chapter 1. While Jenkins successfully runs the "compile package" step...

[INFO] ------------------------------------------------------------------------ [INFO] Building gameoflife-core 0.9.67-SNAPSHOT [INFO] ------------------------------------------------------------------------ ... [INFO] Building jar: /usr/share/tomcat6/.jenkins/workspace/gameoflife-default/gameoflife-core/target/gameoflife-core-0.9.67-SNAPSHOT.jar ... [INFO] gameoflife ........................................ SUCCESS [3.888s] [INFO] gameoflife-build .................................. SUCCESS [2.975s] [INFO] gameoflife-core ................................... SUCCESS [7.369s] [INFO] gameoflife-web .................................... SUCCESS [6.889s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------

...it then fails with "javadoc:javadoc" with the following message:

[INFO] >>> maven-javadoc-plugin:2.9:javadoc (default-cli) @ gameoflife-web >>> [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] gameoflife ........................................ SUCCESS [3.104s] [INFO] gameoflife-build .................................. SUCCESS [0.056s] [INFO] gameoflife-core ................................... SUCCESS [1.044s] [INFO] gameoflife-web .................................... FAILURE [0.786s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10.824s [INFO] Finished at: Sun Feb 03 10:03:39 CET 2013 [INFO] Final Memory: 9M/23M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:0.9.67-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.9.67-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

While I am not a complete Maven beginner, I am now stuck and cannot further follow the tutorial of chapter 1. Please provide instructions how to fix that.

headcrashing avatar Feb 03 '13 09:02 headcrashing

Try replacing "compile package" with "install"

On 3 February 2013 20:14, Head Crashing Informatics < [email protected]> wrote:

The book wants the user to configure javadoc:javadoc in chapter 1. While Jenkins successfully runs the "compile package" step...

[INFO]

[INFO] Building gameoflife-core 0.9.67-SNAPSHOT

[INFO]

... [INFO] Building jar: /usr/share/tomcat6/.jenkins/workspace/gameoflife-default/gameoflife-core/target/gameoflife-core-0.9.67-SNAPSHOT.jar ... [INFO] gameoflife ........................................ SUCCESS [3.888s] [INFO] gameoflife-build .................................. SUCCESS [2.975s] [INFO] gameoflife-core ................................... SUCCESS [7.369s] [INFO] gameoflife-web .................................... SUCCESS [6.889s]

[INFO]

[INFO] BUILD SUCCESS

[INFO]

...it then fails with "javadoc:javadoc" with the following message:

[INFO] >>> maven-javadoc-plugin:2.9:javadoc (default-cli) @ gameoflife-web

[INFO]

[INFO] Reactor Summary: [INFO] [INFO] gameoflife ........................................ SUCCESS [3.104s] [INFO] gameoflife-build .................................. SUCCESS [0.056s] [INFO] gameoflife-core ................................... SUCCESS [1.044s] [INFO] gameoflife-web .................................... FAILURE [0.786s]

[INFO]

[INFO] BUILD FAILURE

[INFO]

[INFO] Total time: 10.824s [INFO] Finished at: Sun Feb 03 10:03:39 CET 2013 [INFO] Final Memory: 9M/23M

[INFO]

[ERROR] Failed to execute goal on project gameoflife-web: Could not resolve dependencies for project com.wakaleo.gameoflife:gameoflife-web:war:0.9.67-SNAPSHOT: Could not find artifact com.wakaleo.gameoflife:gameoflife-core:jar:0.9.67-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

While I am not a complete Maven beginner, I am now stuck and cannot further follow the tutorial of chapter 1. Please provide instructions how to fix that.

— Reply to this email directly or view it on GitHubhttps://github.com/wakaleo/jenkins-the-definitive-guide-book/issues/12.


John Smart | Wakaleo Consulting | +61 407 247 642 Optimizing your software development process http://www.wakaleo.com | [email protected]

wakaleo avatar Feb 03 '13 09:02 wakaleo

Replacing "compile package" (as mentioned on page 25) by "install" (as suggested above) actually fixes the build. Thank you so much for this tip! Would be great if you could fix this in the book -- which is great, BTW (page 25, once in the text and once in the screenshot). :-) While it won't fix my printed O'Reilly copy, certainly, it will be beneficial for future volumes. ;-)

headcrashing avatar Feb 03 '13 15:02 headcrashing

Hi headcrashing, I am new beginner of maven, so I am not sure how to "install" package rather than "build" package? could you please help me solve this problem.....

Have been pending for two days.

zhanghui7873 avatar Mar 17 '17 08:03 zhanghui7873

Just use "mvn install" instead of "mvn compile package".

wakaleo avatar Mar 17 '17 08:03 wakaleo