tls-attacker / TLS-Scanner

The TLS-Scanner Module from TLS-Attacker
Other
264 stars 39 forks source link

Maven build fails #62

Closed rosseljost closed 4 years ago

rosseljost commented 4 years ago

I've no experience with maven so I'm a bit at loss here:

I suppose that it is a problem on your side, if that's not the case: any idea what the problem might be?

Immortalem commented 4 years ago

I'm not entirely sure but currently the master branch of TLS-Attacker is 3.4.0 while TLS-Scanner requires 3.3.1. I don't know if there are any incompatibilities but a quick workaround for you should be to clone TLS-Attacker 3.3.1 and build that.

rosseljost commented 4 years ago

That worked, thanks!

bennysp commented 4 years ago

This is happening when you use the TLS-Scanner Dockerfile and issue the build command.

docker build . -t tlsscanner

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.679 s
[INFO] Finished at: 2020-07-17T16:33:35Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project TLS-Scanner: Could not resolve dependencies for project de.rub.nds.tlsscanner:TLS-Scanner:jar:3.0.2: The following artifacts could not be resolved: de.rub.nds.tlsattacker:TLS-Core:jar:3.3.1, de.rub.nds.tlsattacker:Attacks:jar:3.3.1: Could not find artifact de.rub.nds.tlsattacker:TLS-Core:jar:3.3.1 in central (https://repo.maven.apache.org/maven2) -> [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/DependencyResolutionException
The command '/bin/sh -c mvn clean install -DskipTests=true' returned a non-zero code: 1
Immortalem commented 4 years ago

Yes the Dockerfile will be updated in the future to avoid this problem. For now you can add --branch 3.3.1 to the git clone command for the TLS-Attacker.