• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How use sonar for an existing project in eclipse ?

 
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Let say I have this project called : webcbs
in this folder : C:\Users\rejith\workspace

If I go to : C:\Users\rejith\workspace (in the command line) and do :
mvn archetype:generate
giving -DartifactId=webcbs <--- the name of my existing project
....

The pom was created :



I got this :

C:\Users\rejith\workspace\webcbs>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building webcbs 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resour
ces-plugin/2.4.3/maven-resources-plugin-2.4.3.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22.453s
[INFO] Finished at: Thu Nov 10 11:51:57 EST 2011
[INFO] Final Memory: 1M/3M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.4.3 or one of i
ts dependencies could not be resolved: Failed to read artifact descriptor for or
g.apache.maven.plugins:maven-resources-plugin:jar:2.4.3: Could not transfer arti
fact org.apache.maven.plugins:maven-resources-plugin:pom:2.4.3 from/to central (
http://repo1.maven.org/maven2): Error transferring file: Connection timed out: c
onnect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti
onException
C:\Users\rejith\workspace\webcbs>


Your help is appreciated.
thanks

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Where are you running this? At home? At work? If at work, are you behind a corporate firewall and do you even have access to Maven Central? Try entering the URL http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.4.3/ into a browser and see what you get.

Or perhaps you need to configure Maven to use a proxy server:
http://maven.apache.org/guides/mini/guide-proxies.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic