Solved

maven example error

Posted on 2016-10-28
3
35 Views
Last Modified: 2016-11-01
Hi,

I have doownloaded maven example from github.

I went to that folder say C://Test from command prompt.

when i gave command
mvn clean install i am getting below error.

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Parent Module
[INFO] tes-core
[INFO] tes-web-common
[INFO] tes-web-servlet-jsp Maven Webapp
[INFO]                                                                        
[INFO] ------------------------------------------------------------------------
[INFO] Building Parent Module 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Parent Module ...................................... FAILURE [ 10.536 s]
[INFO] in28minutes-core ................................... SKIPPED
[INFO] in28minutes-web-common ............................. SKIPPED
[INFO] in28minutes-web-servlet-jsp Maven Webapp ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.634 s
[INFO] Finished at: 2016-10-28T14:55:55-04:00
[INFO] Final Memory: 8M/150M
[INFO] ------------------------------------------------------------------------
Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean
-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): connect timed out -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException



please advise
0
Comment
Question by:gudii9
  • 2
3 Comments
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 41865515
Do you have internet connection from the PC where you ran the mvn command?

Are you behind some sort of proxy? If so, you will need to configure Maven to also use that proxy.
0
 
LVL 7

Author Comment

by:gudii9
ID: 41867336
Are you behind some sort of proxy?

that is correct it worked on other laptop outside this network.
How you have figured out based on that error message? please advose
0
 
LVL 35

Expert Comment

by:mccarl
ID: 41868538
The very last part of the error message says "connect timed out" and that means that it can't connect to the server. It is unlikely to be the server that is the issue, and most pc's these days have internet connection, so the common case is that it is due to proxy issues.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now