0

我正在使用 Maven 发布插件 2.2.1 。就我而言release:clean,并且release:prepare正在成功执行。但是当我尝试执行release:perform它时显示以下错误。

EXIMR-IM-187:rabbit_trunk manojkumarbardhan$ mvn release:perform
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Curo Fabric Component for RabbitMQ 2.0.20-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-release-plugin:2.2.1:perform (default-cli) @ curo-fabric-component-rabbitmq-experiments ---
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target && svn --non-interactive checkout http://ssygh.dgxxxgdf.xxx.com:1080/SVNROOT/CURO/Experiments/migration/tags/curo-fabric-component-rabbitmq-experiments-2.0.19 /Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target/checkout
[INFO] Working directory: /Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target
[INFO] Executing goals 'deploy'...
[WARNING] Maven will be executed in interactive mode, but no input stream has been configured for this MavenInvoker instance.
[INFO] [INFO] Scanning for projects...
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 0.115s
[INFO] [INFO] Finished at: Thu Sep 05 17:40:01 GMT+05:30 2013
[INFO] [INFO] Final Memory: 2M/81M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target/checkout). Please verify you invoked Maven from the correct directory. -> [Help 1]
[INFO] [ERROR] 
[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[INFO] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[INFO] [ERROR] 
[INFO] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[INFO] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.528s
[INFO] Finished at: Thu Sep 05 17:40:01 GMT+05:30 2013
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.2.1:perform (default-cli) on project curo-fabric-component-rabbitmq-experiments: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我不知道我做错了什么。

我遵循的过程是:-

  1. 从 svn 签出
  2. cd 到那个结帐目录
  3. 执行我必要的 svn 命令
  4. 执行mvn release:clean
  5. 执行mvn release:prepare
  6. 执行mvn release:perform ,但失败。

提前致谢。

4

1 回答 1

1

开发者连接来自:

<scm>
  <developerConnection>scm:svn:https://svn.mycompany.com/repos/myapplication/trunk/mycomponent/</developerConnection>
</scm>

应该指向您要发布的 Maven 项目。

此外,插件配置中的发布标签可以使用任意位置:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-release-plugin</artifactId>
  <version>2.5.2</version>
  <configuration>
    <tagBase>https://svn.mycompany.com/repos/myapplication/releases</tagBase>
  </configuration>
</plugin>

必须正确阅读使用页面(我也没有这样做),一切都会正常工作。

尽管如此,我相信插件日志记录应该提供有关问题(或可能的问题)的更准确信息。

于 2015-07-23T09:45:18.900 回答