hi, I just want to get help about maven archetype,please help me

2014-08-12 Thread TOM
I use mvn archetype:create-from-project to generate a archetype project. and use it to generate a project the content of archetype file UserDTO(generaged by archetype:create-from-project) package ${package}.${artifactId}.dto; then i mvn archetype:generate -DarchetypeArtifactId=myapp -DgroupId=tes

Re: hi, I just want to get help about maven archetype,please help me

2014-08-17 Thread Hervé BOUTEMY
use packaged="true" [1] Regards, Hervé [1] http://maven.apache.org/archetype/archetype-models/archetype-descriptor/archetype-descriptor.html Le mardi 12 août 2014 16:58:53 TOM a écrit : > I use mvn archetype:create-from-project to generate a archetype project. > and use it to generate a projec

Re: hi, I just want to get help about maven archetype,please help me

2014-08-17 Thread TOM
thank you ,but my descriptor already is packaged= true src/main/java **/*.java 在 2014-08-18 0:10, Hervé BOUTEMY 写道: use packaged="true" [1] Regards, Hervé [1] http://maven.apache.org/archetype/archetype-models/archetype-descriptor/archetype-descriptor.html

Re: hi, I just want to get help about maven archetype,please help me

2014-08-18 Thread Hervé BOUTEMY
ok, need to investigate can you create a Jira issue and attach an example project? Regards, Hervé Le lundi 18 août 2014 10:01:16 TOM a écrit : > thank you ,but my descriptor already is packaged= true > >src/main/java > > **/*.java > > > > 在 2014-08-18 0:1

Re: hi, I just want to get help about maven archetype,please help me

2014-08-18 Thread TOM
i think i got it,i debuged archetype:generate and found code like this DefaultFilesetArchetypeGenerator.java private File getOutputFile( String template, String directory, File outputDirectoryFile, boolean packaged, String packageName, String moduleOffset, Contex

Re: hi, I just want to get help about maven archetype,please help me

2014-08-18 Thread Hervé BOUTEMY
ah ok so you don't need a custom plugin to add artifactId: just put content in a directory named __artifactId__ see http://stackoverflow.com/questions/6378589/how-to-rename-a-directory-with-the-artifactid-when-using-a-maven-archetype Regards, Hervé Le lundi 18 août 2014 17:00:36 TOM a écrit :

Re: hi, I just want to get help about maven archetype,please help me

2014-08-19 Thread TOM
yeah, it works! __artifactId__ and __rootArtifactId__ all works well but this way bring a new little problem: my archetype is come from a demo project using archetype:create-from-project,now i get a archetype and change some directory's name to __artifactId__,later i want to make some tuning on

RE: hi, I just want to get help about maven archetype,please help me

2014-08-20 Thread Martin Gainty
> Date: Wed, 20 Aug 2014 10:57:48 +0800 > From: tom.w...@embracesource.com > To: users@maven.apache.org > Subject: Re: hi, I just want to get help about maven archetype,please help me > > yeah, it works! __artifactId__ and __rootArtifactId__ all works well > but this w

Re: hi, I just want to get help about maven archetype,please help me

2014-08-20 Thread Hervé BOUTEMY
Le mercredi 20 août 2014 10:57:48 TOM a écrit : > yeah, it works! __artifactId__ and __rootArtifactId__ all works well > but this way bring a new little problem: my archetype is come from a > demo project using archetype:create-from-project,now i get a archetype > and change some directory's name t

Re: hi, I just want to get help about maven archetype,please help me

2014-08-28 Thread TOM
yes,i think it's better to maintain the archetype project after i tried it . And it's convenient too. i think this is enough. thanks again for your help 在 2014-08-21 6:16, Hervé BOUTEMY 写道: Le mercredi 20 août 2014 10:57:48 TOM a écrit : yeah, it works! __artifactId__ and __rootArtifactId__ al

Re: hi, I just want to get help about maven archetype,please help me

2014-08-28 Thread TOM
i can't, i think this parameter is used for generated whole archetype project but this is not i need. 在 2014-08-21 1:51, Martin Gainty 写道: Date: Wed, 20 Aug 2014 10:57:48 +0800 From: tom.w...@embracesource.com To: users@maven.apache.org Subject: Re: hi, I just want to get help about

RE: hi, I just want to get help about maven archetype,please help me

2014-08-29 Thread Martin Gainty
> Date: Fri, 29 Aug 2014 10:37:49 +0800 > From: tom.w...@embracesource.com > To: users@maven.apache.org > Subject: Re: hi, I just want to get help about maven archetype,please help me > > i can't, i think this parameter is used for generated whole archetype > project