pom.xml 9.4 KB
Newer Older
如梦技术's avatar
如梦技术 已提交
1 2 3 4 5 6
<?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>net.dreamlu</groupId>
    <artifactId>mica-mqtt</artifactId>
如梦技术's avatar
如梦技术 已提交
7
    <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
8 9 10 11
    <packaging>pom</packaging>

    <name>${project.artifactId}</name>
    <description>Mica mqtt tools.</description>
如梦技术's avatar
如梦技术 已提交
12
    <url>https://www.dreamlu.net</url>
如梦技术's avatar
如梦技术 已提交
13

如梦技术's avatar
如梦技术 已提交
14
    <properties>
如梦技术's avatar
如梦技术 已提交
15
        <!-- mica-mqtt version -->
如梦技术's avatar
如梦技术 已提交
16
        <revision>1.3.0-SNAPSHOT</revision>
如梦技术's avatar
如梦技术 已提交
17
        <!-- java version -->
如梦技术's avatar
如梦技术 已提交
18 19
        <java.version>1.8</java.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
如梦技术's avatar
如梦技术 已提交
20 21
        <maven-flatten.version>1.2.2</maven-flatten.version>
        <!-- tio version -->
如梦技术's avatar
如梦技术 已提交
22
        <tio.version>3.7.5.v20211028-RELEASE</tio.version>
如梦技术's avatar
如梦技术 已提交
23 24
        <spring.boot.version>2.6.6</spring.boot.version>
        <mica.version>2.6.6</mica.version>
如梦技术's avatar
如梦技术 已提交
25
        <fastjson.version>1.2.80</fastjson.version>
如梦技术's avatar
如梦技术 已提交
26 27 28 29
    </properties>

    <modules>
        <module>mica-mqtt-codec</module>
30
        <module>mica-mqtt-model</module>
如梦技术's avatar
如梦技术 已提交
31
        <module>mica-mqtt-core</module>
32
        <module>mica-mqtt-broker</module>
33 34 35 36 37
        <module>starter/mica-mqtt-client-spring-boot-starter</module>
        <module>starter/mica-mqtt-server-spring-boot-starter</module>
        <module>example/mica-mqtt-example</module>
        <module>example/mica-mqtt-client-spring-boot-example</module>
        <module>example/mica-mqtt-server-spring-boot-example</module>
如梦技术's avatar
如梦技术 已提交
38 39 40 41 42 43 44 45
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-core</artifactId>
                <version>${tio.version}</version>
46 47 48 49 50 51
                <exclusions>
                    <exclusion>
                        <groupId>com.alibaba</groupId>
                        <artifactId>fastjson</artifactId>
                    </exclusion>
                </exclusions>
如梦技术's avatar
如梦技术 已提交
52
            </dependency>
53 54 55 56
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-websocket-server</artifactId>
                <version>${tio.version}</version>
57 58 59 60 61 62 63 64 65 66 67 68 69 70
                <exclusions>
                    <exclusion>
                        <groupId>com.thoughtworks.paranamer</groupId>
                        <artifactId>paranamer</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>com.esotericsoftware</groupId>
                        <artifactId>reflectasm</artifactId>
                    </exclusion>
                    <exclusion>
                        <groupId>commons-io</groupId>
                        <artifactId>commons-io</artifactId>
                    </exclusion>
                </exclusions>
71
            </dependency>
如梦技术's avatar
如梦技术 已提交
72 73 74 75 76
            <dependency>
                <groupId>com.alibaba</groupId>
                <artifactId>fastjson</artifactId>
                <version>${fastjson.version}</version>
            </dependency>
如梦技术's avatar
如梦技术 已提交
77 78 79
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-codec</artifactId>
如梦技术's avatar
如梦技术 已提交
80
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
81
            </dependency>
82 83 84 85 86
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-model</artifactId>
                <version>${revision}</version>
            </dependency>
如梦技术's avatar
如梦技术 已提交
87 88 89
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-core</artifactId>
如梦技术's avatar
如梦技术 已提交
90
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
91
            </dependency>
浅梦2013's avatar
浅梦2013 已提交
92 93
            <dependency>
                <groupId>net.dreamlu</groupId>
94 95 96 97 98 99
                <artifactId>mica-mqtt-server-spring-boot-starter</artifactId>
                <version>${revision}</version>
            </dependency>
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-client-spring-boot-starter</artifactId>
浅梦2013's avatar
浅梦2013 已提交
100 101
                <version>${revision}</version>
            </dependency>
102 103 104 105 106 107
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.13.2</version>
                <scope>test</scope>
            </dependency>
如梦技术's avatar
如梦技术 已提交
108 109 110
        </dependencies>
    </dependencyManagement>

如梦技术's avatar
如梦技术 已提交
111 112 113 114 115 116 117 118
    <developers>
        <developer>
            <name>ChunmengLu</name>
            <email>qq596392912@gmail.com</email>
        </developer>
    </developers>

    <scm>
如梦技术's avatar
如梦技术 已提交
119 120 121
        <connection>scm:git:git@gitee.com/596392912/mica-mqtt</connection>
        <developerConnection>scm:git:git@gitee.com/596392912/mica-mqtt.git</developerConnection>
        <url>git@gitee.com/596392912/mica-mqtt.git</url>
如梦技术's avatar
如梦技术 已提交
122 123 124 125 126 127 128 129 130 131 132
    </scm>

    <repositories>
        <!--阿里云主仓库,代理了 maven central 和 jcenter 仓库-->
        <repository>
            <id>aliyun</id>
            <name>aliyun</name>
            <url>https://maven.aliyun.com/repository/public</url>
        </repository>
    </repositories>

如梦技术's avatar
如梦技术 已提交
133 134 135 136 137 138 139 140 141 142 143 144
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>${java.version}</source>
                    <target>${java.version}</target>
                    <encoding>${project.build.sourceEncoding}</encoding>
                </configuration>
            </plugin>
如梦技术's avatar
如梦技术 已提交
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
            <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>
如梦技术's avatar
如梦技术 已提交
174 175 176
        </plugins>
    </build>

如梦技术's avatar
如梦技术 已提交
177 178 179
    <licenses>
        <license>
            <name>Apache License 2.0</name>
浅梦2013's avatar
浅梦2013 已提交
180
            <url>https://www.apache.org/licenses</url>
如梦技术's avatar
如梦技术 已提交
181 182
        </license>
    </licenses>
如梦技术's avatar
如梦技术 已提交
183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <!-- Source -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-source-plugin</artifactId>
                        <version>3.2.0</version>
                        <executions>
                            <execution>
                                <phase>package</phase>
                                <goals>
                                    <goal>jar-no-fork</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <!-- Javadoc -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-javadoc-plugin</artifactId>
                        <version>3.2.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>1.6</version>
                        <executions>
                            <execution>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <distributionManagement>
                <snapshotRepository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
                </snapshotRepository>
                <repository>
                    <id>oss</id>
                    <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
                </repository>
            </distributionManagement>
        </profile>
    </profiles>

如梦技术's avatar
如梦技术 已提交
246
</project>