(在Java 7上使用Mac上的Maven 3.0.3)
当我运行mvn dependency:analyze-duplicatemaven使用版本2.1(无论是否在我的本地仓库中有2.8)插件和抱怨:
[ERROR] Could not find goal 'analyze-duplicate' in plugin org.apache.maven.plugins:maven-dependency-plugin:2.1 among available goals unpack-dependencies,....
Run Code Online (Sandbox Code Playgroud)
当我运行它,因为mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze它工作正常.
我原以为,如果没有明确指定版本,maven总会回到最新版本(即使还没有在本地回购中)?
我错过了什么?谢谢大家的回复时间.
我们最近从 SVN 迁移到了 git。除了在 git 上发布其他(意外)问题之外,我想知道如何处理以下问题:
当我在 Jenkins 上开始发布运行并且一些开发人员(意外地)在发布的第一阶段推送时,发布构建失败并出现以下错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare (default-cli) on project xyz: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-push command failed.
[ERROR] Command output:
[ERROR] To ssh://[some-ip]/home/git/xyz
[ERROR] ! [rejected] release/xyz-6.10 -> release/xyz-6.10 (fetch first)
[ERROR] error: failed to push some refs to 'ssh://[some-ip]/home/git/xyz'
[ERROR] hint: Updates were rejected because the remote contains work that you do
[ERROR] hint: not have locally. This is usually caused by another repository pushing …Run Code Online (Sandbox Code Playgroud)