Solved

maven example error

Posted on 2016-10-28
3
52 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Java asynchronous logging 4 50
Java JRE greater than 1.6 5 50
javap bin 2 28
expectj telnet failing 5 26
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

895 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

16 Experts available now in Live!

Get 1:1 Help Now