0

我尝试使用mvn deploy命令行上的命令部署到我的远程存储库(Nexus)。通过这样做,我得到了以下错误:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project pro-tools-maven-plugin: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

distributionManagementpom.xml. 用户名和密码存储在settings.xml.

片段pom.xml

<distributionManagement>
    <repository>
        <id>thirdparty</id>
        <name>3rd Party (Releases)</name>
        <url>http://bla.net:11000/nexus/content/repositories/thirdparty</url>
    </repository>
    <snapshotRepository>
        <id>thirdparty_snapshots</id>
        <name>3rd Party (Snapshots)</name>
        <url>http://bla.net:11000/nexus/content/repositories/thirdparty_snapshots</url>
    </snapshotRepository>
</distributionManagement>

可能是什么问题呢?

4

0 回答 0