This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes How use sonar for an existing project in eclipse ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "How use sonar for an existing project in eclipse ?" Watch "How use sonar for an existing project in eclipse ?" New topic

How use sonar for an existing project in eclipse ?

majid nakit
Ranch Hand

Joined: Jun 26, 2001
Posts: 167

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] Building webcbs 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[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 ( Error transferring file: Connection timed out: c
onnect -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1]

Your help is appreciated.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

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 into a browser and see what you get.

Or perhaps you need to configure Maven to use a proxy server:

JBoss In Action
subject: How use sonar for an existing project in eclipse ?
It's not a secret anymore!