Siddhi-Code ausgecheckt und mvn eclipse ausgeführt: Eclipse wirft einen Fehler bei <relativePath>../../pom.xml</relativePath>

StackOverflow https://stackoverflow.com//questions/24013633

Frage

Ich finde es wirklich seltsam, dass ein Projekt wie Siddhi nicht sofort einsatzbereit ist. Ich frage mich, was ich übersehe.

Zunächst brauche ich nur eine Möglichkeit, Siddhi in Eclipse zu importieren, und es werden mir keine Projekte angezeigt, wenn ich dies auswähle Import Existing Projects.Wenn ich aus dem Dateisystem importiere, werden eine ganze Reihe von Fehlern angezeigt und ich kann einfache Dinge wie z. B. nicht ausführen Call and Type.Wirklich beschissen.

Von allem, was ich gegoogelt habe, habe ich Maven installiert und versuche, ihm zu folgen Maven Eclipse-Konfiguration

Wenn ich renne sudo mvn eclipse:eclipse, erhalte ich die folgende Fehlermeldung

~/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

Linie 22 hat

<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

Ich habe mvn eclipse:eclipse aus dem Siddhi-Ordner ausgeführt, in dem pom.xml vorhanden ist.Wo werde ich es jetzt finden? ../../pom.xml.Es scheint ein wirklich dummer Fehler zu sein.Was fehlt mir hier?

War es hilfreich?

Lösung

Überraschenderweise ist der Quellpfad am Webseite ist falsch.Der erwähnte Link ist

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

Das ist es tatsächlich

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

Ich habe diesen Code mit überprüft svn co http://svn.wso2.org/repos/wso2/trunk/commons/siddhi siddhi und rannte dann chmod 777 -R siddhi.Danach bin ich gerannt mvn eclipse:eclipse, habe die Projekte in Eclipse importiert und jetzt ist alles grün.

Endlich...Danke @mb21

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top