Skip to content
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

Open
headcrashing opened this issue Feb 3, 2013 · 4 comments
Open

Chapter 1: javadoc:javadoc #12

headcrashing opened this issue Feb 3, 2013 · 4 comments

Comments

@headcrashing
Copy link

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.

@wakaleo
Copy link
Owner

wakaleo commented Feb 3, 2013

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

@headcrashing
Copy link
Author

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

@zhanghui7873
Copy link

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.

@wakaleo
Copy link
Owner

wakaleo commented Mar 17, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants