Passing command line arguments from Maven as properties in pom.xml
For your property example do: mvn install “-Dmyproperty=my property from command line” Note quotes around whole property definition. You’ll need them if your property contains spaces.