Is it possible to pass arguments from command line to properties in pom.xml file ? for example I run mvn ... argument
pom.xml
mvn ... argument
and in pom.xml
<properties> <myproperty> here should add argument from command line</myproperty> </properties>
Thank you for the help.
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.
1.4m articles
1.4m replys
5 comments
57.0k users