- This topic has 7 replies, 3 voices, and was last updated 15 years, 11 months ago by Loyal Water.
-
AuthorPosts
-
David StaceyMemberWhen 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 archetypeMaven 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 archetypeThanks,
David
Loyal WaterMemberCan you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.
Seems like and installation related issue.
David StaceyMemberThe 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 WorkbenchVersion: 6.5.0 GA
Build id: 6.5.0-GA-20080609Eclipse Project SDK
Version: 3.3.3.r33x_r20080129-7M7J7LB-u3aphGW6o3_VmiVfGXWO
Build id: M20080221-1800Eclipse Platform
Version: 3.3.3.r33x_r20080129-_19UEl7Ezk_gXF1kouft
Build id: M20080221-1800Eclipse Java Development Tools
Version: 3.3.2.r33x_r20080129-7o7jE7_EDhYDiyVEnjb1pFd7ZGD7
Build id: M20080221-1800Eclipse Graphical Editing Framework
Version: 3.3.2.v20080129
Build id: 20080221-1602Eclipse RCP
Version: 3.3.3.r33x_r20080129-8y8eE9UEUWI6qujeED0xT7bc
Build id: M20080221-1800Eclipse Plug-in Development Environment
Version: 3.3.3.r33x_r20080129-7N7M5DQVIA_6oJsEFkEL
Build id: M20080221-1800Eclipse 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.exeThanks,
David
Loyal WaterMemberDavid,
Can you switch to a new workspace and try creating a new Java Maven Project. Do you still get the same error?
David StaceyMemberCreating 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
Loyal WaterMemberDavid,
You dont have to delete the .metadata directory. That caused the issue I guess. Anyway, Im glad its working now.
Jonathan FullamMemberI 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 directoryWhat 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.
Loyal WaterMemberThank you for posting this information.
-
AuthorPosts