Eugene Kuleshov <[EMAIL PROTECTED]> wrote on 16/06/2008 10:40:28:

> [EMAIL PROTECTED] wrote:
> > Deprecated yes, but still totally useable.
> >
> > Don't be in too much of a hurry to abandon the older commands.
> > 
>   Unfortunately backend used by the old archetype goal is not embeddable 

> and can't be used in m2eclipse.
> 
>   So, if new goal doesn't work from the command line it won't be working 

> in m2eclipse either and in that case you would need to report that issue 

> to the archetype plugin. But if it does work from command line, then 
> there is something in how m2eclipse is using archetype backend.

mvn archetype:generate
    -Darchetype.interactive=false
    -DarchetypeCatalog=local
    -DarchetypeGroupId=au.com.aami.archetypes
    -DarchetypeArtifactId=basic-jar
    -DarchetypeVersion=1.0
    -DgroupId=au.com.aami.test
    -DartifactId=Test2
    -Dversion=1.0-SNAPSHOT

Works.

I had added a local entry in the list of archetype catalogs, pointing 
directly to it's source workspace directory (not ~/.m2/...). But I've 
removed all of them.

I've copied the archetype-catalog.xml to ~/.m2/archetype-catalog.xml.

I still get the error below, when I attempt to create a project using:

Right Click New>Project...

Select Maven Project from the Maven sub folder.

Next>

Next>

Select Catalog: Default Local (shows correct entries)

Select Basic Jar

Next>

Enter group id, & artifact id, then finish.



This is in the console log:
15/06/08 08:59:05 PM: [ERROR] The desired archetype does not exist 
(au.com.aami.archetypes:basic-jar:1.0) The desired archetype does not 
exist (au.com.aami.archetypes:basic-jar:1.0)

The "Failed to create project "test"" is actually placed behind the 
"Creating basic-jar" window.

-Chris


**********************************************************************
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information. 

If you are not the intended recipient of this message you must: 
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**********************************************************************

<<image/gif>>

Reply via email to