405 lines
16 KiB
XML
405 lines
16 KiB
XML
<?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>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt</artifactId>
|
||
<version>${revision}</version>
|
||
<packaging>pom</packaging>
|
||
|
||
<name>${project.artifactId}</name>
|
||
<description>Mica mqtt client and server!</description>
|
||
<url>https://mica-mqtt.dreamlu.net</url>
|
||
|
||
<properties>
|
||
<!-- mica-mqtt version -->
|
||
<revision>2.5.9</revision>
|
||
<!-- java version -->
|
||
<java.version>1.8</java.version>
|
||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||
<maven-jar-plugin.version>3.5.0</maven-jar-plugin.version>
|
||
<maven-flatten.version>1.7.3</maven-flatten.version>
|
||
<!-- mica-net version -->
|
||
<mica-net.version>1.2.4</mica-net.version>
|
||
<mica-auto.version>2.3.5</mica-auto.version>
|
||
<spring.boot.version>2.7.18</spring.boot.version>
|
||
<solon.version>3.7.2</solon.version>
|
||
<jfinal.version>5.2.7</jfinal.version>
|
||
<tinylog.version>2.7.0</tinylog.version>
|
||
<snakeyaml.version>2.5</snakeyaml.version>
|
||
</properties>
|
||
|
||
<modules>
|
||
<module>mica-mqtt-codec</module>
|
||
<module>mica-mqtt-common</module>
|
||
<module>mica-mqtt-client</module>
|
||
<module>mica-mqtt-server</module>
|
||
<module>starter</module>
|
||
</modules>
|
||
|
||
<dependencyManagement>
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-dependencies</artifactId>
|
||
<version>${spring.boot.version}</version>
|
||
<type>pom</type>
|
||
<scope>import</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.dreamlu</groupId>
|
||
<artifactId>mica-net-core</artifactId>
|
||
<version>${mica-net.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.dreamlu</groupId>
|
||
<artifactId>mica-net-http</artifactId>
|
||
<version>${mica-net.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>net.dreamlu</groupId>
|
||
<artifactId>mica-auto</artifactId>
|
||
<version>${mica-auto.version}</version>
|
||
<scope>provided</scope>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon</artifactId>
|
||
<version>${solon.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-web</artifactId>
|
||
<version>${solon.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-logging-simple</artifactId>
|
||
<version>${solon.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-scheduling-simple</artifactId>
|
||
<version>${solon.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.noear</groupId>
|
||
<artifactId>solon-cloud-metrics</artifactId>
|
||
<version>${solon.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.jfinal</groupId>
|
||
<artifactId>jfinal</artifactId>
|
||
<version>${jfinal.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-codec</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-common</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-client</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-server</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-server-spring-boot-starter</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-client-spring-boot-starter</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-client-solon-plugin</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.dromara.mica-mqtt</groupId>
|
||
<artifactId>mica-mqtt-server-solon-plugin</artifactId>
|
||
<version>${revision}</version>
|
||
</dependency>
|
||
<!-- tinylog 内存占用更小、性能更好,适合边缘设备 -->
|
||
<dependency>
|
||
<groupId>org.tinylog</groupId>
|
||
<artifactId>slf4j-tinylog</artifactId>
|
||
<version>${tinylog.version}</version>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>org.tinylog</groupId>
|
||
<artifactId>tinylog-impl</artifactId>
|
||
<version>${tinylog.version}</version>
|
||
</dependency>
|
||
<!-- 依赖新版,减少一些安全提示(实际上并未依赖) -->
|
||
<dependency>
|
||
<groupId>org.yaml</groupId>
|
||
<artifactId>snakeyaml</artifactId>
|
||
<version>${snakeyaml.version}</version>
|
||
</dependency>
|
||
</dependencies>
|
||
</dependencyManagement>
|
||
|
||
<developers>
|
||
<developer>
|
||
<name>ChunmengLu</name>
|
||
<email>qq596392912@gmail.com</email>
|
||
</developer>
|
||
</developers>
|
||
|
||
<scm>
|
||
<connection>scm:git:git@gitee.com/dromara/mica-mqtt</connection>
|
||
<developerConnection>scm:git:git@gitee.com/dromara/mica-mqtt.git</developerConnection>
|
||
<url>git@gitee.com/dromara/mica-mqtt.git</url>
|
||
</scm>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-compiler-plugin</artifactId>
|
||
<version>3.14.1</version>
|
||
<configuration>
|
||
<source>${java.version}</source>
|
||
<target>${java.version}</target>
|
||
<encoding>${project.build.sourceEncoding}</encoding>
|
||
<parameters>true</parameters>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- Source -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-source-plugin</artifactId>
|
||
<version>3.4.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>attach-sources</id>
|
||
<phase>verify</phase>
|
||
<goals>
|
||
<goal>jar-no-fork</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- jar -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.codehaus.mojo</groupId>
|
||
<artifactId>flatten-maven-plugin</artifactId>
|
||
<version>${maven-flatten.version}</version>
|
||
<configuration>
|
||
<updatePomFile>true</updatePomFile>
|
||
<flattenMode>oss</flattenMode>
|
||
<pomElements>
|
||
<properties>remove</properties>
|
||
<repositories>remove</repositories>
|
||
</pomElements>
|
||
</configuration>
|
||
<executions>
|
||
<execution>
|
||
<id>flatten</id>
|
||
<phase>process-resources</phase>
|
||
<goals>
|
||
<goal>flatten</goal>
|
||
</goals>
|
||
</execution>
|
||
<execution>
|
||
<id>flatten.clean</id>
|
||
<phase>clean</phase>
|
||
<goals>
|
||
<goal>clean</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
</plugins>
|
||
<pluginManagement>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-jar-plugin</artifactId>
|
||
<version>${maven-jar-plugin.version}</version>
|
||
<configuration>
|
||
<archive>
|
||
<!-- 生成 INDEX.LIST -->
|
||
<index>true</index>
|
||
<!-- MANIFEST.MF 多生成一些描述信息 -->
|
||
<manifest>
|
||
<addBuildEnvironmentEntries>true</addBuildEnvironmentEntries>
|
||
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
|
||
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
||
</manifest>
|
||
<!-- 生成的jar中,不要包含pom.xml和pom.properties这两个文件 -->
|
||
<addMavenDescriptor>false</addMavenDescriptor>
|
||
</archive>
|
||
</configuration>
|
||
</plugin>
|
||
<plugin>
|
||
<groupId>org.moditect</groupId>
|
||
<artifactId>moditect-maven-plugin</artifactId>
|
||
<version>1.3.0</version>
|
||
<executions>
|
||
<execution>
|
||
<id>add-module-info</id>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>add-module-info</goal>
|
||
</goals>
|
||
<configuration>
|
||
<jvmVersion>9</jvmVersion>
|
||
<module>
|
||
<moduleInfoFile>${project.basedir}/src/main/moditect/module-info.java</moduleInfoFile>
|
||
</module>
|
||
<!-- Overwrite the previously generated JAR file, if any -->
|
||
<overwriteExistingFiles>true</overwriteExistingFiles>
|
||
</configuration>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- 发布到中央库 -->
|
||
<plugin>
|
||
<groupId>org.sonatype.central</groupId>
|
||
<artifactId>central-publishing-maven-plugin</artifactId>
|
||
<version>0.9.0</version>
|
||
<extensions>true</extensions>
|
||
<configuration>
|
||
<publishingServerId>central</publishingServerId>
|
||
<autoPublish>true</autoPublish>
|
||
</configuration>
|
||
</plugin>
|
||
</plugins>
|
||
</pluginManagement>
|
||
</build>
|
||
|
||
<licenses>
|
||
<license>
|
||
<name>Apache License 2.0</name>
|
||
<url>https://www.apache.org/licenses</url>
|
||
</license>
|
||
</licenses>
|
||
|
||
<repositories>
|
||
<!-- 拉取快照版本的 mica-net -->
|
||
<repository>
|
||
<name>Central Portal Snapshots</name>
|
||
<id>central-portal-snapshots</id>
|
||
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
||
<releases>
|
||
<enabled>false</enabled>
|
||
</releases>
|
||
<snapshots>
|
||
<enabled>true</enabled>
|
||
</snapshots>
|
||
</repository>
|
||
</repositories>
|
||
|
||
<profiles>
|
||
<profile>
|
||
<id>develop</id>
|
||
<activation>
|
||
<activeByDefault>true</activeByDefault>
|
||
</activation>
|
||
<modules>
|
||
<module>mica-mqtt-common</module>
|
||
<module>mica-mqtt-client</module>
|
||
<module>mica-mqtt-server</module>
|
||
<module>starter</module>
|
||
<module>example</module>
|
||
</modules>
|
||
<repositories>
|
||
<repository>
|
||
<id>aliyun</id>
|
||
<name>aliyun</name>
|
||
<url>https://maven.aliyun.com/repository/public/</url>
|
||
<snapshots>
|
||
<enabled>false</enabled>
|
||
</snapshots>
|
||
<releases>
|
||
<enabled>true</enabled>
|
||
</releases>
|
||
</repository>
|
||
</repositories>
|
||
</profile>
|
||
<profile>
|
||
<id>snapshot</id>
|
||
<distributionManagement>
|
||
<snapshotRepository>
|
||
<id>central</id>
|
||
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
|
||
</snapshotRepository>
|
||
</distributionManagement>
|
||
<build>
|
||
<plugins>
|
||
<!-- 发布到中央库 -->
|
||
<plugin>
|
||
<groupId>org.sonatype.central</groupId>
|
||
<artifactId>central-publishing-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
<profile>
|
||
<id>release</id>
|
||
<build>
|
||
<plugins>
|
||
<!-- Javadoc -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-javadoc-plugin</artifactId>
|
||
<version>3.12.0</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>package</phase>
|
||
<goals>
|
||
<goal>jar</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
</plugin>
|
||
<!-- GPG -->
|
||
<plugin>
|
||
<groupId>org.apache.maven.plugins</groupId>
|
||
<artifactId>maven-gpg-plugin</artifactId>
|
||
<version>3.2.8</version>
|
||
<executions>
|
||
<execution>
|
||
<phase>verify</phase>
|
||
<goals>
|
||
<goal>sign</goal>
|
||
</goals>
|
||
</execution>
|
||
</executions>
|
||
<configuration>
|
||
<gpgArguments>
|
||
<arg>--pinentry-mode</arg>
|
||
<arg>loopback</arg>
|
||
</gpgArguments>
|
||
</configuration>
|
||
</plugin>
|
||
<!-- 发布到中央库 -->
|
||
<plugin>
|
||
<groupId>org.sonatype.central</groupId>
|
||
<artifactId>central-publishing-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</profile>
|
||
</profiles>
|
||
|
||
</project>
|