- This topic has 1 reply, 2 voices, and was last updated 12 years, 8 months ago by support-swapna.
-
AuthorPosts
-
anilvjavaMemberHi,
I have the issue while creating a Maven project through MyEclipse.
Prompted Error is :
Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:RELEASE -> http://repo1.maven.org/maven2%5D
Failed to generate project from old archetypeHere is the log:
3/18/12 2:12:36 PM GST: Unable to update index for central|http://repo1.maven.org/maven2
3/18/12 2:12:34 PM GST: Updating index central|http://repo1.maven.org/maven2
3/18/12 2:12:36 PM GST: Unable to download Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties: java.net.ConnectException: Connection refused: no further informationAttachments:
You must be logged in to view attached files.
support-swapnaModeratoranilvjava ,
Sorry that you are seeing this issue.
Can you please give us some more details ?
1) Can you please share the installation details from MyEclipse > Installation Summary > Installation Details ? Paste them here for us.
2) Are you behind a firewall/proxy ? Did you setup proxy host/port in the MyEclipse network connections Window>properties>General>Network Connections?
3) Do you have an open internet connection ?
4) There are additional proxy settings for maven.
Go to MyEclipse->Preferences->Maven4Myeclipse->User Settings. There you will see the file used for user settings (named, settings.xml). That file (which may not yet exist, in which case, create it) should look something like this, when configuring the proxy:
Code:
<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.somewhere.com</host>
<port>8080</port>
<username>proxyuser</username>
<password>somepassword</password>
<nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts>
</proxy>
</proxies>
</settings>Of course, you need to set the elements for your particular situation; the above is just an example.
5) If you are still seeing the issue, then clear the contents of the .log file which is located at <workspace dir>/.metadata/.log. Now try to create a new Maven project, replicate the issue and attach the .log file for us to investigate further.
-
AuthorPosts