Ho estratto il codice siddhi e ho eseguito mvn eclipse:eclipse genera un errore in <relativePath>../../pom.xml</relativePath>

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

Domanda

Trovo davvero strano che un progetto come siddhi non venga realizzato immediatamente, mi chiedo cosa mi sto perdendo.

Per cominciare ho solo bisogno di un modo per importare siddhi in Eclipse e non mi mostrerà alcun progetto quando scelgo Import Existing Projects.Se importo dal file system, mostra un sacco di errori e non riesco a eseguire cose semplici come Call and Type.Davvero scadente.

Tra tutto ciò che ho cercato su Google, ho installato Maven e sto cercando di seguire configurazione di Eclipse Maven

Quando corro sudo mvn eclipse:eclipse, ottengo il seguente errore

~/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 linea 22 ha

<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

Ho eseguito mvn eclipse:eclipse dalla cartella siddhi in cui esiste pom.xml.Ora dove lo troverò? ../../pom.xml.Sembra un bug davvero stupido.Cosa mi manca qui?

È stato utile?

Soluzione

Sorprendentemente il percorso di origine in sito web è sbagliato.Il collegamento menzionato è

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

In realtà lo è

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

Ho controllato questo codice utilizzando svn co http://svn.wso2.org/repos/wso2/trunk/commons/siddhi siddhi e poi corse chmod 777 -R siddhi.Dopodiché ho corso mvn eclipse:eclipse, ho importato i progetti in Eclipse e ora è tutto verde.

Finalmente...grazie @mb21

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top