archetype-resources.pom.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Copyright 2018-present HiveMQ GmbH ~ ~ Licensed 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>${groupId}</groupId> <artifactId>${artifactId}</artifactId> <version>${version}</version> <description>HiveMQ 4 Hello World Extension - a simple reference for all extension developers</description> <properties> <extension.name>Hello World Extension</extension.name> <extension.author>HiveMQ GmbH</extension.author> <asciidoctor.version>1.5.7.1</asciidoctor.version> <output.dir>${basedir}</output.dir> <source.document.name>README.adoc</source.document.name> </properties> <dependencies> <dependency> <groupId>com.hivemq</groupId> <artifactId>hivemq-extension-sdk</artifactId> <version>4.6.1</version> </dependency> <!-- testing --> <dependency> <groupId>com.hivemq</groupId> <artifactId>hivemq-mqtt-client</artifactId> <version>1.2.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>5.6.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.6.1</version> <scope>test</scope> </dependency> <dependency> <groupId>com.hivemq</groupId> <artifactId>hivemq-testcontainer-junit5</artifactId> <version>1.3.1</version> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.2.3</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>11</source> <target>11</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <excludes> <exclude>com.hivemq:hivemq-extension-sdk</exclude> <exclude>org.slf4j:*</exclude> <exclude>ch.qos.logback:*</exclude> <exclude>javax.servlet:*</exclude> </excludes> </artifactSet> <filters> <filter> <artifact>*:*</artifact> <excludes> <exclude>META-INF/*.SF</exclude> <exclude>META-INF/*.DSA</exclude> <exclude>META-INF/*.RSA</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>assembly</id> <phase>package</phase> <goals> <goal>single</goal> </goals> <configuration> <descriptors> <descriptor>assembly.xml</descriptor> </descriptors> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.asciidoctor</groupId> <artifactId>asciidoctor-maven-plugin</artifactId> <version>${asciidoctor.version}</version> <executions> <execution> <id>output-html</id> <phase>generate-resources</phase> <goals> <goal>process-asciidoc</goal> </goals> <configuration> <backend>html</backend> <doctype>xhtml</doctype> <headerFooter>true</headerFooter> <sourceDirectory>${basedir}</sourceDirectory> <outputDirectory>${output.dir}/target</outputDirectory> <sourceDocumentName>${source.document.name}</sourceDocumentName> <attributes> <icons>font</icons> <toc2/> </attributes> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>RunWithHiveMQ</id> <build> <plugins> <plugin> <groupId>com.hivemq</groupId> <artifactId>hivemq-maven-plugin</artifactId> <version>4.0.3</version> <executions> <execution> <id>hivemq</id> <phase>package</phase> <goals> <goal>hivemq</goal> </goals> <configuration> <hiveMQDir>FIXME, insert your HiveMQ directory here!</hiveMQDir> <debugMode>SERVER</debugMode> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy