hawkular-apm-tests-tools-instrumenter
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-tests-tools-instrumenter</artifactId> <version>0.10.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</artifactId> <version>0.10.0.Final</version> <relativePath>../../../pom.xml</relativePath> </parent> <artifactId>hawkular-apm-tests-tools-instrumenter</artifactId> <packaging>jar</packaging> <name>Hawkular APM::Tests::Tools::Instrumenter</name> <properties> <config.path>${project.build.directory}/test-classes/instrumentation/apmconfig/jvm/hawkular-apm-config.json</config.path> <echoapp.jar>${project.build.directory}/hawkular-apm-tests-tools-instrumenter-${project.version}.jar</echoapp.jar> <target.jar>${project.build.directory}/hawkular-apm-tests-tools-instrumenter-${project.version}.jar-instrumented</target.jar> </properties> <dependencies> <dependency> <groupId>org.hawkular.apm</groupId> <artifactId>hawkular-apm-tools-instrumenter</artifactId> </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>org.hawkular.apm</groupId> <artifactId>hawkular-apm-tests-common</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>InstrumentEchoApp</id> <phase>pre-integration-test</phase> <configuration> <target> <property name="runtime_classpath" refid="maven.runtime.classpath" /> <echo message="EchoApp jar = ${echoapp.jar}" /> <java classname="org.hawkular.apm.tools.instrumenter.InstrumenterUtil" fork="true"> <classpath> <pathelement path="${project.build.outputDirectory}" /> <pathelement path="${runtime_classpath}" /> </classpath> <jvmarg value="-Dorg.jboss.byteman.verbose" /> <arg value="${echoapp.jar}" /> <arg value="${config.path}" /> <arg value="${target.jar}" /> </java> <delete file="${echoapp.jar}" /> <move file="${target.jar}" tofile="${echoapp.jar}" /> </target> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <id>exec-standalone-tests</id> <goals> <goal>integration-test</goal> </goals> <configuration> <includes> <include>**/*Test.java</include> </includes> </configuration> </execution> <execution> <id>final-verify</id> <goals> <goal>verify</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>