hawkular-btm-tests-containers-wildfly
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-tests-containers-wildfly</artifactId> <version>0.8.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.btm</groupId> <artifactId>hawkular-btm</artifactId> <version>0.8.0.Final</version> <relativePath>../../../pom.xml</relativePath> </parent> <artifactId>hawkular-btm-tests-containers-wildfly</artifactId> <packaging>jar</packaging> <name>Hawkular BTM::Tests::Containers::Wildfly</name> <properties> <hawkular.host>127.0.0.1</hawkular.host> <hawkular.port>8180</hawkular.port> <test.port>8080</test.port> <hawkular.uri>http://${hawkular.host}:${hawkular.port}</hawkular.uri> <test.uri>http://${hawkular.host}:${test.port}</test.uri> <hawkular-btm.path>/hawkular/btm/</hawkular-btm.path> <hawkular-btm.uri>${hawkular.uri}${hawkular-btm.path}</hawkular-btm.uri> <!-- IMPORTANT: The port must be the port offset + 8080. --> <wildfly.port.offset>1897</wildfly.port.offset> <!-- IMPORTANT: The management port must be the port offset + 9990. --> <wildfly.management.port>11887</wildfly.management.port> <hawkular.home>${project.build.directory}/wildfly-${version.org.wildfly}</hawkular.home> <hawkular.configuration>${hawkular.home}/standalone/configuration</hawkular.configuration> <hawkular.data>${hawkular.home}/standalone/data</hawkular.data> <hawkular.deployments>${hawkular.home}/standalone/deployments</hawkular.deployments> <hawkular.lib>${hawkular.home}/standalone/lib</hawkular.lib> <server.config>standalone.xml</server.config> <hawkular-btm.lib>${project.build.directory}/lib</hawkular-btm.lib> <hawkular-btm.instrumentation>${project.build.directory}/btmconfig</hawkular-btm.instrumentation> </properties> <dependencies> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-api</artifactId> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-btxn-service-rest-client</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-instrumenter</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-tests-common</artifactId> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-tests-server-mock</artifactId> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-agent-rest</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-btxn-instrumentation</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.wildfly</groupId> <artifactId>wildfly-dist</artifactId> <version>${version.org.wildfly}</version> <type>zip</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-example-servlet-rest-tomcat</artifactId> <type>war</type> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-example-cxf-tomcat</artifactId> <type>war</type> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.byteman</groupId> <artifactId>byteman</artifactId> <scope>test</scope> </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>io.undertow</groupId> <artifactId>undertow-core</artifactId> </dependency> <dependency> <groupId>org.jboss.logging</groupId> <artifactId>jboss-logging</artifactId> <scope>runtime</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> <groupId>com.mycila</groupId> <artifactId>license-maven-plugin</artifactId> <configuration> <excludes combine.children="append"> <exclude>**/*.data</exclude> <exclude>**/*.btm</exclude> </excludes> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>get-client-all</id> <phase>pre-integration-test</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-agent-rest</artifactId> <overWrite>true</overWrite> <outputDirectory>${hawkular-btm.lib}</outputDirectory> <destFileName>hawkular-btm-agent-rest.jar</destFileName> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>unpack</id> <phase>pre-integration-test</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.hawkular.btm</groupId> <artifactId>hawkular-btm-btxn-instrumentation</artifactId> </artifactItem> </artifactItems> <outputDirectory>${project.build.directory}</outputDirectory> </configuration> </execution> <execution> <id>unpack-hawkular</id> <phase>pre-integration-test</phase> <goals> <goal>unpack-dependencies</goal> </goals> <configuration> <includeGroupIds>org.wildfly</includeGroupIds> <includeArtifactIds>wildfly-dist</includeArtifactIds> <outputDirectory> ${project.build.directory} </outputDirectory> </configuration> </execution> <execution> <id>update-hawkular-btm</id> <phase>pre-integration-test</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.apache.camel</groupId> <artifactId>camel-example-servlet-rest-tomcat</artifactId> <type>war</type> <overWrite>true</overWrite> <outputDirectory>${hawkular.deployments}</outputDirectory> <destFileName>camel-example-servlet-rest-tomcat.war</destFileName> </artifactItem> <artifactItem> <groupId>org.apache.camel</groupId> <artifactId>camel-example-cxf-tomcat</artifactId> <type>war</type> <overWrite>true</overWrite> <outputDirectory>${hawkular.deployments}</outputDirectory> <destFileName>camel-example-cxftomcat.war</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>pre-integration-test</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${project.build.directory}</outputDirectory> <resources> <resource> <directory>src/test/resources/instrumentation</directory> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <configuration> <systemPropertyVariables> <hawkular.host>${hawkular.host}</hawkular.host> <hawkular.port>${hawkular.port}</hawkular.port> <hawkular.uri>${hawkular.uri}</hawkular.uri> <hawkular-btm.uri>${hawkular-btm.uri}</hawkular-btm.uri> <test.uri>${test.uri}</test.uri> </systemPropertyVariables> </configuration> <executions> <execution> <id>exec-rest-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> <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <configuration> <jboss-home>${hawkular.home}</jboss-home> <javaOpts> <javaOpt>-Djboss.modules.system.pkgs=org.jboss.byteman,org.hawkular.btm.instrumenter,org.hawkular.btm.client.api</javaOpt> </javaOpts> </configuration> <executions> <execution> <id>start-wildfly</id> <phase>pre-integration-test</phase> <goals> <goal>start</goal> </goals> <configuration> <javaOpts> <javaOpt>-Xms64m</javaOpt> <javaOpt>-Xmx512m</javaOpt> <javaOpt>-Xss256k</javaOpt> <javaOpt>-Djava.net.preferIPv4Stack=true</javaOpt> <javaOpt>-Dsun.rmi.dgc.client.gcInterval=3600000</javaOpt> <javaOpt>-Dsun.rmi.dgc.server.gcInterval=3600000</javaOpt> <javaOpt>-Xdebug</javaOpt> <javaOpt>-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787</javaOpt> <javaOpt>-Dkeycloak.import=${hawkular.configuration}/hawkular-realm-for-dev.json</javaOpt> <javaOpt>-javaagent:${hawkular-btm.lib}/hawkular-btm-agent-rest.jar</javaOpt> <javaOpt>-Dhawkular-btm.config=${hawkular-btm.instrumentation}</javaOpt> <javaOpt>-Dhawkular-btm.uri=${hawkular-btm.uri}</javaOpt> <javaOpt>-Dhawkular-btm.username=jdoe</javaOpt> <javaOpt>-Dhawkular-btm.password=password</javaOpt> <javaOpt>-Djboss.modules.system.pkgs=org.jboss.byteman,org.hawkular.btm.instrumenter,org.hawkular.btm.client.api</javaOpt> <javaOpt>-Dhawkular-btm.log.level=INFO</javaOpt> </javaOpts> <startup-timeout>180</startup-timeout> </configuration> </execution> <execution> <id>stop-wildfly</id> <phase>post-integration-test</phase> <goals> <goal>shutdown</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>