| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| <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.apache.rocketmq</groupId> |
| <artifactId>rocketmq-iot-bridge</artifactId> |
| <version>0.0.1-SNAPSHOT</version> |
| <packaging>jar</packaging> |
| <name>rocketmq-iot-bridge ${project.version}</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-all</artifactId> |
| <version>4.1.26.Final</version> |
| </dependency> |
| <dependency> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec-mqtt</artifactId> |
| <version>4.1.26.Final</version> |
| </dependency> |
| <dependency> |
| <groupId>org.eclipse.paho</groupId> |
| <artifactId>org.eclipse.paho.client.mqttv3</artifactId> |
| <version>1.0.2</version> |
| </dependency> |
| <dependency> |
| <groupId>junit</groupId> |
| <artifactId>junit</artifactId> |
| <version>4.12</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.mockito</groupId> |
| <artifactId>mockito-all</artifactId> |
| <version>1.9.5</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.commons</groupId> |
| <artifactId>commons-lang3</artifactId> |
| <version>3.0</version> |
| <scope>test</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.slf4j</groupId> |
| <artifactId>slf4j-api</artifactId> |
| <version>1.7.7</version> |
| </dependency> |
| <dependency> |
| <groupId>ch.qos.logback</groupId> |
| <artifactId>logback-classic</artifactId> |
| <version>1.0.13</version> |
| </dependency> |
| </dependencies> |
| |
| <properties> |
| <maven.compiler.source>1.8</maven.compiler.source> |
| <maven.compiler.target>1.8</maven.compiler.target> |
| </properties> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-dependency-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>copy-dependencies</id> |
| <phase>prepare-package</phase> |
| <goals> |
| <goal>copy-dependencies</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${project.build.directory}/lib</outputDirectory> |
| <overWriteReleases>false</overWriteReleases> |
| <overWriteSnapshots>false</overWriteSnapshots> |
| <overWriteIfNewer>true</overWriteIfNewer> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifest> |
| <addClasspath>true</addClasspath> |
| <classpathPrefix>lib/</classpathPrefix> |
| <mainClass>org.apache.rocketmq.iot.MQTTBridge</mainClass> |
| </manifest> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.rat</groupId> |
| <artifactId>apache-rat-plugin</artifactId> |
| <version>0.12</version> |
| <configuration> |
| <excludes> |
| <exclude>.gitignore</exclude> |
| <exclude>.travis.yml</exclude> |
| <exclude>CONTRIBUTING.md</exclude> |
| <exclude>docs/*.md</exclude> |
| <exclude>.github/**</exclude> |
| <exclude>src/test/resources/certs/*</exclude> |
| <exclude>src/test/**/*.log</exclude> |
| <exclude>src/test/resources/META-INF/service/*</exclude> |
| <exclude>*/target/**</exclude> |
| <exclude>*/*.iml</exclude> |
| <exclude>target/**</exclude> |
| <exclude>**/org/apche/rocketmq.iot.example/**</exclude> |
| </excludes> |
| </configuration> |
| </plugin> |
| <plugin> |
| <artifactId>maven-checkstyle-plugin</artifactId> |
| <version>2.17</version> |
| <executions> |
| <execution> |
| <id>verify</id> |
| <phase>verify</phase> |
| <configuration> |
| <configLocation>style/rmq_checkstyle.xml</configLocation> |
| <encoding>UTF-8</encoding> |
| <consoleOutput>true</consoleOutput> |
| <failsOnError>true</failsOnError> |
| <includeTestSourceDirectory>false</includeTestSourceDirectory> |
| <excludes> |
| <exclude>**/org/apache/rocketmq/iot/example/**</exclude> |
| </excludes> |
| </configuration> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.jacoco</groupId> |
| <artifactId>jacoco-maven-plugin</artifactId> |
| <version>0.8.2</version> |
| <configuration> |
| <destFile>${basedir}/target/coverage-reports/jacoco-unit.exec</destFile> |
| <dataFile>${basedir}/target/coverage-reports/jacoco-unit.exec</dataFile> |
| <excludes> |
| <exclude>**/org/apache/rocketmq/iot/example/**/*</exclude> |
| <exclude>**/org/apache/rocketmq/iot/common/util/**/*</exclude> |
| <exclude>**/org/apache/rocketmq/iot/common/data/**/*</exclude> |
| <exclude>**/org/apache/rocketmq/iot/common/configuration/**/*</exclude> |
| <exclude>**/org/apache/rocketmq/iot/protocol/mqtt/constant/**/*</exclude> |
| </excludes> |
| </configuration> |
| <executions> |
| <execution> |
| <id>jacoco-initialize</id> |
| <goals> |
| <goal>prepare-agent</goal> |
| </goals> |
| </execution> |
| <execution> |
| <id>check</id> |
| <goals> |
| <goal>check</goal> |
| </goals> |
| <configuration> |
| <rules> |
| <rule> |
| <element>BUNDLE</element> |
| <limits> |
| <limit> |
| <counter>INSTRUCTION</counter> |
| <value>COVEREDRATIO</value> |
| <minimum>0.80</minimum> |
| </limit> |
| <limit> |
| <counter>BRANCH</counter> |
| <value>COVEREDRATIO</value> |
| <minimum>1.0</minimum> |
| </limit> |
| </limits> |
| </rule> |
| </rules> |
| </configuration> |
| </execution> |
| <execution> |
| <id>jacoco-site</id> |
| <phase>package</phase> |
| <goals> |
| <goal>report</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |