I've just downloaded the code and tried to compile it, with the following commands:
wget https://github.com/brianfrankcooper/YCSB/archive/master.zip
unzip master.zip
cd YCSB-master
mvn clean package
And got the following error:
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on project root: Execution validate of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
Providing context:
OS: Ubuntu 16.04
I've just downloaded the code and tried to compile it, with the following commands:
And got the following error:
Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check (validate) on project root: Execution validate of goal org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-checkstyle-plugin:2.16:check: java.lang.NoSuchMethodError: org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
Raw maven output:
I've found this completely unrelated issue that describes a similar error, and I applied the solution pointed out by @jcgay:
Edit
YCSB-master/pom.xml
changing:to:
And voilà, the build process worked.
Now, is it an issue that should be fixed on
pom.xml
or I just made a big mess and simply did't get it?