Geting Maven error when compiling Netty''s Chapter 2 Book code

129 views
Skip to first unread message

L_DisplayName

unread,
Sep 27, 2016, 10:39:17 PM9/27/16
to Netty discussions

Greetings All,
I am receiving the following error when I execute the command: mvn clean package within Netty In Action's chapter 2 book code as follows:
/netty-in-action-2.0-SNAPSHOT/chapter2# mvn clean package

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Chapter 2. Your First Netty Application - Echo App . SUCCESS [  2.352 s]
[INFO] Chapter 2. Echo Client ............................. FAILURE [  2.457 s]
[INFO] Chapter 2. Echo Server ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.936 s
[INFO] Finished at: 2016-09-27T20:36:45-06:00
[INFO] Final Memory: 9M/143M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project echo-client: Could not resolve dependencies for project nia:echo-client:jar:2.0-SNAPSHOT: Could not find artifact nia:utils:jar:2.0-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 <goals> -rf :echo-client


I am using maven version 3.3.9 and oracle java version 1.8.0. Both maven and java were added to my executable PATH.  In addition, I downloaded the latest book code from: https://github.com/normanmaurer/netty-in-action/tree/2.0-SNAPSHOT

Can someone tell me how I can resolve this issue and why maven can not find the artifact: nia:utils:jar:2.0-SNAPSHOT?

Bin Zhu

unread,
Sep 28, 2016, 9:28:45 AM9/28/16
to ne...@googlegroups.com
You need to build "utils" module first. Try run "mvn clean install" from the top level "netty-in-action" folder first.

--
You received this message because you are subscribed to the Google Groups "Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to netty+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/netty/d680138d-5224-4a44-9f08-37cfa377a807%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages