Maven Filtering and Property Substitution: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * Assembly Module Filtering and System Property Substitution =Overview= Maven wi...") |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* [[Custom_Maven_Assembly_Descriptors#Filtering_and_System_Property_Substitution|Assembly Module Filtering and System Property Substitution]] | * [[Custom_Maven_Assembly_Descriptors#Filtering_and_System_Property_Substitution|Assembly Module Filtering and System Property Substitution]] | ||
* [[Maven_Resources_Plugin#Variable_Substitution_in_Resource_Files|Resource Plugin Filtering and Property Substitution]] | |||
=Overview= | =Overview= | ||
Maven will replace properties specified in its resource files during the "" phase, or while building an assembly, if filtering is turned on. | Maven will replace properties specified in its resource files during the "[[Maven_Concepts_-_Lifecycle#process-resources|process-resources]]" phase, or while building an assembly, if filtering is turned on. | ||
In order to be replaced, a property must be specified as such: | In order to be replaced, a property must be specified as such: | ||
Line 15: | Line 16: | ||
Filtering can be turned on as follows: | Filtering can be turned on as follows: | ||
# [[Maven_Resources_Plugin#Variable_Substitution_in_Resource_Files|Turing on Filtering and Property Substitution during Execution of the Resource Plugin]] | |||
# [[Custom_Maven_Assembly_Descriptors#Filtering_and_System_Property_Substitution|Turning on Filtering and Property Substitution while Building an Assembly]] | # [[Custom_Maven_Assembly_Descriptors#Filtering_and_System_Property_Substitution|Turning on Filtering and Property Substitution while Building an Assembly]] |
Latest revision as of 18:47, 21 December 2016
Internal
- Assembly Module Filtering and System Property Substitution
- Resource Plugin Filtering and Property Substitution
Overview
Maven will replace properties specified in its resource files during the "process-resources" phase, or while building an assembly, if filtering is turned on.
In order to be replaced, a property must be specified as such:
... ${property_name} ...
Filtering can be turned on as follows: