Skip to content

Commit

Permalink
feat: mtconnect add examples module
Browse files Browse the repository at this point in the history
Signed-off-by: ZhangJian He <shoothzj@gmail.com>
  • Loading branch information
shoothzj committed Sep 21, 2024
1 parent 636e0da commit 8545144
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
27 changes: 27 additions & 0 deletions mtconnect-examples/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>mtconnect-parent</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>mtconnect-examples</artifactId>

<dependencies>
<dependency>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>mtconnect-client</artifactId>
<version>${version}</version>
</dependency>
<dependency>
<groupId>io.github.protocol-laboratory</groupId>
<artifactId>mtconnect-server</artifactId>
<version>${version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.github.protocol.mtconnect.examples;

import io.github.protocol.mtconnect.client.MtConnectClient;
import io.github.protocol.mtconnect.client.MtConnectClientConfiguration;

public class MtConnectClientExample {
public static void main(String[] args) {
MtConnectClientConfiguration configuration = new MtConnectClientConfiguration();
MtConnectClient mtConnectClient = new MtConnectClient(configuration);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.github.protocol.mtconnect.examples;

import io.github.protocol.mtconnect.server.MtConnectServer;
import io.github.protocol.mtconnect.server.MtConnectServerConfiguration;

public class MtConnectServerExample {
public static void main(String[] args) {
MtConnectServerConfiguration configuration = new MtConnectServerConfiguration();
MtConnectServer mtConnectServer = new MtConnectServer(configuration);
}
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

<modules>
<module>mtconnect-client</module>
<module>mtconnect-examples</module>
<module>mtconnect-server</module>
</modules>

Expand Down

0 comments on commit 8545144

Please sign in to comment.