Unit of measure API in Java?

JSR-275 was rejected; unit APIs for Java is a set of interfaces, but could not find an open source implementation.

In this post: Which jsr-275 implementation should be used? the project owner mentions that the implementation should be ready by the end of last year on JScience, but found nothing to convert between units of weight or length, and when I looked for JScience at https://maven.java.net/ , I found it, but The JAR was not even in the directory https://maven.java.net/content/repositories/snapshots/org/jscience/jscience/5.0-SNAPSHOT/ , so I had to get it from another place.

Was this project left? And is there currently an implementation for unit conversion in Java and even, possibly, Maven repo?

+7
source share
2 answers

As far as I know, JScience is very lively. The project is currently migrating to Java.net , and the migration is not completed. This is most likely the reason you cannot see JAR snapshot files for 5.0. In fact, the last snapshot was only prepared after resolving the specific configuration issue reported in Java.net JIRA. Maybe you should wait a few days, or maybe send a letter to the project administrator about what the intermediate run should use JScience POM.

+2
source

Unit-API ( unitsofmeasurement.org ) is the successor to JSR-275.

The most active implementation at the moment is Eclipse UOMo

+4
source

All Articles