Milo is an open-source implementation of OPC UA (currently targeting 1.05). It includes a high-performance stack (channels, serialization, data structures, security) as well as client and server SDKs built on top of the stack.
Stack Overflow tag: milo
Mailing list: https://dev.eclipse.org/mailman/listinfo/milo-dev
The repository pins its Java and Maven toolchain with mise:
mise installIf mise reports that the config is not trusted, review .mise.toml and run
mise trust .mise.toml once. After installation, run Maven through mise exec -- so
the pinned Java 17 and Maven versions are used.
Using JDK 17, run this from the project root:
mise exec -- mvn clean installTo maintain compatibility with Java 17 it is recommended that you build using JDK 17, however the library is runtime compatible with versions 17 and later (e.g. JDK 21, JDK 24).
Releases are published to Maven Central and snapshots to Sonatype.
<dependency>
<groupId>org.eclipse.milo</groupId>
<artifactId>milo-sdk-client</artifactId>
<version>1.1.4</version>
</dependency><dependency>
<groupId>org.eclipse.milo</groupId>
<artifactId>milo-sdk-server</artifactId>
<version>1.1.4</version>
</dependency>Referencing a SNAPSHOT release requires the Sonatype snapshot repository be added to your pom file:
<repository>
<id>oss-sonatype</id>
<name>oss-sonatype</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>An internet-facing instance of this demo server is accessible at
opc.tcp://milo.digitalpetri.com:62541/milo.
It accepts both unsecured and secured connections. All incoming client certificates are automatically trusted.
Authenticate anonymously or with one of the following credential pairs:
User/password- roles:
WellKnownRole_AuthenticatedUser
- roles:
UserA/password- roles:
SiteA_Read,SiteA_Write
- roles:
UserB/password- roles:
SiteB_Read,SiteB_Write
- roles:
SiteAdmin/password- roles:
SiteA_Read,SiteB_Read
- roles:
SecurityAdmin/password- roles:
WellKnownRole_SecurityAdmin
- roles:
The code powering the demo server is available here: https://github.com/digitalpetri/opc-ua-demo-server