ccadete wrote:
> 
> 
> 
> When I create an archetype I put in the directory pre-determined java
> classes, like App.java generated by simple maven archetype.
> 
> But, if I want that App.java will be named MyArtifact.java, the name of
> the java source generated will depend on the artifact name.
> 
> How can customize archetype to create a java source with the same name of
> the artifact ?
> 
> ccadete
> 
> 

Good day to you, ccadete,

If i am not mistaken, that cannot be done with maven-archetype-plugin.
AFAIK, resource filtering can only be done for the content of the files and
not for the file names themselves. Thus, naming your java file
"${artifactId}.java" does not work.

Cheers,
Franz
-- 
View this message in context: 
http://www.nabble.com/-M2--Archetype-File-Name-Genration-tf2207247.html#a6114884
Sent from the Maven - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to