maven - Setting global properties in settings.xml -


is there way set properties globally in settings.xml file maven? have seen documentation , not this. problem have several build profiles share values properties. instead of defining each , every property time, set values shared properties globally , define property values change. thinking along lines of

<settings xmlns="http://maven.apache.org/settings/1.0.0" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://maven.apache.org/settings/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">     <properties>         <property.1>some value 1</property.1>         <property.2>some value 2</property.2>     </properties>      <profiles>         <profile>             <id>some-build-profile-1</id>             <properties>                 <property.3>some value 3-1</property.3>                 <property.4>some value 4-1</property.4>             </properties>         </profile>         <profile>             <id>some-build-profile-2</id>             <properties>                 <property.3>some value 3-2</property.3>                 <property.4>some value 4-2</property.4>             </properties>         </profile>     </profiles> </settings> 

this works in pom files reason, not able work in settings.xml. passing option build process using -s switch.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -