wakaleo/jenkins-the-definitive-guide-book

Chapter 1: javadoc:javadoc

Opened this issue · 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.

Try replacing "compile package" with "install"

On 3 February 2013 20:14, Head Crashing Informatics <
notifications@github.com> 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//issues/12.


John Smart | Wakaleo Consulting | +61 407 247 642
Optimizing your software development process
http://www.wakaleo.com | john.smart@wakaleo.com

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. ;-)

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.

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