JSLEE Discussions
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
maven setup problem
Forum Index » JAIN SLEE Discussions
Author Message
terryleung


Joined: 04/08/2011 16:16:29
Messages: 2
Offline

Hi all,

I have downloaded maven version 3.0.3 and use it to create a template
I have followed the guide and download and place settings.xml in /$USER_HOME/.m2
My platform is Windows 7 32bit

There is warning like
[WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net use
s the unsupported value 'legacy', artifact resolution might fail.

The full screen capture is place below, anyone can help?

C:\Users\Terry\Documents\test2>mvn archetype:generate -DarchetypeCatalog=http://
developer.opencloud.com/maven2/public
[WARNING]
[WARNING] Some problems were encountered while building the effective settings
[WARNING] 'repositories.repository.layout' for maven-repository.dev.java.net use
s the unsupported value 'legacy', artifact resolution might fail. @ C:\Users\Ter
ry\.m2\settings.xml
[WARNING]
[INFO] Scanning for projects...
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-clean-plugin/2.4.1/maven-clean-plugin-2.4.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-
plugin/2.4.1/maven-clean-plugin-2.4.1.pom
[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: Failed to read artifact descrip
tor for org.apache.maven.plugins:maven-clean-plugin:jar:2.4.1
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-install-plugin/2.3.1/maven-install-plugin-2.3.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.3.1/maven-install-plugin-2.3.1.pom
[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: Failed to read artifact des
criptor for org.apache.maven.plugins:maven-install-plugin:jar:2.3.1
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-deploy-plugin/2.5/maven-deploy-plugin-2.5.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.5/maven-deploy-plugin-2.5.pom
[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: Failed to read artifact descripto
r for org.apache.maven.plugins:maven-deploy-plugin:jar:2.5
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-site-plugin/2.0.1/maven-site-plugin-2.0.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-site-p
lugin/2.0.1/maven-site-plugin-2.0.1.pom
[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: Failed to read artifact descripto
r for org.apache.maven.plugins:maven-site-plugin:jar:2.0.1
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun
-plugin/1.3/maven-antrun-plugin-1.3.pom
[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: Failed to read artifact descripto
r for org.apache.maven.plugins:maven-antrun-plugin:jar:1.3
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-assembly-plugin/2.2-beta-5/maven-assembly-plugin-2.2-beta-5.pom
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.pom
[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: Failed to read
artifact descriptor for org.apache.maven.plugins:maven-assembly-plugin:jar:2.2-b
eta-5
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-dependency-plugin/2.1/maven-dependency-plugin-2.1.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
ency-plugin/2.1/maven-dependency-plugin-2.1.pom
[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: Failed to read artifact d
escriptor for org.apache.maven.plugins:maven-dependency-plugin:jar:2.1
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-release-plugin/2.0/maven-release-plugin-2.0.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0/maven-release-plugin-2.0.pom
[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: Failed to read artifact descrip
tor for org.apache.maven.plugins:maven-release-plugin:jar:2.0
Downloading: http://repo1.maven.org/maven2/com/opencloud/maven/plugins/maven-met
adata.xml
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-metadata.xml
Downloading: http://developer.opencloud.com/maven2/public/com/opencloud/maven/pl
ugins/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metada
ta.xml
Downloading: http://developer.opencloud.com/maven2/public/org/codehaus/mojo/mave
n-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
[WARNING] Could not transfer metadata com.opencloud.maven.plugins/maven-metadata
.xml from/to opencloud-public (http://developer.opencloud.com/maven2/public): Er
ror transferring file: Connection timed out: connect
[WARNING] Could not transfer metadata com.opencloud.maven.plugins/maven-metadata
.xml from/to central (http://repo1.maven.org/maven2): Error transferring file: C
onnection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to opencloud-public (http://developer.opencloud.com/maven2/public): Error
transferring file: Connection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to central (http://repo1.maven.org/maven2): Error transferring file: Conn
ection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to opencloud-public (http://developer.opencloud.com/maven2/public): Error transf
erring file: Connection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to central (http://repo1.maven.org/maven2): Error transferring file: Connection
timed out: connect
Downloading: http://developer.opencloud.com/maven2/public/org/apache/maven/plugi
ns/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/com/opencloud/maven/plugins/maven-met
adata.xml
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-metada
ta.xml
Downloading: http://developer.opencloud.com/maven2/public/com/opencloud/maven/pl
ugins/maven-metadata.xml
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: http://developer.opencloud.com/maven2/public/org/codehaus/mojo/mave
n-metadata.xml
[WARNING] Could not transfer metadata com.opencloud.maven.plugins/maven-metadata
.xml from/to opencloud-public (http://developer.opencloud.com/maven2/public): Er
ror transferring file: Connection timed out: connect
[WARNING] Could not transfer metadata com.opencloud.maven.plugins/maven-metadata
.xml from/to central (http://repo1.maven.org/maven2): Error transferring file: C
onnection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to opencloud-public (http://developer.opencloud.com/maven2/public): Error
transferring file: Connection timed out: connect
[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xm
l from/to central (http://repo1.maven.org/maven2): Error transferring file: Conn
ection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to opencloud-public (http://developer.opencloud.com/maven2/public): Error transf
erring file: Connection timed out: connect
[WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/
to central (http://repo1.maven.org/maven2): Error transferring file: Connection
timed out: connect
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7:01.732s
[INFO] Finished at: Thu Aug 11 15:24:48 CST 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'archetype' in the current project and in the
plugin groups [com.opencloud.maven.plugins, org.apache.maven.plugins, org.codeh
aus.mojo] available from the repositories [local (C:\Users\Terry\.m2\repository)
, opencloud-public (http://developer.opencloud.com/maven2/public), 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
hasanein


Joined: 28/09/2010 14:24:40
Messages: 41
Offline

Hello,

Maven 3 doesn't support the "legacy" layout as its deprecated, try using Maven 2 instead.

Cheers;

Hasanein A. K.
Opencloud
 
Forum Index » JAIN SLEE Discussions
Go to:   
Powered by JForum 2.1.8 © JForum Team