You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jörg Hohwiller (JIRA)" <ji...@apache.org> on 2016/03/09 08:48:40 UTC
[jira] [Commented] (MRESOURCES-162) Fail build if resource not
fully filtered
[ https://issues.apache.org/jira/browse/MRESOURCES-162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15186693#comment-15186693 ]
Jörg Hohwiller commented on MRESOURCES-162:
-------------------------------------------
{quote}
I find it hard to imagine a scenario where placeholders with incorrect properties being silently left unfiltered would be desired behaviour.
{quote}
There are placed where you might want to have this. E.g. by default variable expressions are written as ${property.name} and the same syntax is also used by other tools (bash script, etc.). So it might be desired that a variable is not replaced that is later resolved by an interpreter of the outcome.
However, in such case it is always better and more clean to change the delimited (e.g. to $[*]) in order to avoid confusion.
Then in about all reasonable case the current behaviour is undesired.
If this would be implemented the current behaviour should be kept to avoid regression bugs. Instead a new config option should be added to resources plugin that can be enabled to fail on unresolved property.
> Fail build if resource not fully filtered
> ------------------------------------------
>
> Key: MRESOURCES-162
> URL: https://issues.apache.org/jira/browse/MRESOURCES-162
> Project: Maven Resources Plugin
> Issue Type: Improvement
> Affects Versions: 2.5
> Reporter: Alexey Markevich
> Priority: Minor
> Fix For: backlog
>
>
> Scenario: project with some kind resource affected to the project properties. If some property renamed then resource will contains placeholder instead of actual value. It will be great to have configuration option like 'Fails if property missing'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)