Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You'll need a profiles section to add the properties needed for customization. Here's what my settings.xml file in ~/.m2 looks like:

No Format

<settings xmlns="http://maven.apache.org/POM/4.0.0"

...


  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

...


  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0

...

 
                      http://maven.apache.org/xsd/settings-1.0.0.xsd

...

">

...


  <profiles>
    <profile>
      <id>deploy-local</id>

...


      <properties>
        <!-- This property is needed to customize where the goal 'deploy' will deploy artifacts to -->

...


        <distMgmtSnapshotsUrl>scpexe://localhost/tmp/local-directory-deployment</distMgmtSnapshotsUrl>

...


      </properties>

...


    </profile>

...


  <profiles>

...


</settings>