topstack-sdk
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.iotopo.topstack</groupId> <artifactId>topstack-sdk</artifactId> <version>1.0.1</version> </dependency>
<?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> <groupId>com.iotopo.topstack</groupId> <artifactId>topstack-sdk</artifactId> <version>1.0.1</version> <packaging>jar</packaging> <name>TopStack SDK Java</name> <description>TopStack SDK for Java - A comprehensive SDK for IoT, EMS, Alert, and Asset management</description> <url>https://github.com/iotopo/topstack-sdk-java</url> <!-- SCM 配置 --> <scm> <connection>scm:git:git://github.com/iotopo/topstack-sdk-java.git</connection> <developerConnection>scm:git:ssh://github.com:iotopo/topstack-sdk-java.git</developerConnection> <url>https://github.com/iotopo/topstack-sdk-java/tree/main</url> <tag>HEAD</tag> </scm> <!-- 开发者信息 --> <developers> <developer> <id>iotopo</id> <name>IoTopo Team</name> <email>dev@iotopo.com</email> <organization>IoTopo</organization> <organizationUrl>https://www.iotopo.com</organizationUrl> </developer> </developers> <!-- 许可证 --> <licenses> <license> <name>MIT License</name> <url>https://opensource.org/licenses/MIT</url> <distribution>repo</distribution> </license> </licenses> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> </properties> <dependencies> <!-- HTTP 客户端 --> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>okhttp</artifactId> <version>4.12.0</version> </dependency> <!-- JSON 处理 --> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.15.3</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jsr310</artifactId> <version>2.15.3</version> </dependency> <!-- 日志 --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>2.0.9</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>2.0.9</version> <optional>true</optional> </dependency> <!-- 测试依赖 --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.13.2</version> <scope>test</scope> </dependency> <!-- NATS 客户端 --> <dependency> <groupId>io.nats</groupId> <artifactId>jnats</artifactId> <version>2.17.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.11.0</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.5.0</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <doclint>none</doclint> <encoding>UTF-8</encoding> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> <failOnError>false</failOnError> <quiet>true</quiet> <additionalJOption>--no-module-directories</additionalJOption> <source>8</source> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.1.0</version> <configuration> <mainClass>com.iotopo.topstack.example.CompleteExample</mainClass> <cleanupDaemonThreads>false</cleanupDaemonThreads> <arguments> <argument>-Djava.util.concurrent.ForkJoinPool.common.threadFactory=java.util.concurrent.Executors.defaultThreadFactory</argument> <argument>-Dorg.slf4j.simpleLogger.defaultLogLevel=info</argument> <argument>-Dorg.slf4j.simpleLogger.showDateTime=true</argument> <argument>-Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS</argument> </arguments> </configuration> <executions> <execution> <id>run-nats-example</id> <phase>none</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.iotopo.topstack.example.NatsExample</mainClass> <cleanupDaemonThreads>false</cleanupDaemonThreads> <arguments> <argument>-Dorg.slf4j.simpleLogger.defaultLogLevel=info</argument> <argument>-Dorg.slf4j.simpleLogger.showDateTime=true</argument> <argument>-Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS</argument> </arguments> </configuration> </execution> <execution> <id>run-complete-example</id> <phase>none</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.iotopo.topstack.example.CompleteExample</mainClass> <cleanupDaemonThreads>false</cleanupDaemonThreads> <arguments> <argument>-Dorg.slf4j.simpleLogger.defaultLogLevel=info</argument> <argument>-Dorg.slf4j.simpleLogger.showDateTime=true</argument> <argument>-Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS</argument> </arguments> </configuration> </execution> <execution> <id>run-iot-example</id> <phase>none</phase> <goals> <goal>java</goal> </goals> <configuration> <mainClass>com.iotopo.topstack.example.IotExample</mainClass> <cleanupDaemonThreads>false</cleanupDaemonThreads> <arguments> <argument>-Dorg.slf4j.simpleLogger.defaultLogLevel=info</argument> <argument>-Dorg.slf4j.simpleLogger.showDateTime=true</argument> <argument>-Dorg.slf4j.simpleLogger.dateTimeFormat=yyyy-MM-dd HH:mm:ss.SSS</argument> </arguments> </configuration> </execution> </executions> </plugin> <!-- GPG 签名插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>0.8.0</version> <extensions>true</extensions> <configuration> <publishingServerId>central</publishingServerId> <autoPublish>false</autoPublish> </configuration> </plugin> </plugins> </build> </project>