J'ai extrait le code siddhi et exécuté mvn Eclipse : Eclipse génère une erreur sur <relativePath>../../pom.xml</relativePath>

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

Question

Je trouve vraiment étrange qu'un projet comme siddhi ne soit pas construit immédiatement, je me demande ce qui me manque.

Pour commencer, j'ai juste besoin d'un moyen d'importer siddhi dans Eclipse, et il ne me montrera aucun projet lorsque je choisirai Import Existing Projects.Si j'importe depuis le système de fichiers, cela affiche tout un tas d'erreurs et je ne peux pas exécuter des choses simples comme Call and Type.Vraiment merdique.

Parmi tout ce que j'ai recherché sur Google, j'ai installé Maven et j'essaie de suivre configuration d'éclipse maven

Quand je cours sudo mvn eclipse:eclipse, j'obtiens l'erreur suivante

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

La ligne 22 a

<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

J'ai exécuté mvn eclipse:eclipse à partir du dossier siddhi où existe pom.xml.Maintenant, où vais-je trouver ../../pom.xml.Cela ressemble à un bug vraiment idiot.Qu'est-ce que j'oublie ici?

Était-ce utile?

La solution

Étonnamment, le chemin source au niveau site web est faux.Le lien mentionné est

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

C'est en fait

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

J'ai vérifié ce code en utilisant svn co http://svn.wso2.org/repos/wso2/trunk/commons/siddhi siddhi puis j'ai couru chmod 777 -R siddhi.Après cela, j'ai couru mvn eclipse:eclipse, a importé les projets vers Eclipse et tout est vert maintenant.

Enfin...merci @mb21

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top