The BIM.works Java packages can be installed by using a private maven repository.
The current version of the BIM.works Java SDK requires Java 17 or higher and has been tested up until Java 24.
Because this is a private repository, you need to set your credentials in your maven configuration file. This file can usually be found in ~/.m2/settings.xml.
<aside> 💡 Please refer to you company’s Portal, or email [email protected] to get your credentials
</aside>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>BIM.works</id>
<username>[YOUR USERNAME]</username>
<password>[YOUR PASSWORD]</password>
</server>
</servers>
<settings>
This is a minimal example of a pom.xml file.
<aside> 💡
A shaded version is also available → Shaded version
</aside>
<dependencies>
<dependency>
<groupId>nl.bimbase.bimworks</groupId>
<artifactId>client</artifactId>
<version>1.4.0</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>BIM.works</id>
<url>https://maven.bim.works/artifactory/BIM.works</url>
</repository>
</repositories>
Only the top-level dependencies are listed here. Any other dependency is a dependency of a top-level dependency. The shaded column indicates whether this dependency is shaded in the shaded build (see below). Renamed indicates whether package name are renamed in the shaded version. Renaming of packages simply prefixes nl.bimbase.bimworks to make the package names unique in order to avoid conflicts.
| GroupId | ArtifactId | Used for | Shaded | Renamed |
|---|---|---|---|---|
com.github.luben |
zstd-jni |
Zstd data compression | Yes | No |
com.aayushatharva.brotli4j |
* | Brotli data compression | Yes | Yes |
org.lz4 |
lz4-java |
LZ4 compression and XXH64 hashing | Yes | Yes |
com.github.RoaringBitmap.RoaringBitmap |
roaringbitmap |
Efficient bitsets | Yes | Yes |
me.lemire.integercompression |
JavaFastPFOR |
Integer compression | Yes | Yes |
org.eclipse.collections |
eclipse-collections |
Generic collection library | Yes | Yes |
com.google.guava |
guava |
Generic utility library | Yes | Yes |
com.fasterxml.jackson |
* | Jackson libraries for JSON, XML, YAML, CBOR | No | - |
org.eclipse.jetty |
* | Jetty client tools for HTTP and WebSocketc communication | Yes | Yes |
org.javassist |
javassist |
Reflection | Yes | Yes |
jakarta.xml.bind |
jakarta.xml.bind-api |
XML serialization/deserialization | Yes | No |
org.glassfish.jaxb |
* | JAXB for XML serialization/deserialization | Yes | No |
org.slf4j |
slf4j-api |
Logging | No | - |
org.slf4j |
jul-to-slf4j |
Logging | Yes | Yes |
javax.activation |
activation |
Yes | No | |
commons-codec |
commons-codec |
Codecs | Yes | Yes |
commons-compress |
commons-compress |
Compression | Yes | Yes |
commons-io |
commons-io |
IO | Yes | Yes |
commons-lang3 |
commons-lang3 |
Language features | Yes | Yes |
org.apache.httpcomponents.client5 |
httpcore5 |
HTTP Client | Yes | Yes |
<aside> 💡
The shaded version is relatively new (April 2025), please let us know when there are issues
</aside>
To minimize chances of dependency conflicts between the dependencies of the BIM.works Java Client and your application’s dependencies a shaded version of the client is built as well. Note the alternative artifactId.
<dependencies>
<dependency>
<groupId>nl.bimbase.bimworks</groupId>
<artifactId>clientshaded</artifactId>
<version>1.4.1-b64</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>BIM.works</id>
<url>https://maven.bim.works/artifactory/BIM.works</url>
</repository>
</repositories>
Most package are shaded, but some are intentionally not:
| GroupId | Reason |
|---|---|
com.fasterxml.jackson |
Many SDK methods accept or return Jackson JSON objects. Your application most probably also uses Jackson and shading would result in duplicate but incompatible instances of all Jackson classes. In case your application uses a higher version of Jackson than the client does, you can exclude it on the client dependency. |
org.slf4j:slf4j-api |
To avoid having multiple instances of this interface it is not shaded. Also this allows the SDK to log messages that your implementation of the SLF4J interface can then handle. |