Skip to content

Commit

Permalink
feat: init mtconnect modules
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 4, 2024
1 parent e38882e commit 26bf8ca
Show file tree
Hide file tree
Showing 15 changed files with 168 additions and 0 deletions.
14 changes: 14 additions & 0 deletions mtconnect-client-api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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-client-api</artifactId>

</project>
22 changes: 22 additions & 0 deletions mtconnect-client-reactive/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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-client-reactive</artifactId>

<dependencies>
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
<version>${reactor-netty.version}</version>
</dependency>
</dependencies>

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

public class ReactiveMtConnectClient {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.mtconnect.client.reactive;
27 changes: 27 additions & 0 deletions mtconnect-client-vertx/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-client-vertx</artifactId>

<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-web-client</artifactId>
<version>${vertx.version}</version>
</dependency>
</dependencies>

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

import io.vertx.core.Vertx;

public class MtConnectClient {
private final Vertx vertx;

public MtConnectClient() {
this.vertx = Vertx.vertx();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.mtconnect.client.vertx;
14 changes: 14 additions & 0 deletions mtconnect-server-api/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?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-server-api</artifactId>

</project>
22 changes: 22 additions & 0 deletions mtconnect-server-reactive/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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-server-reactive</artifactId>

<dependencies>
<dependency>
<groupId>io.projectreactor.netty</groupId>
<artifactId>reactor-netty-http</artifactId>
<version>${reactor-netty.version}</version>
</dependency>
</dependencies>

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

public class ReactiveMtConnectServer {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.mtconnect.server.reactive;
27 changes: 27 additions & 0 deletions mtconnect-server-vertx/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-server-vertx</artifactId>

Check warning on line 12 in mtconnect-server-vertx/pom.xml

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".

<dependencies>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-core</artifactId>
<version>${vertx.version}</version>
</dependency>
<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-web</artifactId>
<version>${vertx.version}</version>
</dependency>
</dependencies>

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

Check warning on line 1 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".

import io.vertx.core.Vertx;

Check warning on line 3 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".

Check warning on line 3 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"Vertx" should be "Vertex".

public class MtConnectServer {
private final Vertx vertx;

Check warning on line 6 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"Vertx" should be "Vertex".

Check warning on line 6 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".

public MtConnectServer() {
this.vertx = Vertx.vertx();

Check warning on line 9 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".

Check warning on line 9 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"Vertx" should be "Vertex".

Check warning on line 9 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/MtConnectServer.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package io.github.protocol.mtconnect.server.vertx;

Check warning on line 1 in mtconnect-server-vertx/src/main/java/io/github/protocol/mtconnect/server/vertx/package-info.java

View workflow job for this annotation

GitHub Actions / typo check

"vertx" should be "vertex".
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
<packaging>pom</packaging>

<modules>
<module>mtconnect-client-api</module>
<module>mtconnect-client-reactive</module>
<module>mtconnect-client-vertx</module>
<module>mtconnect-server-api</module>
<module>mtconnect-server-reactive</module>
<module>mtconnect-server-vertx</module>
</modules>

<properties>
Expand All @@ -21,7 +27,9 @@
<junit.version>5.11.0</junit.version>
<log4j.version>2.20.0</log4j.version>
<lombok.version>1.18.34</lombok.version>
<reactor-netty.version>1.1.22</reactor-netty.version>
<slf4j.version>2.0.16</slf4j.version>
<vertx.version>4.5.9</vertx.version>
<!-- plugin -->
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
Expand Down

0 comments on commit 26bf8ca

Please sign in to comment.