Maven发布插件:发布:prepare-with-pom vs -DgenerateReleasePoms

时间:2011-12-07 23:54:28

标签: maven maven-release-plugin

有什么区别:

  

mvn release:prepare-with-pom

  

mvn release:prepare -DgenerateReleasePoms=true

文档不区分它们。

1 个答案:

答案 0 :(得分:2)

这对你有帮助吗? :)这是你运行时的输出

mvn release:prepare -DgenerateReleasePoms=true

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0
    :prepare (default-cli) on project test-dependency: Generating release POMs is no
     longer supported in release:prepare. Please run release:prepare-with-pom instea
    d. -> [Help 1]