I'm researching the unit of measure open source library, and the maven dependency I use is:
<dependency>
<groupId>tec.units</groupId>
<artifactId>unit-ri</artifactId>
<version>1.0.2</version>
</dependency>
which implements the JSR-363. When I try to use it as below:
ServiceProvider provider = ServiceProvider.current();
The result is:
Exception in thread "main" java.lang.IllegalStateException: No measurement ServiceProvider found.
Could anybody tell me what is wrong?