Jan-Christopher Bals wrote:
>
> Hi!
>
> I just created my own maven2 archetype for building webapps with a set
> of default files (binary files like jpg, text files like xml).
>
> I added these files in the archetype.xml description file.
>
> <archetype>
> <id>obs-web-app</id>
> <sources>
> ...
> </sources>
> <resources>
> <resource>src/main/resources/config.xml</resource>
> ...
> </resource>
>
> </archetype>
>
> When i try to create an new project via my own obs-web-app archetype,
> maven tries to replace expression like ${property} in the resource files.
>
> [WARNING] org.apache.velocity.runtime.exception.ReferenceException:
> reference : template = archetype-resources/src/main/resources/config.xml
> [line 16,column 32] : ${property} is not a valid reference.
>
>
>
> So here is my question:
>
> Is there any way to exclude these files from filtering?
>
> Jan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Good day toyou, Jan-Christopher,
You may want to take a look at [1]. I read the code and came up with that
DTD. I aslo made some explanations there. Furthermore, for more info
regarding maven-archetype-plugin, you can browse through [2]. It's an
unreleased revision of the documentation of that plugin. If you have any
comments about it, please feel free to let us know about it. ...For example,
I guess the content of [1] should somehow be mentioned in [2]. Thus, I've
just created [3] ^_^
Anyway, to stop the filtering you can use the filtered attribute and set it
to false.
Thanks,
Franz
[1] http://www.nabble.com/forum/ViewPost.jtp?post=6052980&framed=y
[2] http://people.apache.org/~oching/maven-archetype-plugin/
[3] http://jira.codehaus.org/browse/ARCHETYPE-56
--
View this message in context:
http://www.nabble.com/Maven2-%3A%3A-custom-archetype-%3A%3A-filtering-of-resources-tf2303774.html#a6421128
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]