查看了siddhi代码,&amp; run mvn eclipse:eclipse在<relativepath> ../../ pom.xml </relativepath>抛出错误

时间:2014-06-03 11:09:18

标签: eclipse maven build pom.xml siddhi

我发现像siddhi这样的项目不会立即开发,我觉得很奇怪。我想知道我错过了什么。

首先,我只需要将siddhi导入eclipse,当我选择Import Existing Projects时,它不会向我显示任何项目。如果我从文件系统导入,它会显示一大堆错误,我无法运行像Call and Type这样的简单内容。真的很糟糕。

在我用Google搜索的所有内容中,我安装了maven,并且正在尝试关注maven eclipse configuration

当我运行sudo mvn eclipse:eclipse时,我收到以下错误

~/Development/workinprogress/siddhi$ sudo mvn eclipse:eclipse
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.wso2.cep:cep-parent:3.1.0 (/home/jsiddharth/Development/workinprogress/siddhi/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find org.wso2.carbon:carbon-products:pom:4.2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 22, column 13 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

第22行

<parent>^M
    <groupId>org.wso2.carbon</groupId>^M
    <artifactId>carbon-products</artifactId>^M
    <version>4.2.0</version>^M
    <relativePath>../../pom.xml</relativePath>^M
</parent>^M

我在存在pom.xml的siddhi文件夹中运行了mvn eclipse:eclipse。现在我在哪里可以找到../../pom.xml。这似乎是一个非常愚蠢的错误。我在这里缺少什么?

1 个答案:

答案 0 :(得分:0)

令人惊讶的是website的源路径是错误的。提到的链接是

  

http://svn.wso2.org/repos/wso2/trunk/commons/siddhi2

实际上是

  

http://svn.wso2.org/repos/wso2/trunk/commons/siddhi

我使用svn co http://svn.wso2.org/repos/wso2/trunk/commons/siddhi siddhi检查了此代码,然后运行chmod 777 -R siddhi。在此之后,我运行mvn eclipse:eclipse,将项目导入eclipse,现在全部为绿色。

最后......谢谢@ mb21