streamreasoning / rsp-services-csparql

rsp-service implementation for csparql engine.
Apache License 2.0
2 stars 5 forks source link

Compiling error #4

Open dellaglio opened 8 years ago

dellaglio commented 8 years ago

I downloaded the code and I tried to run mvn package. However, the process fails with the following error:

` [INFO] 1 error

[INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1.701 s [INFO] Finished at: 2016-10-09T16:01:28+02:00 [INFO] Final Memory: 18M/229M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project rsp-services-csparql: Compilation failure [ERROR] /home/dani/rsp/rsp-services-csparql/src/main/java/it/polimi/deib/rsp_services_csparql/commons/Csparql_Engine.java:[162,30] cannot find symbol [ERROR] symbol: method evaluateGeneralQueryOverDatasource(java.lang.String) [ERROR] location: variable engine of type eu.larkc.csparql.core.engine.CsparqlEngineImpl [ERROR] -> [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/MojoFailureException `

nseyedtalebi commented 6 years ago

I was able to get around this by changing a dependency in the POM. I changed the version number from 0.9.6 to 0.9.7 of csparql-core like this: `

eu.larkc.csparql
        <artifactId>csparql-core</artifactId>
        <version>0.9.7</version>
    </dependency>`

I made this change somewhat blindly after asking IntelliJ to show me the code from the jar. I found the method in question in docs that I generated from the csparql-engine sources, so I knew that it exists in some version. Since I downloaded the latest sources, I decided to try changing the dependency to the highest version number to see if it would work. It did allow me to run "mvn package", but the Docker plugin example fails with this error:

[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.8:build (default-cli) on project rsp-services-csparql: Exception caught: UNC path is missing sharename: /\rsp-services-csparql-0.4.9.jar -> [Help 1]

I haven't actually run the code yet...