Failed to generate project from the old archetype

View: New views
3 Messages — Rating Filter:   Alert me  

Failed to generate project from the old archetype

by Timothy Reilly-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 
I am getting this error when trying to create projects from our
corporate archetype:

!ENTRY org.maven.ide.eclipse 4 -1 2008-06-25 15:31:31.496 !MESSAGE
Unable to create project from archetype
[com.acme.infrastructure.build.archetypes:acme-jar-archetype:1.1-SNAPSHO
T -> http://mvnrepository.private.acme.com:18080/acme/unittest/snapshot]
!STACK 0
org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Failed
to generate project from the old archetype  at
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOl
dArchetype(DefaultArchetypeGenerator.java:272)
 at
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateA
rchetype(DefaultArchetypeGenerator.java:145)
 at
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateA
rchetype(DefaultArchetypeGenerator.java:290)
 at
org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype
(DefaultArchetype.java:75)
 at
org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.creat
eArchetypeProject(ProjectConfigurationManager.java:365)
 at
org.maven.ide.eclipse.wizards.MavenProjectWizard$4.runInWorkspace(MavenP
rojectWizard.java:227)
 at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWor
kspaceJob.java:38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by:
org.apache.maven.archetype.old.ArchetypeTemplateProcessingException:
Unable to add module to the current project as it is not of packaging
type 'pom'
 at
org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(Defau
ltOldArchetype.java:314)
 at
org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOl
dArchetype(DefaultArchetypeGenerator.java:255)
 ... 7 more  

 Chris G and Igor had a similar thread regarding this error  (or very
very similar)
http://www.nabble.com/Controlling-Stack-Depth-of-traces-to17888815.html

Was there any solution or known issue from this? I can try to trace this
(always time consuming though) so if anyone has suggestions as to
possible cause - thank you.

Best regards,
-Tim
 

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Failed to generate project from the old archetype

by Eugene Kuleshov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tim,

  Does your archetype using some default values for optional parameters?
If so, that won't work in m2eclipse 0.9.4. We need to pickup new
archtype component, which we haven't done yet (maybe next week).

  regards,
  Eugene


Timothy Reilly wrote:

>  
> I am getting this error when trying to create projects from our
> corporate archetype:
>
> !ENTRY org.maven.ide.eclipse 4 -1 2008-06-25 15:31:31.496 !MESSAGE
> Unable to create project from archetype
> [com.acme.infrastructure.build.archetypes:acme-jar-archetype:1.1-SNAPSHO
> T -> http://mvnrepository.private.acme.com:18080/acme/unittest/snapshot]
> !STACK 0
> org.apache.maven.archetype.exception.ArchetypeGenerationFailure: Failed
> to generate project from the old archetype  at
> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOl
> dArchetype(DefaultArchetypeGenerator.java:272)
>  at
> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateA
> rchetype(DefaultArchetypeGenerator.java:145)
>  at
> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateA
> rchetype(DefaultArchetypeGenerator.java:290)
>  at
> org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype
> (DefaultArchetype.java:75)
>  at
> org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.creat
> eArchetypeProject(ProjectConfigurationManager.java:365)
>  at
> org.maven.ide.eclipse.wizards.MavenProjectWizard$4.runInWorkspace(MavenP
> rojectWizard.java:227)
>  at
> org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWor
> kspaceJob.java:38)
>  at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> Caused by:
> org.apache.maven.archetype.old.ArchetypeTemplateProcessingException:
> Unable to add module to the current project as it is not of packaging
> type 'pom'
>  at
> org.apache.maven.archetype.old.DefaultOldArchetype.createArchetype(Defau
> ltOldArchetype.java:314)
>  at
> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.processOl
> dArchetype(DefaultArchetypeGenerator.java:255)
>  ... 7 more  
>
>  Chris G and Igor had a similar thread regarding this error  (or very
> very similar)
> http://www.nabble.com/Controlling-Stack-Depth-of-traces-to17888815.html
>
> Was there any solution or known issue from this? I can try to trace this
> (always time consuming though) so if anyone has suggestions as to
> possible cause - thank you.
>
> Best regards,
> -Tim
>  


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: Failed to generate project from the old archetype

by Timothy Reilly-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> Eugene Kuleshov  wrote:
> Tim,
>
>   Does your archetype using some default values for optional
> parameters?
> If so, that won't work in m2eclipse 0.9.4. We need to pickup
> new archtype component, which we haven't done yet (maybe next week).
...

>
> Timothy Reilly wrote:
> >  
> > I am getting this error when trying to create projects from our
> > corporate archetype:
> >
> > !ENTRY org.maven.ide.eclipse 4 -1 2008-06-25 15:31:31.496 !MESSAGE
> > Unable to create project from archetype
> >
> [com.acme.infrastructure.build.archetypes:acme-jar-archetype:1.1-SNAPS
> > HO T ->
> > http://mvnrepository.private.acme.com:18080/acme/unittest/snapshot]
> > !STACK 0
> > org.apache.maven.archetype.exception.ArchetypeGenerationFailure:
> > Failed to generate project from the old archetype  at
> >
> org.apache.maven.archetype.generator.DefaultArchetypeGenerator.process
> > Ol
> > dArchetype(DefaultArchetypeGenerator.java:272)
> >  at
....

Hi Eugene,

I think it is that fact that I selected a location which is not the
workspace default. I just changed my attempt to use the default
workspace location and everything went fine.

(But then I tried to create a submodule and I got some error dialogs. I
think the submodule is okay. I'll open a jira with a sample project if I
get a minute here.)


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


LightInTheBox - Buy quality products at wholesale price!