Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling error #4

Open
dellaglio opened this issue Oct 9, 2016 · 1 comment
Open

Compiling error #4

dellaglio opened this issue Oct 9, 2016 · 1 comment

Comments

@dellaglio
Copy link

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
Copy link

nseyedtalebi commented Jun 1, 2018

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:
<dependency> <groupId>eu.larkc.csparql</groupId> <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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants