diff --git a/helloworld-rs/pom.xml b/helloworld-rs/pom.xml
index 6d8d58a8bd..91472d51e7 100644
--- a/helloworld-rs/pom.xml
+++ b/helloworld-rs/pom.xml
@@ -13,7 +13,7 @@
Maintain separation between the artifact id and the version to help prevent
merge conflicts between commits changing the GA and those changing the V.
-->
- 8
+ 9
helloworld-rs
@@ -31,6 +31,8 @@
+
+ 17
34.0.0.Final
@@ -92,6 +94,8 @@
+
+ ${project.artifactId}
@@ -115,11 +119,6 @@
${version.server}
-
- ROOT.war
@@ -144,11 +143,6 @@
${version.server}
cloud
-
- ROOT.war
@@ -158,6 +152,17 @@
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+ none
+
+
+
diff --git a/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java b/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java
index b151eaac9b..91eaffafeb 100644
--- a/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java
+++ b/helloworld-rs/src/test/java/org/jboss/as/quickstarts/helloworld/rest/RESTEndPointIT.java
@@ -6,7 +6,6 @@
import jakarta.ws.rs.client.Client;
import jakarta.ws.rs.client.ClientBuilder;
-import jakarta.ws.rs.client.WebTarget;
import jakarta.ws.rs.core.MediaType;
import org.junit.After;
import org.junit.Before;
@@ -21,7 +20,7 @@
*/
public class RESTEndPointIT {
private Client client;
- private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/helloworld-rs";
+ private static final String DEFAULT_SERVER_HOST = "http://localhost:8080";
private static String getServerHost() {
String serverHost = System.getenv("SERVER_HOST");
@@ -46,9 +45,9 @@ public void after() {
@Test
public void testRestEndPoint() {
- WebTarget target = client.target(getServerHost())
- .path("/rest/HelloWorld");
- String responseMessage = target.request(MediaType.TEXT_PLAIN).get(String.class);
+ String responseMessage = client.target(getServerHost())
+ .path("helloworld-rs/rest/HelloWorld")
+ .request(MediaType.TEXT_PLAIN).get(String.class);
assertEquals("Hello World!", responseMessage);
}
}
\ No newline at end of file