maven deploy异常

Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter

需要在POM中加入分发配置

<distributionManagement>
    <repository>
        <id>releases</id>
        <name>releases</name>
        <url>http://mavenhost/.../releases/</url>
    </repository>
    <snapshotRepository>
        <id>snapshot</id>
        <name>snapshot</name>
        <url>http://mavenhost/.../snapshots/</url>
    </snapshotRepository>
</distributionManagement>

posted on 2020-03-30 09:11  路过君  阅读(305)  评论(0编辑  收藏  举报

导航