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
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
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
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
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
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 :
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
> 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
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
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
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
> 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
12 matches
Mail list logo