You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Arun Gupta <ar...@gmail.com> on 2013/02/18 20:51:08 UTC

Changing generated file name using __artifactId__

I'm creating a new Maven archetype that generate Java source files using
__artifactId__. If the project is created with -DartifactId=sample-plugin
then the Java file/class name is sample-plugin.java.

How can I make sure its SamplePlugin.java instead ?

Any plugins that would let me do that ?

Also cross posted at:

http://stackoverflow.com/questions/14927944/manipulating-artifactid-during-file-generation-by-maven-archetype

Thanks
Arun

-- 
My First Java EE 6 Pocket Guide from OReilly
http://shop.oreilly.com/product/0636920026464.do

Re: Changing generated file name using __artifactId__

Posted by Olivier Lamy <ol...@apache.org>.
2013/2/18 Arun Gupta <ar...@gmail.com>:
> I'm creating a new Maven archetype that generate Java source files using
> __artifactId__. If the project is created with -DartifactId=sample-plugin
> then the Java file/class name is sample-plugin.java.
>
> How can I make sure its SamplePlugin.java instead ?
Currently there is no "validation" mechanism.
Maybe an enhancement to add by executing some components but that's
not currently possible.
>
> Any plugins that would let me do that ?
>
> Also cross posted at:
>
> http://stackoverflow.com/questions/14927944/manipulating-artifactid-during-file-generation-by-maven-archetype
>
> Thanks
> Arun
>
> --
> My First Java EE 6 Pocket Guide from OReilly
> http://shop.oreilly.com/product/0636920026464.do



-- 
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org