5

I want to replace a Maven property in a pom.xml file with a command line call via some Maven plugin.

<properties>
    <my.property>ISO-8859-1</my.property>
<properties>

Do you know of a plugin which is able to do that?

The versions plugin takes very long since it checks whether some dependency is available. Besides that it doesn't work in my case.

Harold L. Brown
  • 8,423
  • 11
  • 57
  • 109

1 Answers1

5

All you need to do is add the following when running maven on the command line

-Dmy.property=propertyValue
TK8
  • 125
  • 6