pom.xml 9.8 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</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
        <mica.auto.version>2.2.2</mica.auto.version>
如梦技术's avatar
如梦技术 已提交
26
        <fastjson.version>1.2.80</fastjson.version>
如梦技术's avatar
如梦技术 已提交
27 28
        <micrometer-core.version>1.8.1</micrometer-core.version>
        <lombok.version>1.18.22</lombok.version>
如梦技术's avatar
如梦技术 已提交
29 30 31 32
    </properties>

    <modules>
        <module>mica-mqtt-codec</module>
33
        <module>mica-mqtt-model</module>
如梦技术's avatar
如梦技术 已提交
34
        <module>mica-mqtt-core</module>
35
        <module>mica-mqtt-broker</module>
36 37 38 39 40
        <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
如梦技术 已提交
41 42 43 44 45 46 47 48
    </modules>

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

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

    <scm>
如梦技术's avatar
如梦技术 已提交
122 123 124
        <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
如梦技术 已提交
125 126 127 128 129 130 131 132 133 134 135
    </scm>

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

如梦技术's avatar
如梦技术 已提交
136 137 138 139 140 141 142 143 144 145 146 147
    <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
如梦技术 已提交
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 174 175 176
            <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
如梦技术 已提交
177 178 179
        </plugins>
    </build>

如梦技术's avatar
如梦技术 已提交
180 181 182
    <licenses>
        <license>
            <name>Apache License 2.0</name>
浅梦2013's avatar
浅梦2013 已提交
183
            <url>https://www.apache.org/licenses</url>
如梦技术's avatar
如梦技术 已提交
184 185
        </license>
    </licenses>
如梦技术's avatar
如梦技术 已提交
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

    <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>
如梦技术's avatar
如梦技术 已提交
233 234 235 236 237 238
                        <configuration>
                            <gpgArguments>
                                <arg>--pinentry-mode</arg>
                                <arg>loopback</arg>
                            </gpgArguments>
                        </configuration>
如梦技术's avatar
如梦技术 已提交
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254
                    </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
如梦技术 已提交
255
</project>