Skip to content

Commit 8d46a3f

Browse files
committed
Update tracing feature example to use WildFly 28.
add different profiles for wildfly 27
1 parent 5569d15 commit 8d46a3f

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

tracing-example/README.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ To run the example, you can simply run it with WildFly:
77
[source,bash]
88
----
99
$ mvn wildfly:run
10-
1110
----
1211

1312
After server started, we can access the server and get the tracing info:
1413

1514
[source,bash]
1615
----
1716
$ curl -i http://localhost:8080/tracing-example/level
18-
1917
----
2018

2119
And here is the sample output:

tracing-example/pom.xml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,27 @@
3737
<version.org.jboss.resteasy>6.2.3.Final</version.org.jboss.resteasy>
3838
<version.org.jboss.resteasy.extensions>2.0.0.Final</version.org.jboss.resteasy.extensions>
3939
<version.org.junit>5.9.2</version.org.junit>
40-
<version.org.wildfly>27.0.1.Final</version.org.wildfly>
4140
<version.org.wildfly.arquillian>5.0.0.Alpha6</version.org.wildfly.arquillian>
42-
41+
<!-- There is bug in the plugin that prevent from `mvn wildfly:run` currently, please use the command `mvn wildfly:dev` instead. -->
4342
<version.wildfly-maven-plugin>4.1.0.Beta5</version.wildfly-maven-plugin>
44-
43+
<version.org.wildfly>28.0.0.Beta1</version.org.wildfly>
44+
<dep.tracing.scope>provided</dep.tracing.scope>
4545
<!-- Test properties -->
4646
<jboss.home>${project.build.directory}${file.separator}wildfly</jboss.home>
4747
<debug.port>8787</debug.port>
4848
<debugJvmArgs/>
4949
</properties>
5050

51+
<profiles>
52+
<profile>
53+
<id>wildfly27</id>
54+
<properties>
55+
<version.org.wildfly>27.0.1.Final</version.org.wildfly>
56+
<dep.tracing.scope>compile</dep.tracing.scope>
57+
</properties>
58+
</profile>
59+
</profiles>
60+
5161
<dependencyManagement>
5262
<dependencies>
5363
<dependency>
@@ -111,8 +121,8 @@
111121
<groupId>org.jboss.resteasy</groupId>
112122
<artifactId>resteasy-tracing-api</artifactId>
113123
<version>${version.org.jboss.resteasy.extensions}</version>
124+
<scope>${dep.tracing.scope}</scope>
114125
</dependency>
115-
116126
<!-- Test Dependencies -->
117127
<dependency>
118128
<groupId>org.junit.jupiter</groupId>

0 commit comments

Comments
 (0)