maven 項目deploy報400錯誤解決 原

如下圖將 Deployment policy 設置爲 Allow Redeploy

-------------------

另,自動部署到nexus:

在項目pom.xml中添加

    <distributionManagement>
        <repository>
            <id>thirdparty</id>
            <url>http://nexusIP地址:8081/nexus/content/repositories/thirdparty</url>
        </repository>
    </distributionManagement>

其中 thirdparty 爲.xml 中配置的服務器ID

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章