pom.xml 8.5 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.2.10</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>
23 24
        <spring.boot.version>2.5.8</spring.boot.version>
        <mica.version>2.5.8</mica.version>
25
        <fastjson.version>1.2.78</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-spring-boot-starter</module>
如梦技术's avatar
如梦技术 已提交
33
        <module>mica-mqtt-example</module>
34
        <module>mica-mqtt-spring-boot-example</module>
35
        <module>mica-mqtt-broker</module>
如梦技术's avatar
如梦技术 已提交
36 37 38 39 40 41 42 43 44
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-core</artifactId>
                <version>${tio.version}</version>
            </dependency>
45 46 47 48
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-websocket-server</artifactId>
                <version>${tio.version}</version>
49 50 51 52 53 54 55 56 57 58 59 60 61 62
                <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>
63
            </dependency>
如梦技术's avatar
如梦技术 已提交
64 65 66
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-codec</artifactId>
如梦技术's avatar
如梦技术 已提交
67
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
68
            </dependency>
69 70 71 72 73
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-model</artifactId>
                <version>${revision}</version>
            </dependency>
如梦技术's avatar
如梦技术 已提交
74 75 76
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-core</artifactId>
如梦技术's avatar
如梦技术 已提交
77
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
78
            </dependency>
浅梦2013's avatar
浅梦2013 已提交
79 80 81 82 83
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-spring-boot-starter</artifactId>
                <version>${revision}</version>
            </dependency>
84 85 86 87 88 89
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.13.2</version>
                <scope>test</scope>
            </dependency>
如梦技术's avatar
如梦技术 已提交
90 91 92
        </dependencies>
    </dependencyManagement>

如梦技术's avatar
如梦技术 已提交
93 94 95 96 97 98 99 100
    <developers>
        <developer>
            <name>ChunmengLu</name>
            <email>qq596392912@gmail.com</email>
        </developer>
    </developers>

    <scm>
如梦技术's avatar
如梦技术 已提交
101 102 103
        <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
如梦技术 已提交
104 105 106 107 108 109 110 111 112 113 114
    </scm>

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

如梦技术's avatar
如梦技术 已提交
115 116 117 118 119 120 121 122 123 124 125 126
    <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
如梦技术 已提交
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155
            <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
如梦技术 已提交
156 157 158
        </plugins>
    </build>

如梦技术's avatar
如梦技术 已提交
159 160 161
    <licenses>
        <license>
            <name>Apache License 2.0</name>
浅梦2013's avatar
浅梦2013 已提交
162
            <url>https://www.apache.org/licenses</url>
如梦技术's avatar
如梦技术 已提交
163 164
        </license>
    </licenses>
如梦技术's avatar
如梦技术 已提交
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 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

    <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
如梦技术 已提交
228
</project>