Solved

maven example error

Posted on 2016-10-28
3
90 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 36

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 36

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

Get Actionable Data from Your Monitoring Solution

Your communication platform is only as good as the relevance of the information you send. Ensure your alerts get to the right people every time with actionable responses. Create escalation rules that ensure everyone follows the process and nothing is left to chance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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:

690 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