rohanpadhye / JQF

JQF + Zest: Coverage-guided semantic fuzzing for Java.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot find jar package?

lometsj opened this issue · comments

[ERROR] Failed to execute goal on project jqf-examples: Could not resolve dependencies for project edu.berkeley.cs.jqf:jqf-examples:jar:2.0-SNAPSHOT: Failed to collect dependencies at org.lichess:scalachess_2.12:jar:8.6.8: Failed to read artifact descriptor for org.lichess:scalachess_2.12:jar:8.6.8: Could not transfer artifact org.lichess:scalachess_2.12:pom:8.6.8 from/to lila-maven (https://raw.githubusercontent.com/ornicar/lila-maven/master): Transfer failed for https://raw.githubusercontent.com/ornicar/lila-maven/master/org/lichess/scalachess_2.12/8.6.8/scalachess_2.12-8.6.8.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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.

Hello. I have no idea what you are trying to do, why you are using SNAPSHOTs, or how to reproduce the error you are seeing.

Please see #204 for an example of how to write a good issue and follow up with details and if necessary steps to repro so that I can help.

sorry for that
i just run command

git clone https://github.com/rohanpadhye/jqf && jqf/setup.sh

to clone the repo and build jqf for
https://github.com/rohanpadhye/jqf/wiki/Fuzzing-with-AFL

i can reproduce it statbly on my laptop with ubuntu 20.04 re-installed

my .history file

 1522  git clone https://github.com/rohanpadhye/jqf && jqf/setup.sh
 1523  sudo apt install maven
 1524  sudo vi /etc/maven/settings.xml (set socks5 proxy for maven)
 1525  jqf/setup.sh

Thanks. I tried the setup steps from a fresh install and the dependencies seem to resolve properly for me (as well as potentially most other users).

From the error message, it seems that your Maven is having trouble downloading the lichess dependency which is not on Maven Central but rather in a different repository. You are getting an error "unable to find valid certification path to requested target", which is related to fetching the dependency over the network. I see from your steps that you are setting up a socks5 proxy for maven. I'm not sure what exactly you are changing, but if you need a proxy for Maven Central perhaps you also need one for the lichess repository (see examples/pom.xml where the repository is defined).

Otherwise, if you do not need jqf-examples and only want to use JQF on your own applications, you can build all the modules without the examples as follows:

mvn package -pl '!examples'   # build modules except 'examples'

Closing due to inactivity.