Cannot resolve com.google.caliper.BeforeExperiment

I git clone souce code with code.google.com when I install the guava-tests module test as the source maven root, but also an error how to solve it? see image
follow Frank's advice. I turn to the bechmark, which was selected as the "root of the test source"
but the idea of โ€‹โ€‹Dislplay cannot resolve the BeforeExperiment character, but my .m2 / repository has jar.see the first screenshot . enter image description hereenter image description hereenter image description here

when i exec, the result below, it is empty.

caliper jar tf 1.0-beta-1/caliper-1.0-beta-1.jar|grep -E com.google.caliper.BeforeExperiment |sort caliper jar tf 0.5-rc1/caliper-0.5-rc1.jar|grep -E com.google.caliper.BeforeExperiment |sort caliper jar tf 1.0-beta-1/caliper-1.0-beta-1.jar|grep -E com.google.caliper.BeforeExperiment |sort 
+4
source share
2 answers

Currently, the guava-tests/benchmark directory is not set as the source root in the Maven configuration because it will not be created. However, we just need to push the new version of Caliper towards Maven Central, which includes new annotations, etc., and I think this should happen soon.

+4
source

There is no public version of Caliper containing the com.google.caliper.BeforeExperiment class.

You can compare the result of the following class searches on search.maven.org for yourself:

You can also check that in your bank:

 $ jar tf ~/.m2/repository/com/google/caliper/caliper/0.5-rc1/caliper-0.5-rc1.jar | \ grep -E com.google.caliper.B | sort com/google/caliper/Benchmark.class $ 

Or using the most recent โ€œreleaseโ€ caliper:

 $ jar tf caliper-1.0-beta-1.jar | grep -E com.google.caliper.B | sort com/google/caliper/Benchmark.class $ 
+1
source

Source: https://habr.com/ru/post/1497785/


All Articles