我正在使用 maven android-release 原型
在 release:prepare 成功后,我运行了 release:perform 并得到以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project xxx: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter
但在我的 pom.xml 我有以下内容:
<distributionManagement>
<repository>
<id>nexus-releases</id>
<name>RepositoryProxyRel</name>
<url>http://server:8081/nexus/content/repositories/releases/</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>RepositoryProxySnap</name>
<url>http://server:8081/nexus/content/repositories/snapshots/</url>
</snapshotRepository>
谁能解释我的配置有什么问题以及为什么会出现此错误?提前非常感谢。