POM configuration file in a Java project.

We might want to promote a dependent version number to an attribute.

The diagram below:

The version numbers of the dependencies above are properties.

The solution

Shortcuts are available in IntelliJ IDEA.

Ctrl+Alt+V

To do this.

Move the cursor over the number of the version number, then use the shortcut key above.

This will pop up the above dialog box, if you do not want to modify, just OK.

Of course, you also can choose from the menu to enter, enter the path as follows: Refactor | Extract | Property

www.ossez.com/t/intellij-…