facebook

Error while creating new Java Maven Project

  1. MyEclipse IDE
  2.  > 
  3. Maven for MyEclipse (Maven4MyEclipse)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #324364 Reply

    anilvjava
    Member

    Hi,

    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 archetype

    Here 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 information

    Attachments:
    You must be logged in to view attached files.
    #324380 Reply

    support-swapna
    Moderator

    anilvjava ,

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Error while creating new Java Maven Project

You must be logged in to post in the forum log in