facebook

Error creating new Java Maven Project

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

    David Stacey
    Member

    When creating a new Java Maven Project, I get the following error:

    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

    Maven console output:
    [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from maven-archetype-quickstart-repo
    [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from maven-archetype-quickstart-repo
    [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from maven-archetype-quickstart-repo
    [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from maven-archetype-quickstart-repo
    [INFO] artifact org.apache.maven.archetypes:maven-archetype-quickstart: checking for updates from maven-archetype-quickstart-repo
    [INFO] —————————————————————————-
    [INFO] Using following parameters for creating OldArchetype: maven-archetype-quickstart:RELEASE
    [INFO] —————————————————————————-
    [INFO] Parameter: groupId, Value: com.xyz
    [INFO] Parameter: packageName, Value: com.xyz.test
    [INFO] Parameter: basedir, Value: C:/Projects/eclipse
    [INFO] Parameter: package, Value: com.xyz.test
    [INFO] Parameter: version, Value: 0.0.1-SNAPSHOT
    [INFO] Parameter: artifactId, Value: test
    [ERROR] Failed to generate project from the old archetype Failed to generate project from the old archetype

    Thanks,
    David

    #286513 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    Seems like and installation related issue.

    #286528 Reply

    David Stacey
    Member

    The information you requested.

    *** Date:
    Monday, June 30, 2008 3:32:20 PM CDT

    ** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_15

    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    Version: 6.5.0 GA
    Build id: 6.5.0-GA-20080609

    *** Eclipse details:
    MyEclipse Enterprise Workbench

    Version: 6.5.0 GA
    Build id: 6.5.0-GA-20080609

    Eclipse Project SDK

    Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
    Build id: M20080221-1800

    Eclipse Platform

    Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
    Build id: M20080221-1800

    Eclipse Java Development Tools

    Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
    Build id: M20080221-1800

    Eclipse Graphical Editing Framework

    Version: 3.3.2.v20080129
    Build id: 20080221-1602

    Eclipse RCP

    Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
    Build id: M20080221-1800

    Eclipse Plug-in Development Environment

    Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
    Build id: M20080221-1800

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -showsplash
    -launcher
    C:\Program Files\MyEclipse 6.5\eclipse.exe
    -name
    Eclipse
    –launcher.library
    C:\Program Files\MyEclipse 6.5\../Pulse\Common\plugins\org.eclipse.equinox.launcher.win32.win32.x86_1.0.3.R33x_v20080118\eclipse_1023.dll
    -startup
    C:\Program Files\MyEclipse 6.5\../Pulse\Common\plugins\org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar
    -exitdata
    858_7c
    -clean
    -configuration
    C:\Program Files\MyEclipse 6.5\configuration
    -vm
    C:\Program Files\Pulse\Common\binary\com.sun.java.jre.win32.x86_1.5.0.015\bin\javaw.exe

    Thanks,
    David

    #286580 Reply

    Loyal Water
    Member

    David,
    Can you switch to a new workspace and try creating a new Java Maven Project. Do you still get the same error?

    #286583 Reply

    David Stacey
    Member

    Creating a new workspace works. Any idea what was causing the problem using my existing workspace? Before I installed 6.5, I removed the .metadata directory from my workspace. Afterward, I imported my existing projects.

    Thanks,
    David

    #286648 Reply

    Loyal Water
    Member

    David,
    You dont have to delete the .metadata directory. That caused the issue I guess. Anyway, Im glad its working now.

    #293762 Reply

    I ran into the same error message with MyEclipse 7.0 however when I looked into the Eclipse log I found that the error that eclipse gave me was somewhat misleading:

    !MESSAGE Unable to create project from archetype [org.apache.maven.archetypes:maven-archetype-quickstart:1.0-alpha-4 -> http://repo1.maven.org/maven2/%5D
    !STACK 0
    org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Failed to generate project from the old archetype

    Caused by: org.apache.maven.archetype.old.ArchetypeTemplateProcessingException: <artifact ID> already exists – please run from a clean directory

    What I found was that the value I chose for my Artifact ID was the name of an existing project (I was converting an existing project into Maven’s format). I assume this occurred because Maven2Eclipse tries to link the project so it can use it for dependencies.

    Hope this helps anyone else who has the same issue.

    #293787 Reply

    Loyal Water
    Member

    Thank you for posting this information.

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

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