[
https://jira.codehaus.org/browse/ARCHETYPE-69?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Scholte updated ARCHETYPE-69:
------------------------------------
Component/s: Archetypes
Description:
Using
{code:xml}
<resources>
<resource filtered="false">Template.ftl</resource>
</resources>
{code}
fails. Velocity still tries to parse the file, leading to an error:
{noformat}
[ERROR] Parser Exception: archetype-resources/Template.ftl :
org.apache.velocity.runtime.parser.ParseException: Encountered "data" at line
28, column 30.
Was expecting:
"(" ...
at
org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
at
org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
at
org.apache.velocity.runtime.parser.Parser.IfStatement(Parser.java:1284)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:293)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:258)
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720)
at org.apache.velocity.Template.process(Template.java:123)
{noformat}
was:
Using
<resources>
<resource filtered="false">Template.ftl</resource>
</resources>
fails. Velocity still tries to parse the file, leading to an error:
[ERROR] Parser Exception: archetype-resources/Template.ftl :
org.apache.velocity.runtime.parser.ParseException: Encountered "data" at line
28, column 30.
Was expecting:
"(" ...
at
org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
at
org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
at
org.apache.velocity.runtime.parser.Parser.IfStatement(Parser.java:1284)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:293)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:258)
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720)
at org.apache.velocity.Template.process(Template.java:123)
Issue seems to refer to
http://maven.apache.org/archetype/archetype-common/archetype.html
> Resource filtering fails for Freemarker templates
> -------------------------------------------------
>
> Key: ARCHETYPE-69
> URL: https://jira.codehaus.org/browse/ARCHETYPE-69
> Project: Maven Archetype
> Issue Type: Bug
> Components: Archetypes
> Environment: Ubuntu/Linux
> Reporter: Leandro Rodrigo Saad Cruz
> Priority: Critical
>
> Using
> {code:xml}
> <resources>
> <resource filtered="false">Template.ftl</resource>
> </resources>
> {code}
> fails. Velocity still tries to parse the file, leading to an error:
> {noformat}
> [ERROR] Parser Exception: archetype-resources/Template.ftl :
> org.apache.velocity.runtime.parser.ParseException: Encountered "data" at line
> 28, column 30.
> Was expecting:
> "(" ...
>
> at
> org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
> at
> org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
> at
> org.apache.velocity.runtime.parser.Parser.IfStatement(Parser.java:1284)
> at
> org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:293)
> at org.apache.velocity.runtime.parser.Parser.process(Parser.java:258)
> at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104)
> at
> org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776)
> at
> org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720)
> at org.apache.velocity.Template.process(Template.java:123)
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira