Eugene Kuleshov <[EMAIL PROTECTED]> wrote on 16/06/2008 12:18:22: > [EMAIL PROTECTED] wrote: > > > mvn archetype:generate -Darchetype.interactive=false > > -DarchetypeCatalog=local > > do you know that "local" mean that catalog is located in > ~/.m2/archetype-catalog.xml ? > > > -DarchetypeGroupId=au.com.aami.archetypes > > -DarchetypeArtifactId=basic-jar -DarchetypeVersion=1.0 > > -DgroupId=au.com.aami.test -DartifactId=Test2 -Dversion=1.0-SNAPSHOT > > > > Works. > > nice. so we have an issue in m2eclipse... > > > 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. > > Sorry, I don't understand what you mean here.
I had previously deleted the local M:\... reference, and left it only at the "Default Local" one, ie the one in ~/.m2/ (which was not previously there as I had defined it elsewhere - I wanted to make sure that it all worked when everything was where it is meant to be). > > 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: > [skip] > > 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) > > By the way, do you have stacktrace for that in the Eclipse log at > <workspace>/.metadata/.log or in the "Error Log" view? Though your stack Yes (and I found a good one for the hyperlink issue that I reported the other day). !ENTRY org.maven.ide.eclipse 4 -1 2008-06-15 21:04:11.812 !MESSAGE Unable to create project from archetype [au.com.aami.archetypes:basic-jar:1.0 -> ] !STACK 0 org.apache.maven.archetype.exception.UnknownArchetype: The desired archetype does not exist (au.com.aami.archetypes:basic-jar:1.0) at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(Unknown Source) at org.apache.maven.archetype.generator.DefaultArchetypeGenerator.generateArchetype(Unknown Source) at org.apache.maven.archetype.DefaultArchetype.generateProjectFromArchetype(Unknown Source) at org.maven.ide.eclipse.internal.project.ProjectConfigurationManager.createArchetypeProject(Unknown Source) at org.maven.ide.eclipse.wizards.MavenProjectWizard$4.runInWorkspace(Unknown Source) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source) at org.eclipse.core.internal.jobs.Worker.run(Unknown Source) > traces without the line numbers aren't very helpful, so you may want to > enable debug info in your RSA's Java configuration. Er, doesn't your code need to be compiled in debug mode for that to work? -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>>