This is an automated email from the ASF dual-hosted git repository.

remm pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/tomcat-maven-plugin.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 54c28e6  Check response bodies
54c28e6 is described below

commit 54c28e6c2387aedb3846049d9fb2fe7d574f331d
Author: remm <[email protected]>
AuthorDate: Fri Apr 10 07:49:22 2026 +0200

    Check response bodies
---
 .../tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git 
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
 
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
index 24adb45..08a099f 100644
--- 
a/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
+++ 
b/src/main/java/org/apache/tomcat/maven/plugin/tomcat/deploy/AbstractDeployMojo.java
@@ -174,7 +174,9 @@ public abstract class AbstractDeployMojo
         getLog().info( messagesProvider.getMessage( 
"AbstractDeployMojo.deployingWar", getDeployedURL() ) );
 
         URL warURL = getWarFile().toURL();
-        log( getManager().deploy( getPath(), warURL, isUpdate(), getTag() 
).getHttpResponseBody() );
+        TomcatManagerResponse tomcatResponse = getManager().deploy(getPath(), 
warURL, isUpdate(), getTag());
+        checkTomcatResponse(tomcatResponse);
+        log(tomcatResponse.getHttpResponseBody());
     }
 
     /**
@@ -194,7 +196,9 @@ public abstract class AbstractDeployMojo
         getLog().info( messagesProvider.getMessage( 
"AbstractDeployMojo.deployingContext", getDeployedURL() ) );
 
         URL contextURL = getContextFile().toURL();
-        log( getManager().deployContext( getPath(), contextURL, isUpdate(), 
getTag() ).getHttpResponseBody() );
+        TomcatManagerResponse tomcatResponse = getManager().deploy(getPath(), 
contextURL, isUpdate(), getTag());
+        checkTomcatResponse(tomcatResponse);
+        log(tomcatResponse.getHttpResponseBody());
     }
 
     /**


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to