In Maven projects, while editing
one needs to define a property and replace the occurrences of some value - artifact version, for example, - with this property.
For these purposes, CLion provides the Extract Property refactoring.
Extract Property refactoring creates a new property definition in the specified
pom.xml file, finds all the occurrences of the selected string in
the hierarchy of
pom.xml files, and replaces them with the above property in the format:
The Extract Property refactoring lets you move expressions and local declarations to properties.