You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mirekSz <m....@gmail.com> on 2010/01/09 14:23:08 UTC
Re: passing parameters to plugin Archetype
Hi,
I hava the same problems. Could you explain how to resolve it
Best regards
--
View this message in context: http://old.nabble.com/passing-parameters-to-plugin-Archetype-tp16807963p27088665.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: passing parameters to plugin Archetype
Posted by mirekSz <m....@gmail.com>.
Olivier Dehon-2 wrote:
>
>
> For files and directory names, you can use the syntax in your archetype
> file structure:
> __rootArtifactId__-mytest.txt
>
> The archetype:generate will replace the double-underscore with the
> actual value of rootArtifactId.
>
> NB: I have had problems recently with that structure when there are
> multiple instances of that syntax in one given path:
>
> proj/__rootArtifactId__Module1/src/main/resources/__rootArtifactId__Module1.properties
>
> the folder name at the top of the hierarchy gets interpolated correctly,
> but not the properties file below in the structure.
>
> I have seen a few JIRAs that seem related to that but not exactly that
> particular issue ( http://jira.codehaus.org/browse/ARCHETYPE-191 )
> I can forge a use/test case illustrating the issue and create a new JIRA
> if other users have been facing the same issue.
>
> -Olivier
>
> On Sat, 2010-01-09 at 05:23 -0800, mirekSz wrote:
>
>> I hava the same problems. Could you explain how to resolve it
>>
>> Best regards
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
Thanks for replay
How passing parameters to plugin Archetype -Dname=project name dosen't work
--
View this message in context: http://old.nabble.com/passing-parameters-to-plugin-Archetype-tp16807963p27091119.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: passing parameters to plugin Archetype
Posted by Olivier Dehon <od...@gmail.com>.
For files and directory names, you can use the syntax in your archetype
file structure:
__rootArtifactId__-mytest.txt
The archetype:generate will replace the double-underscore with the
actual value of rootArtifactId.
NB: I have had problems recently with that structure when there are
multiple instances of that syntax in one given path:
proj/__rootArtifactId__Module1/src/main/resources/__rootArtifactId__Module1.properties
the folder name at the top of the hierarchy gets interpolated correctly,
but not the properties file below in the structure.
I have seen a few JIRAs that seem related to that but not exactly that
particular issue ( http://jira.codehaus.org/browse/ARCHETYPE-191 )
I can forge a use/test case illustrating the issue and create a new JIRA
if other users have been facing the same issue.
-Olivier
On Sat, 2010-01-09 at 05:23 -0800, mirekSz wrote:
> I hava the same problems. Could you explain how to resolve it
>
> Best regards
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org