pom.xml 7.1 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 -->
浅梦2013's avatar
浅梦2013 已提交
16
        <revision>1.0.1</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.3.v20210706-RELEASE</tio.version>
如梦技术's avatar
如梦技术 已提交
23 24 25 26 27
    </properties>

    <modules>
        <module>mica-mqtt-codec</module>
        <module>mica-mqtt-core</module>
28
        <module>mica-mqtt-websocket</module>
29
        <module>mica-mqtt-spring-boot-starter</module>
如梦技术's avatar
如梦技术 已提交
30
        <module>mica-mqtt-example</module>
31
        <module>mica-mqtt-spring-boot-example</module>
如梦技术's avatar
如梦技术 已提交
32 33 34 35 36 37 38 39 40
    </modules>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-core</artifactId>
                <version>${tio.version}</version>
            </dependency>
41 42 43 44 45
            <dependency>
                <groupId>org.t-io</groupId>
                <artifactId>tio-websocket-server</artifactId>
                <version>${tio.version}</version>
            </dependency>
如梦技术's avatar
如梦技术 已提交
46 47 48
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-codec</artifactId>
如梦技术's avatar
如梦技术 已提交
49
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
50 51 52 53
            </dependency>
            <dependency>
                <groupId>net.dreamlu</groupId>
                <artifactId>mica-mqtt-core</artifactId>
如梦技术's avatar
如梦技术 已提交
54
                <version>${revision}</version>
如梦技术's avatar
如梦技术 已提交
55 56 57 58
            </dependency>
        </dependencies>
    </dependencyManagement>

如梦技术's avatar
如梦技术 已提交
59 60 61 62 63 64 65 66
    <developers>
        <developer>
            <name>ChunmengLu</name>
            <email>qq596392912@gmail.com</email>
        </developer>
    </developers>

    <scm>
如梦技术's avatar
如梦技术 已提交
67 68 69
        <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
如梦技术 已提交
70 71 72 73 74 75 76 77 78 79 80
    </scm>

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

如梦技术's avatar
如梦技术 已提交
81 82 83 84 85 86 87 88 89 90 91 92
    <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
如梦技术 已提交
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121
            <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
如梦技术 已提交
122 123 124
        </plugins>
    </build>

如梦技术's avatar
如梦技术 已提交
125 126 127 128 129 130
    <licenses>
        <license>
            <name>Apache License 2.0</name>
            <url>http://www.apache.org/licenses</url>
        </license>
    </licenses>
如梦技术's avatar
如梦技术 已提交
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 156 157 158 159 160 161 162 163 164 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

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