Maven Filtering and Property Substitution: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
Line 6: Line 6:
=Overview=
=Overview=


Maven will replace properties specified in its resource files during the "[[process-resources|Maven_Concepts_-_Lifecycle#process-resources]]" 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:

Latest revision as of 18:47, 21 December 2016

Internal

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:

  1. Turing on Filtering and Property Substitution during Execution of the Resource Plugin
  2. Turning on Filtering and Property Substitution while Building an Assembly