Search code examples
javamavenpom.xml

Maven POM equivalent for-DargLine="-Djava.locale.providers=COMPAT,CLDR"


I'm migrating to java11 and I'm running this commmand

mvn clean install -DargLine="-Djava.locale.providers=COMPAT,CLDR"

it works fine, but is there a POM equivalent to pass that argLine so I just can use mvn clean install?


Solution

  • Just set the property inside the POM

    <properties>
      <argLine>java.locale.providers=COMPAT,CLDR</argLine>
    </properties>