How to set global maven distrubution management settings?

99 Views Asked by At

I want to avoid putting this part in pom.xml of every project distributed the same way

<distributionManagement>
    <repository>
        <id>my-id</id>
        <name>My deployed artifacts</name>
        <url>https://organization.xxx/maven/</url>
    </repository>
</distributionManagement>

How to set it globally via maven command or editing setting file?

1

There are 1 best solutions below

1
J Fabian Meier On BEST ANSWER

Cannot be done in settings.xml.

What you can do: