RE: Create non conventional archetype
By creating this structure you are making it unfamiliar to other maven developers. But if you need to do it: ... build sourceDirectorysrc/sourceDirectory testSourceDirectorytest/testSourceDirectory ... In the pom.xml file will do it. Cheers, Rich -Original Message- From: Ilya Ermolov [mailto:[EMAIL PROTECTED] Sent: 22 May 2008 12:11 To: users@maven.apache.org Subject: Create non conventional archetype Hi! Please, help me. I need to create directory structure shown below: project +-src | +-org | +-mycompany |+-app.java +-test | +-org | +-mycompany |+-apptest.java pom.xml How can i create new archetype having this directory structure and redefine source directory from src/main/java/org/mycompany to src/org/mycompany? -- View this message in context: http://www.nabble.com/Create-non-conventional-archetype-tp17402009p17402 009.html Sent from the Maven - Users mailing list archive at Nabble.com. - 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]
Re: Create non conventional archetype
Hi Ilya, Create the structure you'd like to have (don't forget the pom.xml file) go in the directory containing the pom file. call mvn archetype:create-from-project. You will have an archetype created in target/generated-sources/archetype. Hope this helps. Raphaël 2008/5/22 Ilya Ermolov [EMAIL PROTECTED]: Hi! Please, help me. I need to create directory structure shown below: project +-src | +-org | +-mycompany |+-app.java +-test | +-org | +-mycompany |+-apptest.java pom.xml How can i create new archetype having this directory structure and redefine source directory from src/main/java/org/mycompany to src/org/mycompany? -- View this message in context: http://www.nabble.com/Create-non-conventional-archetype-tp17402009p17402009.html Sent from the Maven - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create non-conventional archetype
Hi Eric, Yes, you can do that. Take a look at: http://maven.apache.org/guides/mini/guide-creating-archetypes.html But you really can't use the standard directory layout of Maven? Standard over configuration is one of the best values of Maven. Take a look at: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Cheers, Henrique eric.frigot wrote: Hi All, I would like to create an archetype for my own project structure. I made a framework with a lot of config files and when i create a new project base on this framework, i must copy all the files and directories structures. Is-it possible to create such archetype ? Here is a typical directory structure : project | +- JavaSource | | | + com.myentreprise.myproject | | | | | + /* sources files go here */ | | | + config /* files and sub-directories */ | | | + /* others config files */ | + TestSource | + WebContent | + /* directories and files, WEB-INF, META-INF, ... */ Can an archetype create such structure ? I am using Eclipse, is-it possible to extend its archetype and this way create the dependancies ? Thanks a lot for any information. Accédez au courrier électronique de La Poste sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn) 1 Giga de stockage gratuit – Antispam et antivirus intégrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Create non-conventional archetype
Hi all, well, I think Eric is facing to an issue occured by using RAD6 and M2... Indeed this ide does not allow to change the path of the directory WebContent. Anyway, I will be happy to test your archetype. Personally, we set the path of some directories in the pom. regards Andre -Original Message- From: Henrique Prange [mailto:[EMAIL PROTECTED] Sent: donderdag 5 oktober 2006 16:03 To: Maven Users List Subject: Re: Create non-conventional archetype Hi Eric, Yes, you can do that. Take a look at: http://maven.apache.org/guides/mini/guide-creating-archetypes.html But you really can't use the standard directory layout of Maven? Standard over configuration is one of the best values of Maven. Take a look at: http://maven.apache.org/guides/introduction/introduction-to-th e-standard-directory-layout.html Cheers, Henrique eric.frigot wrote: Hi All, I would like to create an archetype for my own project structure. I made a framework with a lot of config files and when i create a new project base on this framework, i must copy all the files and directories structures. Is-it possible to create such archetype ? Here is a typical directory structure : project | +- JavaSource | | | + com.myentreprise.myproject | | | | | + /* sources files go here */ | | | + config /* files and sub-directories */ | | | + /* others config files */ | + TestSource | + WebContent | + /* directories and files, WEB-INF, META-INF, ... */ Can an archetype create such structure ? I am using Eclipse, is-it possible to extend its archetype and this way create the dependancies ? Thanks a lot for any information. Accédez au courrier électronique de La Poste sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn) 1 Giga de stockage gratuit – Antispam et antivirus intégrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Create non-conventional archetype
You said that archetype plugin can create custom directory structure. I trying to define my own source directories and test source directories in archetype.xml. My directories has different locations and names from standard. And I cann`t do this because Embedded error: Template 'src/App.java' not in directory 'src/main/java'. In Jira I found task for empty directory creation. So I cann`t create empty directories and variants of my own directory structures decrease. 2006/10/5, Henrique Prange [EMAIL PROTECTED]: Hi Eric, Yes, you can do that. Take a look at: http://maven.apache.org/guides/mini/guide-creating-archetypes.html But you really can't use the standard directory layout of Maven? Standard over configuration is one of the best values of Maven. Take a look at: http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html Cheers, Henrique eric.frigot wrote: Hi All, I would like to create an archetype for my own project structure. I made a framework with a lot of config files and when i create a new project base on this framework, i must copy all the files and directories structures. Is-it possible to create such archetype ? Here is a typical directory structure : project | +- JavaSource | | | + com.myentreprise.myproject | | | | | + /* sources files go here */ | | | + config /* files and sub-directories */ | | | + /* others config files */ | + TestSource | + WebContent | + /* directories and files, WEB-INF, META-INF, ... */ Can an archetype create such structure ? I am using Eclipse, is-it possible to extend its archetype and this way create the dependancies ? Thanks a lot for any information. Accédez au courrier électronique de La Poste sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn) 1 Giga de stockage gratuit – Antispam et antivirus intégrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- С уважением, Середенко Д.Н.
RE: Create non-conventional archetype
hey all, following my reply, here is the setting for a war using RAD6 and including the WebContent directory: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webResources resource directoryWebContent/directory excludes exclude**/*.jar/exclude exclude**/*.zip/exclude /excludes /resource /webResources /configuration /plugin it should help... :) regards, Andre -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: donderdag 5 oktober 2006 16:16 To: Maven Users List Subject: Re: Create non-conventional archetype You said that archetype plugin can create custom directory structure. I trying to define my own source directories and test source directories in archetype.xml. My directories has different locations and names from standard. And I cann`t do this because Embedded error: Template 'src/App.java' not in directory 'src/main/java'. In Jira I found task for empty directory creation. So I cann`t create empty directories and variants of my own directory structures decrease. -Original Message- From: Tran Andre NL Sent: donderdag 5 oktober 2006 16:24 To: users@maven.apache.org Subject: RE: Create non-conventional archetype Hi all, well, I think Eric is facing to an issue occured by using RAD6 and M2... Indeed this ide does not allow to change the path of the directory WebContent. Anyway, I will be happy to test your archetype. Personally, we set the path of some directories in the pom. regards Andre -Original Message- From: Henrique Prange [mailto:[EMAIL PROTECTED] Sent: donderdag 5 oktober 2006 16:03 To: Maven Users List Subject: Re: Create non-conventional archetype Hi Eric, Yes, you can do that. Take a look at: http://maven.apache.org/guides/mini/guide-creating-archetypes.html But you really can't use the standard directory layout of Maven? Standard over configuration is one of the best values of Maven. Take a look at: http://maven.apache.org/guides/introduction/introduction-to-th e-standard-directory-layout.html Cheers, Henrique eric.frigot wrote: Hi All, I would like to create an archetype for my own project structure. I made a framework with a lot of config files and when i create a new project base on this framework, i must copy all the files and directories structures. Is-it possible to create such archetype ? Here is a typical directory structure : project | +- JavaSource | | | + com.myentreprise.myproject | | | | | + /* sources files go here */ | | | + config /* files and sub-directories */ | | | + /* others config files */ | + TestSource | + WebContent | + /* directories and files, WEB-INF, META-INF, ... */ Can an archetype create such structure ? I am using Eclipse, is-it possible to extend its archetype and this way create the dependancies ? Thanks a lot for any information. Accédez au courrier électronique de La Poste sur www.laposte.net ou sur 3615 LAPOSTENET (0,34€ TTC /mn) 1 Giga de stockage gratuit – Antispam et antivirus intégrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- \o/ Henrique Prange, Moleque de Idéias Educação e Tecnologia Ltda | Phone: 55-21-2710-0178 E-mail: [EMAIL PROTECTED] / \ http://www.moleque.com.br - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -- This message is intended for the addressee or its representative only. Any form of unauthorized use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. If you are not the intended recipient of this e-mail message and its contents, please notify the sender immediately and delete this message and all its attachments subsequently. - 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]