You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Stuart McCulloch (JIRA)" <ji...@apache.org> on 2007/10/06 06:11:50 UTC

[jira] Updated: (WICKET-1045) mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart

     [ https://issues.apache.org/jira/browse/WICKET-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart McCulloch updated WICKET-1045:
-------------------------------------

    Attachment: WICKET-1045.20071006.txt

as mentioned on the dev list, there are a couple of tricks you can use in your archetype template(s) to avoid these warnings:

1) add the following velocity macro:

        #set( $dollar = '$' )

    to the top of the file, then use ${dollar}{wicket.version} in place of ${wicket.version}

2) or use the 'literal' velocity tag:

        #literal()
           this text will be left unchanged... ${wicket.version}
           ... even text like ${version} will remain untouched
        #end

    to surround sections where you don't want velocity to do any property substitution

the attached patch (WICKET-1045.20071006.txt) uses the second approach

> mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-1045
>                 URL: https://issues.apache.org/jira/browse/WICKET-1045
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>         Environment: Mac osx 
>            Reporter: Nino Martinez
>            Priority: Minor
>         Attachments: WICKET-1045.20071006.txt
>
>
> mvn archetype:create -DarchetypeGroupId=org.apache.wicket -DarchetypeArtifactId=wicket-archetype-quickstart 
> Yields warnings:
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 35,column 34] : ${wicket.version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 41,column 34] : ${wicket.version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 64,column 34] : ${jetty.version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 70,column 34] : ${jetty.version} is not a valid reference.
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException: reference : template = archetype-resources/pom.xml [line 76,column 34] : ${jetty.version} is not a valid reference.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.