Step 1. Add the JitPack repository to your build file
Add it in your root settings.gradle at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
Add it in your settings.gradle.kts at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
}
}
Add to pom.xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
Add it in your build.sbt at the end of resolvers:
resolvers += "jitpack" at "https://jitpack.io"
Add it in your project.clj at the end of repositories:
:repositories [["jitpack" "https://jitpack.io"]]
Step 2. Add the dependency
dependencies {
implementation 'com.github.eclipse:milo:0.6.15'
}
dependencies {
implementation("com.github.eclipse:milo:0.6.15")
}
<dependency>
<groupId>com.github.eclipse</groupId>
<artifactId>milo</artifactId>
<version>0.6.15</version>
</dependency>
libraryDependencies += "com.github.eclipse" % "milo" % "0.6.15"
:dependencies [[com.github.eclipse/milo "0.6.15"]]
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
Using JDK 17, run mvn clean install
from the project root.
To 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.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.eclipse.milo</groupId>
<artifactId>milo-sdk-server</artifactId>
<version>1.0.0-SNAPSHOT</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
WellKnownRole_AuthenticatedUser
UserA
/ password
SiteA_Read
, SiteA_Write
UserB
/ password
SiteB_Read
, SiteB_Write
SiteAdmin
/ password
SiteA_Read
, SiteB_Read
SecurityAdmin
/ password
WellKnownRole_SecurityAdmin
The code powering the demo server is available here: https://github.com/digitalpetri/opc-ua-demo-server