Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Svn Maven问题-您指定的目标需要执行一个项目,但此目录中没有POM_Svn_Maven_Maven Release Plugin - Fatal编程技术网

Svn Maven问题-您指定的目标需要执行一个项目,但此目录中没有POM

Svn Maven问题-您指定的目标需要执行一个项目,但此目录中没有POM,svn,maven,maven-release-plugin,Svn,Maven,Maven Release Plugin,我正在使用maven发布插件2.2.1。在我的例子中,release:clean和release:prepare正在成功执行。但是当我试图执行release:perform时,它会显示以下错误 EXIMR-IM-187:rabbit_trunk manojkumarbardhan$ mvn release:perform [INFO] Scanning for projects... [INFO]

我正在使用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
我不知道我做错了什么

我遵循的过程是:-

  • 从svn签出
  • cd到该签出目录
  • 执行必要的svn命令
  • 执行
    mvn发布:清除
  • 执行mvn发布:准备
  • 执行
    mvn发布:执行
    ,但失败

  • 提前感谢。

    开发者连接来自:

    <scm>
      <developerConnection>scm:svn:https://svn.mycompany.com/repos/myapplication/trunk/mycomponent/</developerConnection>
    </scm>
    
    
    scm:svn:https://svn.mycompany.com/repos/myapplication/trunk/mycomponent/
    
    应该指向要发布的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>
    
    
    org.apache.maven.plugins
    maven发布插件
    2.5.2
    https://svn.mycompany.com/repos/myapplication/releases
    
    一个人必须正确阅读使用页面(我也没有这样做),一切都会很好。


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

    release:perform做的第一件事是检查release:prepare标记的版本。日志片段显示:
    svn——非交互式签出http://istsvn.corp.apple.com:1080/SVNROOT/CURO/Experiments/migration/tags/curo-fabric-component-rabbitmq-experiments-2.0.19/Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target/checkout
    。检查/Users/manojkumarbardhan/QURO_PROJECT/rabbit_trunk/target/checkout目录,里面有POM吗?如果没有,请调查签出失败的原因。是的,签出内部有rabbit_trunk/pom.xml文件。当该目录为当前目录时,是否可以运行Maven安装?@sanderhagen,current意味着你要进入该目录,然后运行maven install或其他一些东西。pom.xml文件中是否存在任何安装问题。我真的不知道。我的意思是进入
    签出
    目录,然后从那里运行正常的
    mvn安装
    。这是一个愚蠢的,没有什么小测试,但它是最起码的开始。