Thanks for the link. Unfortunately it didn't help with my understanding of how to create an archetype or the structure of one.
I'm using Maven 2.2.1. I set up a skeleton project (MyProject) that I want to use to create the archetype (minimal classes, mainly config files and the pom.xml set up with the dependencies). Everything in my project is contained in the MyProject/src directory except for its pom.xml which is under MyProject. I ran the archetype:create-from-project command for the project. I now have a new " target\generated-sources\archetype" directory in my project directory which has a pom.xml file in it. The pom.xml has an artifactId of "Project-archetype" and a a packaging of "maven-archetype". It also has two sub-directories: MyProject\target\generated-sources\archetype\src MyProject\target\generated-sources\archetype\target Both of these subdirectories contains a pom.xml and an archetype-metadata.xml which are identical. What exactly is the archetype? Everything under the MyProject\target directory or one of these directories: MyProject\target\generated-sources\archetype\ MyProject\target\generated-sources\archetype\src MyProject\target\generated-sources\archetype\target Do I need to update any files before installing the archetype? If so which ones? Thanks in advance for all help. Shelli -----Original Message----- From: Hervé BOUTEMY [mailto:[email protected]] Sent: Thursday, May 06, 2010 1:54 PM To: Maven Users List Subject: Re: Missing archetype.xml in new archetype created from project perhaps http://maven.apache.org/guides/mini/guide-creating-archetypes.html will help you It has been written for 1.x (old) archetype, but principles are the same Regards, Hervé Le mercredi 05 mai 2010, Shelli Orton a écrit : > Thank you. > > Is there any documentation (online or paper) that is better than what's in > the Maven documentation > (http://maven.apache.org/archetype/maven-archetype-plugin/create-from-proj > ect-mojo.html and > http://maven.apache.org/archetype/maven-archetype-plugin/advanced-usage.ht > ml)? Something that includes some explanation as to what is being > done/created and why? For someone new to Maven, most of the documentation > is very cryptic. > > Thanks again! > > -----Original Message----- > From: Hervé BOUTEMY [mailto:[email protected]] > Sent: Wednesday, May 05, 2010 3:37 PM > To: Maven Users List > Subject: Re: Missing archetype.xml in new archetype created from project > > see http://jira.codehaus.org/browse/ARCHETYPE-292 > > archetype.xml is "old" archetype descriptor > > Regards, > > Hervé > > Le mercredi 05 mai 2010, Shelli Orton a écrit : > > Hi, > > > > I am using Maven 2.2.1. and am new to Maven. I am trying to create an > > archetype based on an existing project. I have been using this blog post > > as a guide: http://blog.inflinx.com/category/m2eclipse/ > > > > Step 7 says "The next step is to verify that the generated archetype.xml > > (located under srcmainresourcesMETA-INFmaven (sic)) has all the files > > listed and they are located in the right directories." > > > > My generated archetype does not have an archetype.xml. It does have an > > archetype-metadata.xml file though. There aren't any errors in the > > output from calling archetype:create-from-project, just a couple of > > warnings about using platform encoding (Cp1252). > > > > Any thoughts on why this file wasn't generated? > > > > Thanks in advance! > > > > Shelli > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
