You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/01/04 15:45:00 UTC

[jira] [Comment Edited] (MSHARED-793) Support for default value

    [ https://issues.apache.org/jira/browse/MSHARED-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16734247#comment-16734247 ] 

Michael Osipov edited comment on MSHARED-793 at 1/4/19 3:44 PM:
----------------------------------------------------------------

Right, so none of these files is being used by Maven, but they are generated by Maven to be consumed by Spring.
 The setup as shown by Michael is exactly what I would expect: your {{app.properties}} will contains {{$\{toto:tutu}}} while your app-secrets may or may not contain {{toto=tatu}}
 I prefer to solve this at Spring Application level and not by changing the property-mechanism of Maven. (maybe we should add an example page to the documentation)


was (Author: rfscholte):
Right, so none of these files is being used by Maven, but they are generated by Maven to be consumed by Spring.
The setup as shown by Michael is exactly what I whould expect: your app.properties will contains {{${toto:tutu\}}} while your app-secrets may or may not contain {{toto=tatu}}
I prefer to solve this at Spring Application level and not by changing the property-mechanism of Maven. (maybe we should add an example page to the documentation)

> Support for default value
> -------------------------
>
>                 Key: MSHARED-793
>                 URL: https://issues.apache.org/jira/browse/MSHARED-793
>             Project: Maven Shared Components
>          Issue Type: New Feature
>          Components: maven-filtering
>    Affects Versions: maven-filtering-3.1.2
>            Reporter: Jean-Charles Manoury
>            Priority: Major
>              Labels: pull-request-available
>
> The goal is to manage default value like ${toto:tutu} where tutu is used when no value for toto is found.
>  It is the same behavior as Spring's [PropertyPlaceholderConfigurer|https://www.mkyong.com/spring/spring-propertyplaceholderconfigurer-example/]
> This will make properties files from a Spring project compatible with maven-filtering.
> A pull request had been created on Github : https://github.com/apache/maven-filtering/pull/1



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)