-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 1: javadoc:javadoc #12
Comments
Try replacing "compile package" with "install" On 3 February 2013 20:14, Head Crashing Informatics <
John Smart | Wakaleo Consulting | +61 407 247 642 |
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, Have been pending for two days. |
Just use "mvn install" instead of "mvn compile package". |
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.
The text was updated successfully, but these errors were encountered: