[
https://jira.codehaus.org/browse/ARCHETYPE-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=337200#comment-337200
]
prabal kumar commented on ARCHETYPE-453:
----------------------------------------
I further looked into this problem and came to know that template is created by
appending "escaping variables" at the top of the java file. For example,
${package} is being converted to ${symbol_dollar}{package}. Hence, it is not
being replaced at the time of end project creation. If I manually change
${symbol_dollar}{package} to ${package} in the target folder, the value is
being replaced successfully.
How to avoid this situation? How can I make sure that template is not appending
these extra lines at the top?
> problem with ${package} in java file
> ------------------------------------
>
> Key: ARCHETYPE-453
> URL: https://jira.codehaus.org/browse/ARCHETYPE-453
> Project: Maven Archetype
> Issue Type: Bug
> Reporter: prabal kumar
>
> I am using ${package} in my java file and it is not being replaced after
> using "mvn archetype:generate -DarchetypeCatalog=local" command and providing
> all the properties. However, __packageInPathInfo__ is creating correct
> desired directory structure.
> Am I missing something?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira