MAVEN如何部署至snapshots仓库

现在是能部署至nexus的releases仓库,但是不能部署到snapshots仓库
配置:
pom.xml:

<distributionManagement>
        <repository>
            <id>nexus-releases</id>
            <name>nexus releases</name>
            <url>http://127.0.0.1:8081/nexus/content/repositories/releases/</url>
        </repository>
        <snapshotRepository>
            <id>nexus-snapshots</id>
            <name>nexus snapshots</name>
            <url>http://127.0.0.1:8081/nexus/content/repositories/snapshots/</url>
        </snapshotRepository>
    </distributionManagement> 

settings.xml:

<repository>
                        <id>public</id>
                        <name>public repositorie.</name>
                        <url>http://127.0.0.1:8081/nexus/content/groups/public/</url>
                        <releases><enabled>true</enabled></releases>
                        <snapshots><enabled>true</enabled></snapshots>
</repository> 

仓库认证也打开了.现在使用mvc clean deploy命令部署没报错,但是只会正常部署到release仓库,snapshots一直是空的
请各位大神指教,多谢!

版本号加上-SNAPSHOT

尖括号和缩进不知道为什么没了,辛苦看一下各位