2 wcw53147 wcw53147 于 2016.09.22 10:19 提问

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一直是空的
请各位大神指教,多谢!

1个回答

wcw53147
wcw53147   2016.09.22 10:21

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

Csdn user default icon
上传中...
上传图片
插入图片