hawkular-apm-tests-app-vertx-opentracing
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-tests-app-vertx-opentracing</artifactId> <version>0.12.0.Final</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2015-2016 Red Hat, Inc. and/or its affiliates and other contributors as indicated by the @author tags. 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> <parent> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-tests-parent</artifactId> <version>0.12.0.Final</version> <relativePath>../../pom.xml</relativePath> </parent> <artifactId>hawkular-apm-tests-app-vertx-opentracing</artifactId> <name>Hawkular APM::Tests::App::Vertx Opentracing</name> <properties> <exec.mainClass>org.hawkular.apm.tests.app.vertx.opentracing.OrderManager</exec.mainClass> <version.io.vertx>3.3.3</version.io.vertx> </properties> <dependencies> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-core</artifactId> <version>${version.io.vertx}</version> </dependency> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-web</artifactId> <version>${version.io.vertx}</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> </dependency> <dependency> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-client-opentracing</artifactId> </dependency> <dependency> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-trace-publisher-rest-client</artifactId> </dependency> </dependencies> <build> <!-- You only need the part below if you want to build your application into a fat executable jar. This is a jar that contains all the dependencies required to run it, so you can just run it with java -jar --> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>2.3</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <manifestEntries> <Main-Class>${exec.mainClass}</Main-Class> </manifestEntries> </transformer> <transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer"> <resource>META-INF/services/io.vertx.core.spi.VerticleFactory</resource> </transformer> </transformers> <artifactSet> </artifactSet> <outputFile>${project.build.directory}/${project.artifactId}-fat.jar</outputFile> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>1.4.0</version> <executions> <execution> <!-- run the application using the fat jar --> <id>run-app</id> <goals> <goal>exec</goal> </goals> <configuration> <executable>java</executable> <arguments> <argument>-jar</argument> <argument>target/${project.artifactId}-fat.jar</argument> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>itest</id> <build> <plugins> <plugin> <groupId>com.spotify</groupId> <artifactId>docker-maven-plugin</artifactId> <executions> <execution> <goals> <goal>build</goal> </goals> <phase>install</phase> </execution> </executions> <configuration> <imageName>hawkular/apm-tests-app-vertx-opentracing</imageName> <dockerDirectory>${project.basedir}/docker</dockerDirectory> <resources> <resource> <targetPath>/</targetPath> <directory>${project.build.directory}</directory> <include>${project.artifactId}-fat.jar</include> </resource> </resources> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project>