Maven Archetype

Resource filtering fails for Freemarker templates

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Critical Critical
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Archetypes
  • Labels:
    None
  • Environment:
    Ubuntu/Linux
  • Number of attachments :
    0

Description

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)

Activity

Hide
Robert Scholte added a comment -
Show
Robert Scholte added a comment - Issue seems to refer to http://maven.apache.org/archetype/archetype-common/archetype.html

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: