You have it exactly right!
From the POM reference:
Where as the
repositorieselement specifies in the POM the location and manner in which Maven may download remote artifacts for use by the current project,distributionManagementspecifies where (and how) this project will get to a remote repository when it is deployed. The repository elements will be used for snapshot distribution if the snapshotRepository is not defined.
- Repositories declared under the
distributionManagementelement will be used for deployment, i.e. when runningmvn deploy. - The
repositorieselement will be used for downloading dependencies of the project. The command is not necessarilymvn installbut any command that requires Maven to fetch artifacts from a repository.