Hi,

that looks like your maven cannot connect to the central repository to download the required plugins for executing the archetype. Are you behind a firewall or something ? - In that case you may have to configure
a proxy in your settings.

See also http://maven.apache.org/settings.html#Proxies


Best regards
Andreas

Am 10/22/10 8:43 AM, schrieb wasi_shez:
Thank you so much Manual for such a Quick response.


What do you mean by My-app

Let me ensure the Paths of my Directories.


JRE :>
C:\Program Files\Java\jdk1.6.0_22\jre
Maven 3.0:>
C:\apache-maven-3.0\bin
Path where my "Test.Java" located in My Eclipse 6.5:>
C:\Workspace_Eclipse\Sample\src


____________________________________________________________________________________

What i DID>>


Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Waseem>cd C:\Workspace_Eclipse\Sample\src

C:\Workspace_Eclipse\Sample\src>mvn archetype:generate
[INFO] Scanning for projects...
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-install-plugin:2.3.1: Plugin
org.apache.maven.plugins:maven-install-plugin:2.3
.1 or one of its dependencies could not be resolved: Could not transfer
artifact
  org.apache.maven.plugins:maven-install-plugin:jar:2.3.1 from central
(http://re
po1.maven.org/maven2): Error transferring file: Network is unreachable:
connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.5/maven-deploy-plugin-2.5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-deploy-plugin:2.5: Plugin org.apache.maven.plugins:maven-deploy-plugin:2.5
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-deploy-plugin:jar:2.5 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-clean-plugin:2.4.1: Plugin
org.apache.maven.plugins:maven-clean-plugin:2.4.1 o
r one of its dependencies could not be resolved: Could not transfer artifact
org
.apache.maven.plugins:maven-clean-plugin:jar:2.4.1 from central
(http://repo1.ma
ven.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0.1/maven-site-plugin-2.0.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-site-plugin:2.0.1: Plugin org.apache.maven.plugins:maven-site-plugin:2.0.1
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-site-plugin:jar:2.0.1 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun
-plugin/1.3/maven-antrun-plugin-1.3.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-antrun-plugin:1.3: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.3
or
one of its dependencies could not be resolved: Could not transfer artifact
org.a
pache.maven.plugins:maven-antrun-plugin:jar:1.3 from central
(http://repo1.maven
.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assemb
ly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-assembly-plugin:2.2-beta-5: Plugin
org.apache.maven.plugins:maven-assembly-plu
gin:2.2-beta-5 or one of its dependencies could not be resolved: Could not
trans
fer artifact org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-beta-5
from
central (http://repo1.maven.org/maven2): Error transferring file: Network is
unr
eachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
ency-plugin/2.1/maven-dependency-plugin-2.1.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-dependency-plugin:2.1: Plugin
org.apache.maven.plugins:maven-dependency-plugin
:2.1 or one of its dependencies could not be resolved: Could not transfer
artifa
ct org.apache.maven.plugins:maven-dependency-plugin:jar:2.1 from central
(http:/
/repo1.maven.org/maven2): Error transferring file: Network is unreachable:
conne
ct
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0/maven-release-plugin-2.0.jar
[WARNING] Failed to retrieve plugin descriptor for
org.apache.maven.plugins:mave
n-release-plugin:2.0: Plugin
org.apache.maven.plugins:maven-release-plugin:2.0 o
r one of its dependencies could not be resolved: Could not transfer artifact
org
.apache.maven.plugins:maven-release-plugin:jar:2.0 from central
(http://repo1.ma
ven.org/maven2): Error transferring file: Network is unreachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metada
ta.xml
Downloading:
http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata
org.apache.maven.plugins/maven-metadata.xm
l from central (http://repo1.maven.org/maven2): Error transferring file:
Network
  is unreachable: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml
from
central (http://repo1.maven.org/maven2): Error transferring file: Network is
unr
eachable: connect
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metada
ta.xml
Downloading:
http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata
org.apache.maven.plugins/maven-metadata.xm
l from central (http://repo1.maven.org/maven2): Error transferring file:
Network
  is unreachable: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml
from
central (http://repo1.maven.org/maven2): Error transferring file: Network is
unr
eachable: connect
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10.625s
[INFO] Finished at: Fri Oct 22 11:31:55 UZT 2010
[INFO] Final Memory: 1M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in
the
  plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from
the
repositories [local (C:\Documents and Settings\khansa\.m2\repository),
central (
http://repo1.maven.org/maven2)] ->  [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/NoPluginFoundF
orPrefixException


-----


Waseem Bokhari
CM Analyst
[email protected]
00923214294926


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to